| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…d iOS An app (and its plugins) can now limit the native API it uses with App_Resources/Windows/native-api-usage.json. The CLI already writes it out as whitelist.mdg / blacklist.mdg in platforms/windows; nothing read them. Same format and rules as the Android and iOS metadata generators: one `namespace:type` pattern per line, `*` and `?` wildcards, a bare namespace covers every type in it; a whitelist is exclusive, the blacklist wins. - metadata-filter: the parser and matcher, shared by the runtime and the build tools. NativeScript.* (the runtime's widgets, sbg's proxies) is always whitelisted, as Android always allows com.tns.gen*. - Runtime: both engines load the files from next to the exe at startup. A type the filter leaves out is not there for JS (undefined), as it isn't in the Android/iOS metadata; namespaces stay traversable, and the runtime's own lookups (return types, bases, an instance's runtime class) are not filtered. Each type's verdict is computed once. - dotnet-tool no longer takes names that can't be types (minified `Ua.$`) for extensions, drops extensions of bases the filter leaves out, and publishes dotnet-bridge only for .NET usage or an extension that is surely real (named, or of a Windows/Microsoft/System/NativeScript base). A bundled library's classes (babylon.js, phaser) made it publish on every build. A stale sbg_metadata.json is removed when nothing is found. - sbg skips extensions whose base the filter leaves out (SBG_WHITELIST / SBG_BLACKLIST) and shares the base check with dotnet-tool. - Template: copies the .mdg files next to the exe (and removes a copy the app no longer has), and passes them to sbg.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: b3fccef7-e957-4cd0-b349-324ac0815265 You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file. Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. ❤️ ShareComment @coderabbitai help to get the list of available commands. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Apps and plugins can now limit the native API they use with App_Resources/Windows/native-api-usage.json, as on Android and iOS. The CLI already writes it out as whitelist.mdg / blacklist.mdg in platforms/windows (metadata-filtering-service.ts), but nothing on Windows read them.
The format and rules are those of the Android and iOS metadata generators:
Android and iOS enforce the filter by leaving types out of build-time metadata. Windows resolves types from .winmd at run time, so it's enforced where JS reaches a type by name, and in the build's extension scan.
Testing