GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing github.com — feat(metadata): add `ns metadata trim` by NathanWalker · Pull Request #6203 · NativeScript/nativescript-cli Conversation
|
| macOS | iOS | Android | |
|---|---|---|---|
| Before: metadata | 4.7 MB | 4.6 MB | 2.9 MB |
| After: metadata | 0.67 MB | 0.83 MB | 0.81 MB |
| Before: framework, compressed | 2.36 MB | 1.84 MB | n/a |
| After: framework, compressed | 0.95 MB | 0.84 MB | n/a |
npx vitest run: 2167 passed, 9 skipped, including new tests for the Mach-O rewrite and both toolchains.native-api-usage.json on a project fixture: the app's whitelist and blacklist and a plugin's uses all reach the generator, and whitelist-plugins-usages: false drops the plugin's entry.uses entry adds WebView and a blacklist entry removes Build.VERSION. Blacklisting a type a kept API needs fails the build and names it.Door: two-way
Additive. It introduces one new command, with its options scoped to that command. Nothing calls it from prepare or build.
Blast Radius: additive
Only people who run the new command are affected. A trimmed app that reaches an API the analysis can't see fails at run time in that code path, which is why this is opt-in and the RFC covers the rollout.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…n app uses Analyzes an app's emitted JavaScript with the runtime's own tools and generates metadata for what it references plus the types those depend on. On Apple platforms the result can be embedded into a copy of NativeScript.framework, shrinking the binary. On Android it writes the whitelist Gradle consumes with -PnsFilterMetadata.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews: auto_review: drafts: true
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Declared rules are merged with what the bundle analysis finds, following the same whitelist-plugins-usages semantics as ns prepare. Projects are read automatically for iOS and Android; other hosts pass --native-api-usage.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.