rnbuilder 0.6.68 → 0.6.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -13
- package/lib/commands/build.d.ts +1 -0
- package/lib/commands/build.js +16 -8
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ $ npm install -g rnbuilder
|
|
|
22
22
|
$ rnbuilder COMMAND
|
|
23
23
|
running command...
|
|
24
24
|
$ rnbuilder (-v|--version|version)
|
|
25
|
-
rnbuilder/0.6.
|
|
25
|
+
rnbuilder/0.6.69 darwin-arm64 node-v24.13.0
|
|
26
26
|
$ rnbuilder --help [COMMAND]
|
|
27
27
|
USAGE
|
|
28
28
|
$ rnbuilder COMMAND
|
|
@@ -64,6 +64,7 @@ OPTIONS
|
|
|
64
64
|
-g, --gitReset Do git reset when building
|
|
65
65
|
-h, --help show CLI help
|
|
66
66
|
-i, --installr=installr If enabled, the build will be uploaded to installR
|
|
67
|
+
-n, --install Install dependencies before building
|
|
67
68
|
-s, --cleanup Do cleanup when building
|
|
68
69
|
-t, --target=android|ios|android,ios Set the build target: android, ios or both
|
|
69
70
|
-t, --testersIos=testersIos Tester ids for iOS distribution
|
|
@@ -78,7 +79,7 @@ EXAMPLE
|
|
|
78
79
|
hello world from ./src/build.ts!
|
|
79
80
|
```
|
|
80
81
|
|
|
81
|
-
_See code: [src/commands/build.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
82
|
+
_See code: [src/commands/build.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.69/src/commands/build.ts)_
|
|
82
83
|
|
|
83
84
|
## `rnbuilder check-version [MATCH-CHECK]`
|
|
84
85
|
|
|
@@ -97,7 +98,7 @@ EXAMPLE
|
|
|
97
98
|
Nuke certificates ./src/match-check.ts!
|
|
98
99
|
```
|
|
99
100
|
|
|
100
|
-
_See code: [src/commands/check-version.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
101
|
+
_See code: [src/commands/check-version.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.69/src/commands/check-version.ts)_
|
|
101
102
|
|
|
102
103
|
## `rnbuilder codepush [BUILD]`
|
|
103
104
|
|
|
@@ -116,7 +117,7 @@ EXAMPLE
|
|
|
116
117
|
Push changes to existing apps ./src/firebase-sync-udids.ts!
|
|
117
118
|
```
|
|
118
119
|
|
|
119
|
-
_See code: [src/commands/codepush.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
120
|
+
_See code: [src/commands/codepush.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.69/src/commands/codepush.ts)_
|
|
120
121
|
|
|
121
122
|
## `rnbuilder google-key [MATCH-CHECK]`
|
|
122
123
|
|
|
@@ -135,7 +136,7 @@ EXAMPLE
|
|
|
135
136
|
Nuke certificates ./src/match-check.ts!
|
|
136
137
|
```
|
|
137
138
|
|
|
138
|
-
_See code: [src/commands/google-key.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
139
|
+
_See code: [src/commands/google-key.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.69/src/commands/google-key.ts)_
|
|
139
140
|
|
|
140
141
|
## `rnbuilder help [COMMAND]`
|
|
141
142
|
|
|
@@ -167,7 +168,7 @@ EXAMPLE
|
|
|
167
168
|
initialize environment for first run from ./src/initialize.ts!
|
|
168
169
|
```
|
|
169
170
|
|
|
170
|
-
_See code: [src/commands/initialize.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
171
|
+
_See code: [src/commands/initialize.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.69/src/commands/initialize.ts)_
|
|
171
172
|
|
|
172
173
|
## `rnbuilder match-check [MATCH-CHECK]`
|
|
173
174
|
|
|
@@ -186,7 +187,7 @@ EXAMPLE
|
|
|
186
187
|
Check match certificates ./src/match-check.ts!
|
|
187
188
|
```
|
|
188
189
|
|
|
189
|
-
_See code: [src/commands/match-check.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
190
|
+
_See code: [src/commands/match-check.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.69/src/commands/match-check.ts)_
|
|
190
191
|
|
|
191
192
|
## `rnbuilder match-nuke [BUILD]`
|
|
192
193
|
|
|
@@ -205,7 +206,7 @@ EXAMPLE
|
|
|
205
206
|
Nuke certificates ./src/match-nuke.ts!
|
|
206
207
|
```
|
|
207
208
|
|
|
208
|
-
_See code: [src/commands/match-nuke.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
209
|
+
_See code: [src/commands/match-nuke.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.69/src/commands/match-nuke.ts)_
|
|
209
210
|
|
|
210
211
|
## `rnbuilder onesignal [BUILD]`
|
|
211
212
|
|
|
@@ -227,7 +228,7 @@ EXAMPLE
|
|
|
227
228
|
Create and upload push certificate to One Signal from ./src/commands/onesignal.ts!
|
|
228
229
|
```
|
|
229
230
|
|
|
230
|
-
_See code: [src/commands/onesignal.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
231
|
+
_See code: [src/commands/onesignal.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.69/src/commands/onesignal.ts)_
|
|
231
232
|
|
|
232
233
|
## `rnbuilder reject-review [REJECT-REVIEW]`
|
|
233
234
|
|
|
@@ -245,7 +246,7 @@ EXAMPLE
|
|
|
245
246
|
$ rnbuilder reject-review
|
|
246
247
|
```
|
|
247
248
|
|
|
248
|
-
_See code: [src/commands/reject-review.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
249
|
+
_See code: [src/commands/reject-review.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.69/src/commands/reject-review.ts)_
|
|
249
250
|
|
|
250
251
|
## `rnbuilder setup [SETUP]`
|
|
251
252
|
|
|
@@ -263,7 +264,7 @@ EXAMPLE
|
|
|
263
264
|
hello world from ./src/setup.ts!
|
|
264
265
|
```
|
|
265
266
|
|
|
266
|
-
_See code: [src/commands/setup.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
267
|
+
_See code: [src/commands/setup.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.69/src/commands/setup.ts)_
|
|
267
268
|
|
|
268
269
|
## `rnbuilder submit-review [SUBMIT-REVIEW]`
|
|
269
270
|
|
|
@@ -282,7 +283,7 @@ EXAMPLE
|
|
|
282
283
|
Push changes to existing apps ./src/firebase-sync-udids.ts!
|
|
283
284
|
```
|
|
284
285
|
|
|
285
|
-
_See code: [src/commands/submit-review.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
286
|
+
_See code: [src/commands/submit-review.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.69/src/commands/submit-review.ts)_
|
|
286
287
|
|
|
287
288
|
## `rnbuilder sync-udids [BUILD]`
|
|
288
289
|
|
|
@@ -301,5 +302,5 @@ EXAMPLE
|
|
|
301
302
|
Sync device UDIDs from firebase from ./src/firebase-sync-udids.ts!
|
|
302
303
|
```
|
|
303
304
|
|
|
304
|
-
_See code: [src/commands/sync-udids.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
305
|
+
_See code: [src/commands/sync-udids.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.69/src/commands/sync-udids.ts)_
|
|
305
306
|
<!-- commandsstop -->
|
package/lib/commands/build.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export default class Build extends Command {
|
|
|
19
19
|
groupsIos: flags.IOptionFlag<string | undefined>;
|
|
20
20
|
groupsAndroid: flags.IOptionFlag<string | undefined>;
|
|
21
21
|
skipCheckVersion: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
22
|
+
install: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
22
23
|
};
|
|
23
24
|
static args: {
|
|
24
25
|
name: string;
|
package/lib/commands/build.js
CHANGED
|
@@ -205,7 +205,8 @@ class Build extends command_1.Command {
|
|
|
205
205
|
: 'email(s)'),
|
|
206
206
|
suffix: ' for iOS (separated by commas)',
|
|
207
207
|
default: testersAnswer.testers === 'groups'
|
|
208
|
-
? (_c = answers.groupsAndroid) !== null && _c !== void 0 ? _c : common_1.getTesterGroups(this.fastlaneConfigs, result.env)
|
|
208
|
+
? ((_c = answers.groupsAndroid) !== null && _c !== void 0 ? _c : common_1.getTesterGroups(this.fastlaneConfigs, result.env))
|
|
209
|
+
: answers.testersAndroid,
|
|
209
210
|
},
|
|
210
211
|
]);
|
|
211
212
|
result = Object.assign(Object.assign({}, result), anotherAnswer);
|
|
@@ -253,13 +254,15 @@ class Build extends command_1.Command {
|
|
|
253
254
|
if (flags.cleanup) {
|
|
254
255
|
shell.exec('rm -rf android/.gradle android/build android/app/build android/app/.cxx node_modules');
|
|
255
256
|
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
257
|
+
if (flags.install) {
|
|
258
|
+
const installCmd = shell.test('-f', 'bun.lockb') || shell.test('-f', 'bun.lock')
|
|
259
|
+
? 'bun install'
|
|
260
|
+
: shell.test('-f', 'pnpm-lock.yaml')
|
|
261
|
+
? 'pnpm install'
|
|
262
|
+
: 'yarn install';
|
|
263
|
+
shell.exec(installCmd);
|
|
264
|
+
shell.exec('cd android && ./gradlew generateCodegenArtifactsFromSchema');
|
|
265
|
+
}
|
|
263
266
|
if (client) {
|
|
264
267
|
client.forEach((cl) => {
|
|
265
268
|
const c = cl.split(' ')[0];
|
|
@@ -345,5 +348,10 @@ Build.flags = {
|
|
|
345
348
|
skipCheckVersion: command_1.flags.boolean({
|
|
346
349
|
description: 'Skip checking current version on stores',
|
|
347
350
|
}),
|
|
351
|
+
install: command_1.flags.boolean({
|
|
352
|
+
char: 'n',
|
|
353
|
+
description: 'Install dependencies before building',
|
|
354
|
+
default: false,
|
|
355
|
+
}),
|
|
348
356
|
};
|
|
349
357
|
Build.args = [{ name: 'build' }];
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.6.
|
|
1
|
+
{"version":"0.6.69","commands":{"build":{"id":"build","description":"Build react native apps","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder build\nhello world from ./src/build.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Set client that you want to build app"},"target":{"name":"target","type":"option","char":"t","description":"Set the build target: android, ios or both","options":["android","ios","android,ios"]},"env":{"name":"env","type":"option","char":"e","description":"Set the environment: prod, staging, dev"},"branch":{"name":"branch","type":"option","char":"b","description":"Set the source branch used to build the app"},"version":{"name":"version","type":"option","char":"v","description":"Set the version number for this build"},"installr":{"name":"installr","type":"option","char":"i","description":"If enabled, the build will be uploaded to installR"},"distribute":{"name":"distribute","type":"option","char":"d","description":"Specify where to distribute app"},"firebase":{"name":"firebase","type":"boolean","char":"f","description":"If enabled, the build will be uploaded to firebase","allowNo":false},"testersIos":{"name":"testersIos","type":"option","char":"t","description":"Tester ids for iOS distribution"},"testersAndroid":{"name":"testersAndroid","type":"option","char":"u","description":"Tester ids for Android distribution"},"gitReset":{"name":"gitReset","type":"boolean","char":"g","description":"Do git reset when building","allowNo":false},"cleanup":{"name":"cleanup","type":"boolean","char":"s","description":"Do cleanup when building","allowNo":false},"groupsIos":{"name":"groupsIos","type":"option","description":"Groups ids for iOS distribution"},"groupsAndroid":{"name":"groupsAndroid","type":"option","description":"Groups ids for Android distribution"},"skipCheckVersion":{"name":"skipCheckVersion","type":"boolean","description":"Skip checking current version on stores","allowNo":false},"install":{"name":"install","type":"boolean","char":"n","description":"Install dependencies before building","allowNo":false}},"args":[{"name":"build"}]},"check-version":{"id":"check-version","description":"Check live versions","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder check-version\n Nuke certificates ./src/match-check.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"match-check"}]},"codepush":{"id":"codepush","description":"Push changes to existing apps","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder codepush\n Push changes to existing apps ./src/firebase-sync-udids.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to push update"}},"args":[{"name":"build"}]},"google-key":{"id":"google-key","description":"Nuke certificates","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder match-check\n Nuke certificates ./src/match-check.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"match-check"}]},"initialize":{"id":"initialize","description":"Initialize the environment for first run","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder initialize\ninitialize environment for first run from ./src/initialize.ts!\n"],"flags":{},"args":[]},"match-check":{"id":"match-check","description":"Check match certificates","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder match-check\n Check match certificates ./src/match-check.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to check match certificates"}},"args":[{"name":"match-check"}]},"match-nuke":{"id":"match-nuke","description":"Nuke certificates","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder match-nuke\n Nuke certificates ./src/match-nuke.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"build"}]},"onesignal":{"id":"onesignal","description":"Create and upload push cerfiticate to One Signal","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder onesignal\n Create and upload push certificate to One Signal from ./src/commands/onesignal.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"},"auth_token":{"name":"auth_token","type":"option","description":"Auth token for OneSignal"},"android_token":{"name":"android_token","type":"option"},"android_gcm_sender_id":{"name":"android_gcm_sender_id","type":"option"}},"args":[{"name":"build"}]},"reject-review":{"id":"reject-review","description":"Reject current App Store review version (In Review or Pending Developer Release)","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder reject-review\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client to reject App Store review version"}},"args":[{"name":"reject-review"}]},"setup":{"id":"setup","description":"Setup new client","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder build\nhello world from ./src/setup.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[{"name":"setup"}]},"submit-review":{"id":"submit-review","description":"Submit ios for review","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder submit-review\n Push changes to existing apps ./src/firebase-sync-udids.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to push update"}},"args":[{"name":"submit-review"}]},"sync-udids":{"id":"sync-udids","description":"Sync device UDIDs from firebase","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder sync-udids\n Sync device UDIDs from firebase from ./src/firebase-sync-udids.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"build"}]}}}
|