Skip to content

Commit 656717b

Browse files
authored
fix: make brownfield plugin optional; update dep; add android (#431)
* fix: make brownfield plugin optional and update dep * add missing android brownfield plugin * changeset
1 parent 8ac615d commit 656717b

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

.changeset/pink-jobs-destroy.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@rnef/plugin-brownfield-ios': patch
3+
'@rnef/create-app': patch
4+
---
5+
6+
fix: make brownfield plugin optional; update dep; add android

.npmrc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
link-workspace-packages=true
2-
auto-install-peers=true
3-
package-manager-strict=true
4-
package-manager-strict-version=true
1+
//localhost:4873/:_authToken=secretToken
2+
registry=http://localhost:4873

packages/create-app/src/lib/templates.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ export const PLUGINS: TemplateInfo[] = [
4141
directory: 'template',
4242
importName: 'pluginBrownfieldIos',
4343
},
44+
{
45+
type: 'npm',
46+
name: 'brownfield-android',
47+
packageName: '@rnef/plugin-brownfield-android',
48+
version: 'latest',
49+
directory: 'template',
50+
importName: 'pluginBrownfieldAndroid',
51+
},
4452
];
4553

4654
export const BUNDLERS: TemplateInfo[] = [

packages/create-app/src/lib/utils/prompts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ export function promptPlugins(
131131

132132
return promptMultiselect({
133133
message: 'Select plugins:',
134-
initialValues: [plugins[0]],
135134
// @ts-expect-error todo fixup type
136135
options: plugins.map((plugin) => ({
137136
value: plugin,
138137
label: plugin.name,
139138
})),
139+
required: false,
140140
});
141141
}
142142

packages/plugin-brownfield-ios/template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"package:ios": "rnef package:ios --scheme HelloWorldReact --configuration Release"
55
},
66
"dependencies": {
7-
"@callstack/react-native-brownfield": "1.0.1"
7+
"@callstack/react-native-brownfield": "^1.1.0"
88
},
99
"devDependencies": {
1010
"@rnef/plugin-brownfield-ios": "^0.7.27"

0 commit comments

Comments
 (0)