OpenNative / open-native

Open Native brings cross-platform communities together to help them collaborate and strengthen each other through development diversity.
https://open-native.org/
MIT License
449 stars 7 forks source link

fix: standardize source files type and remove __unused from types #21

Closed edusperoni closed 1 year ago

edusperoni commented 1 year ago

the change to autolink-info fixes an issue where if a package specifies a single string as source files, open native would fail to link it

For example:

source_files: someFiles/**

when doing [...commonSourceFiles, the result would be: ['s', 'o', 'm', 'e'..... So now we standardize the type as always an array of strings.

The change to method solves the issue where the type would start with __unused when it was left by the package developer (in this case @react-native-community/netinfo)