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
feat(android): per-plugin build options, with aarSuffix to break name clashes
The name of the `.aar` built for a plugin comes from `getShortPluginName`,
which drops the npm scope. `@foo/plugin-x` and `@bar/plugin-x` therefore
both build a `plugin_x.aar` into their own platforms folder, and the one
that gradle picks up depends on which was built last.
A project can now give one of them a suffix:
```js
export default {
android: {
plugins: {
"@bar/plugin-x": { aarSuffix: "-bar" },
},
},
} satisfies NativeScriptConfig;
```
`android.plugins` is a map keyed by npm package name, spread into the
options `buildAar` receives, so it is the place to put future per-plugin
build settings too. The suffix is appended to the plugin name before it is
shortened, and the resulting name is used consistently - for the temp
build directory, the produced `.aar` and the namespace fallback, which
`setupGradle` used to recompute without it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments