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 96326f4
Browse filesBrowse the repository at this point in the historyBrowse files
fix(android): rebuild plugin aars per output dir and warn about shipped ones
The aar build record in platforms/tempPlugin is shared by both
android.pluginBuildLocation values, so after building into the mirror,
switching back to "node_modules" could skip a needed rebuild and leave
an aar built from older sources in the package. The record now holds the
output dir it was copied to, and a different one means rebuild (also in
hasOutdatedAar, so the plugin is re-prepared). Records without it count
as builds into the package's platforms/android, as older CLIs did.
Packages sometimes publish the aar the CLI built in the author's repo
(e.g. platforms/android/core.aar). The CLI replaces or drops it, so warn
before building: an aar in the package's platforms/android under the
plugin's current aar name or short name, or under a scope-qualified name
the CLI built the plugin as, that differs from this project's last build
of the plugin.
Tests now remove their temp projects.
`${dep.name} ships ${files[0]}, which looks like an aar the NativeScript CLI builds from the plugin's sources. The CLI replaces it with its own build. Plugin authors: leave it out of the published package (package.json "files" or .npmignore).`,
1152
+
);
1153
+
}elseif(files.length>1){
1154
+
this.$logger.warn(
1155
+
`${dep.name} ships ${files.join(" and ")}, which look like aars the NativeScript CLI builds from the plugin's sources. The CLI replaces them with its own build. Plugin authors: leave them out of the published package (package.json "files" or .npmignore).`,
0 commit comments