rnbuilder 0.6.66 → 0.6.68
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 +31 -12
- package/lib/commands/match-check.js +5 -4
- package/lib/commands/reject-review.d.ts +13 -0
- package/lib/commands/reject-review.js +72 -0
- 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.68 darwin-arm64 node-v24.13.0
|
|
26
26
|
$ rnbuilder --help [COMMAND]
|
|
27
27
|
USAGE
|
|
28
28
|
$ rnbuilder COMMAND
|
|
@@ -42,6 +42,7 @@ USAGE
|
|
|
42
42
|
* [`rnbuilder match-check [MATCH-CHECK]`](#rnbuilder-match-check-match-check)
|
|
43
43
|
* [`rnbuilder match-nuke [BUILD]`](#rnbuilder-match-nuke-build)
|
|
44
44
|
* [`rnbuilder onesignal [BUILD]`](#rnbuilder-onesignal-build)
|
|
45
|
+
* [`rnbuilder reject-review [REJECT-REVIEW]`](#rnbuilder-reject-review-reject-review)
|
|
45
46
|
* [`rnbuilder setup [SETUP]`](#rnbuilder-setup-setup)
|
|
46
47
|
* [`rnbuilder submit-review [SUBMIT-REVIEW]`](#rnbuilder-submit-review-submit-review)
|
|
47
48
|
* [`rnbuilder sync-udids [BUILD]`](#rnbuilder-sync-udids-build)
|
|
@@ -77,7 +78,7 @@ EXAMPLE
|
|
|
77
78
|
hello world from ./src/build.ts!
|
|
78
79
|
```
|
|
79
80
|
|
|
80
|
-
_See code: [src/commands/build.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
81
|
+
_See code: [src/commands/build.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.68/src/commands/build.ts)_
|
|
81
82
|
|
|
82
83
|
## `rnbuilder check-version [MATCH-CHECK]`
|
|
83
84
|
|
|
@@ -96,7 +97,7 @@ EXAMPLE
|
|
|
96
97
|
Nuke certificates ./src/match-check.ts!
|
|
97
98
|
```
|
|
98
99
|
|
|
99
|
-
_See code: [src/commands/check-version.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
100
|
+
_See code: [src/commands/check-version.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.68/src/commands/check-version.ts)_
|
|
100
101
|
|
|
101
102
|
## `rnbuilder codepush [BUILD]`
|
|
102
103
|
|
|
@@ -115,7 +116,7 @@ EXAMPLE
|
|
|
115
116
|
Push changes to existing apps ./src/firebase-sync-udids.ts!
|
|
116
117
|
```
|
|
117
118
|
|
|
118
|
-
_See code: [src/commands/codepush.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
119
|
+
_See code: [src/commands/codepush.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.68/src/commands/codepush.ts)_
|
|
119
120
|
|
|
120
121
|
## `rnbuilder google-key [MATCH-CHECK]`
|
|
121
122
|
|
|
@@ -134,7 +135,7 @@ EXAMPLE
|
|
|
134
135
|
Nuke certificates ./src/match-check.ts!
|
|
135
136
|
```
|
|
136
137
|
|
|
137
|
-
_See code: [src/commands/google-key.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
138
|
+
_See code: [src/commands/google-key.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.68/src/commands/google-key.ts)_
|
|
138
139
|
|
|
139
140
|
## `rnbuilder help [COMMAND]`
|
|
140
141
|
|
|
@@ -166,7 +167,7 @@ EXAMPLE
|
|
|
166
167
|
initialize environment for first run from ./src/initialize.ts!
|
|
167
168
|
```
|
|
168
169
|
|
|
169
|
-
_See code: [src/commands/initialize.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
170
|
+
_See code: [src/commands/initialize.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.68/src/commands/initialize.ts)_
|
|
170
171
|
|
|
171
172
|
## `rnbuilder match-check [MATCH-CHECK]`
|
|
172
173
|
|
|
@@ -185,7 +186,7 @@ EXAMPLE
|
|
|
185
186
|
Check match certificates ./src/match-check.ts!
|
|
186
187
|
```
|
|
187
188
|
|
|
188
|
-
_See code: [src/commands/match-check.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
189
|
+
_See code: [src/commands/match-check.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.68/src/commands/match-check.ts)_
|
|
189
190
|
|
|
190
191
|
## `rnbuilder match-nuke [BUILD]`
|
|
191
192
|
|
|
@@ -204,7 +205,7 @@ EXAMPLE
|
|
|
204
205
|
Nuke certificates ./src/match-nuke.ts!
|
|
205
206
|
```
|
|
206
207
|
|
|
207
|
-
_See code: [src/commands/match-nuke.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
208
|
+
_See code: [src/commands/match-nuke.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.68/src/commands/match-nuke.ts)_
|
|
208
209
|
|
|
209
210
|
## `rnbuilder onesignal [BUILD]`
|
|
210
211
|
|
|
@@ -226,7 +227,25 @@ EXAMPLE
|
|
|
226
227
|
Create and upload push certificate to One Signal from ./src/commands/onesignal.ts!
|
|
227
228
|
```
|
|
228
229
|
|
|
229
|
-
_See code: [src/commands/onesignal.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
230
|
+
_See code: [src/commands/onesignal.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.68/src/commands/onesignal.ts)_
|
|
231
|
+
|
|
232
|
+
## `rnbuilder reject-review [REJECT-REVIEW]`
|
|
233
|
+
|
|
234
|
+
Reject current App Store review version (In Review or Pending Developer Release)
|
|
235
|
+
|
|
236
|
+
```
|
|
237
|
+
USAGE
|
|
238
|
+
$ rnbuilder reject-review [REJECT-REVIEW]
|
|
239
|
+
|
|
240
|
+
OPTIONS
|
|
241
|
+
-c, --client=client Select client to reject App Store review version
|
|
242
|
+
-h, --help show CLI help
|
|
243
|
+
|
|
244
|
+
EXAMPLE
|
|
245
|
+
$ rnbuilder reject-review
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
_See code: [src/commands/reject-review.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.68/src/commands/reject-review.ts)_
|
|
230
249
|
|
|
231
250
|
## `rnbuilder setup [SETUP]`
|
|
232
251
|
|
|
@@ -244,7 +263,7 @@ EXAMPLE
|
|
|
244
263
|
hello world from ./src/setup.ts!
|
|
245
264
|
```
|
|
246
265
|
|
|
247
|
-
_See code: [src/commands/setup.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
266
|
+
_See code: [src/commands/setup.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.68/src/commands/setup.ts)_
|
|
248
267
|
|
|
249
268
|
## `rnbuilder submit-review [SUBMIT-REVIEW]`
|
|
250
269
|
|
|
@@ -263,7 +282,7 @@ EXAMPLE
|
|
|
263
282
|
Push changes to existing apps ./src/firebase-sync-udids.ts!
|
|
264
283
|
```
|
|
265
284
|
|
|
266
|
-
_See code: [src/commands/submit-review.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
285
|
+
_See code: [src/commands/submit-review.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.68/src/commands/submit-review.ts)_
|
|
267
286
|
|
|
268
287
|
## `rnbuilder sync-udids [BUILD]`
|
|
269
288
|
|
|
@@ -282,5 +301,5 @@ EXAMPLE
|
|
|
282
301
|
Sync device UDIDs from firebase from ./src/firebase-sync-udids.ts!
|
|
283
302
|
```
|
|
284
303
|
|
|
285
|
-
_See code: [src/commands/sync-udids.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
304
|
+
_See code: [src/commands/sync-udids.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.68/src/commands/sync-udids.ts)_
|
|
286
305
|
<!-- commandsstop -->
|
|
@@ -22,8 +22,8 @@ class MatchCheck extends command_1.Command {
|
|
|
22
22
|
source: (answersSoFar, input) => {
|
|
23
23
|
input = input || '';
|
|
24
24
|
return new Promise(resolve => {
|
|
25
|
-
const
|
|
26
|
-
resolve(
|
|
25
|
+
const filtered = clients.filter(client => client.toLowerCase().includes(input.toLowerCase()));
|
|
26
|
+
resolve(['all', ...filtered]);
|
|
27
27
|
});
|
|
28
28
|
},
|
|
29
29
|
validate: (input) => {
|
|
@@ -38,8 +38,9 @@ class MatchCheck extends command_1.Command {
|
|
|
38
38
|
},
|
|
39
39
|
});
|
|
40
40
|
const answers = await inquirer.prompt(questions);
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
const selectedClients = answers.client.includes('all') ? clients : answers.client;
|
|
42
|
+
if (selectedClients.length > 0) {
|
|
43
|
+
selectedClients.forEach((c) => {
|
|
43
44
|
const envPath = `./fastlane/clients/${c}/fastlane`;
|
|
44
45
|
shell.exec('pwd');
|
|
45
46
|
shell.cd(envPath);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Command, flags } from '@oclif/command';
|
|
2
|
+
export default class RejectReview extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static flags: {
|
|
6
|
+
help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
|
|
7
|
+
client: flags.IOptionFlag<string | undefined>;
|
|
8
|
+
};
|
|
9
|
+
static args: {
|
|
10
|
+
name: string;
|
|
11
|
+
}[];
|
|
12
|
+
run(): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/* eslint-disable no-negated-condition */
|
|
4
|
+
const command_1 = require("@oclif/command");
|
|
5
|
+
const shell = require("shelljs");
|
|
6
|
+
const common_1 = require("../utils/common");
|
|
7
|
+
const inquirer = require("inquirer");
|
|
8
|
+
inquirer.registerPrompt('checkbox-plus', require('inquirer-checkbox-plus-prompt'));
|
|
9
|
+
class RejectReview extends command_1.Command {
|
|
10
|
+
async run() {
|
|
11
|
+
const clients = common_1.getDirectories('./fastlane/clients');
|
|
12
|
+
if (clients.length > 0) {
|
|
13
|
+
const questions = [];
|
|
14
|
+
questions.push({
|
|
15
|
+
type: 'checkbox-plus',
|
|
16
|
+
name: 'client',
|
|
17
|
+
message: 'What is the client?',
|
|
18
|
+
pageSize: 100,
|
|
19
|
+
highlight: true,
|
|
20
|
+
searchable: true,
|
|
21
|
+
default: [],
|
|
22
|
+
source: (answersSoFar, input) => {
|
|
23
|
+
input = input || '';
|
|
24
|
+
return new Promise(resolve => {
|
|
25
|
+
const filtered = clients.filter(client => client.toLowerCase().includes(input.toLowerCase()));
|
|
26
|
+
resolve(['all', ...filtered]);
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
validate: (input) => {
|
|
30
|
+
return new Promise(resolve => {
|
|
31
|
+
if (input.length === 0) {
|
|
32
|
+
resolve('You need to select at least 1 client');
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
resolve(true);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
const answers = await inquirer.prompt(questions);
|
|
41
|
+
const selectedClients = answers.client.includes('all') ? clients : answers.client;
|
|
42
|
+
if (selectedClients.length > 0) {
|
|
43
|
+
selectedClients.forEach((c) => {
|
|
44
|
+
const envPath = `./fastlane/clients/${c}/fastlane`;
|
|
45
|
+
shell.exec('pwd');
|
|
46
|
+
shell.cd(envPath);
|
|
47
|
+
shell.exec('bundle exec fastlane ios reject_review');
|
|
48
|
+
shell.cd('../../../../');
|
|
49
|
+
shell.exec('pwd');
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
shell.cd('fastlane');
|
|
55
|
+
shell.exec('bundle exec fastlane ios reject_review');
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.default = RejectReview;
|
|
60
|
+
RejectReview.description = 'Reject current App Store review version (In Review or Pending Developer Release)';
|
|
61
|
+
RejectReview.examples = [
|
|
62
|
+
`$ rnbuilder reject-review
|
|
63
|
+
`,
|
|
64
|
+
];
|
|
65
|
+
RejectReview.flags = {
|
|
66
|
+
help: command_1.flags.help({ char: 'h' }),
|
|
67
|
+
client: command_1.flags.string({
|
|
68
|
+
char: 'c',
|
|
69
|
+
description: 'Select client to reject App Store review version',
|
|
70
|
+
}),
|
|
71
|
+
};
|
|
72
|
+
RejectReview.args = [{ name: 'reject-review' }];
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.6.
|
|
1
|
+
{"version":"0.6.68","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}},"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"}]}}}
|