You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1f32d3d
Browse filesBrowse the repository at this point in the historyBrowse files
feat(android): Gradle facts file and opt-in plugin builds in platforms
- `ns prepare android` writes platforms/android/nativescript-gradle.json right
after dependencies.json: the project's root, app and App_Resources dirs and,
for every native plugin, its package dir, native dir, aar name and location
and native dependencies, with paths relative to the file and the hash of
dependencies.json. It is only rewritten when its content changes, and is
passed as -Pnativescript.factsFile to app and plugin Gradle builds.
org.nativescript:gradle-api reads it.
- `android.pluginBuildLocation` in nativescript.config: "node_modules" (the
default) keeps today's behaviour; "platforms" copies each native plugin's
platforms/android and package.json into platforms/android/.ns-plugins,
builds its aar and migrates include.gradle there, and points
dependencies.json at the copies, so node_modules is never written to. The
copy is incremental and keeps upstream mtimes. Aars the CLI built for a
plugin under another of its aar names are left out of the copy, and an
aar that differs from the CLI's build under that name is left out without
failing prepare; prebuilt-only plugins are copied as they are. Any other
value fails prepare. Switching back to "node_modules" removes .ns-plugins.
- @nativescript/core and its native dependencies are prepared before other
plugins, so plugins can compile against core's aar.
- A plugin whose copy changed stays marked for a rebuild until its aar build
succeeds, and each plugin file is hashed once per prepare.
0 commit comments