NativeScript / ios-jsc

NativeScript for iOS using JavaScriptCore
http://docs.nativescript.org/runtimes/ios
Apache License 2.0
298 stars 59 forks source link

feat(metadata-generator): Filter according to specified black/white lists #1246

Closed mbektchiev closed 4 years ago

mbektchiev commented 4 years ago

Each text file contains a list of patterns of the form moduleGlob:symbolGlob, where ? and * special symbols treated as any symbol and zero or more symbols.

A symbol is whitelisted if it's module name and native name pair matches a pattern in the whitelist, or if a whitelist file is not passed as an argument. All symbols which are not whitelisted or match a pattern in the blacklist are excluded from the global table of metadata symbols.

PR Checklist

What is the current behavior?

Metadata is generated for all discovered supported native symbols

What is the new behavior?

Metadata can be filtered by specifying a whitelist and/or blacklist in two files residing in $(SRCROOT) (blacklist.mdg and whitelist.mdg). Each line should be of the form module-name-pattern[:symbol-name-pattern].

refs #1209