rnbuilder 0.6.6 → 0.6.8
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 +49 -9
- package/lib/commands/google-key.d.ts +13 -0
- package/lib/commands/google-key.js +33 -0
- package/lib/commands/match-check.d.ts +13 -0
- package/lib/commands/match-check.js +33 -0
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ $ npm install -g rnbuilder
|
|
|
20
20
|
$ rnbuilder COMMAND
|
|
21
21
|
running command...
|
|
22
22
|
$ rnbuilder (-v|--version|version)
|
|
23
|
-
rnbuilder/0.6.
|
|
23
|
+
rnbuilder/0.6.8 darwin-arm64 node-v16.19.0
|
|
24
24
|
$ rnbuilder --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ rnbuilder COMMAND
|
|
@@ -31,8 +31,10 @@ USAGE
|
|
|
31
31
|
<!-- commands -->
|
|
32
32
|
* [`rnbuilder build [BUILD]`](#rnbuilder-build-build)
|
|
33
33
|
* [`rnbuilder codepush [BUILD]`](#rnbuilder-codepush-build)
|
|
34
|
+
* [`rnbuilder google-key [MATCH-CHECK]`](#rnbuilder-google-key-match-check)
|
|
34
35
|
* [`rnbuilder help [COMMAND]`](#rnbuilder-help-command)
|
|
35
36
|
* [`rnbuilder initialize`](#rnbuilder-initialize)
|
|
37
|
+
* [`rnbuilder match-check [MATCH-CHECK]`](#rnbuilder-match-check-match-check)
|
|
36
38
|
* [`rnbuilder match-nuke [BUILD]`](#rnbuilder-match-nuke-build)
|
|
37
39
|
* [`rnbuilder onesignal [BUILD]`](#rnbuilder-onesignal-build)
|
|
38
40
|
* [`rnbuilder setup [SETUP]`](#rnbuilder-setup-setup)
|
|
@@ -63,7 +65,7 @@ EXAMPLE
|
|
|
63
65
|
hello world from ./src/build.ts!
|
|
64
66
|
```
|
|
65
67
|
|
|
66
|
-
_See code: [src/commands/build.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
68
|
+
_See code: [src/commands/build.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.8/src/commands/build.ts)_
|
|
67
69
|
|
|
68
70
|
## `rnbuilder codepush [BUILD]`
|
|
69
71
|
|
|
@@ -82,7 +84,26 @@ EXAMPLE
|
|
|
82
84
|
Push changes to existing apps ./src/firebase-sync-udids.ts!
|
|
83
85
|
```
|
|
84
86
|
|
|
85
|
-
_See code: [src/commands/codepush.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
87
|
+
_See code: [src/commands/codepush.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.8/src/commands/codepush.ts)_
|
|
88
|
+
|
|
89
|
+
## `rnbuilder google-key [MATCH-CHECK]`
|
|
90
|
+
|
|
91
|
+
Nuke certificates
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
USAGE
|
|
95
|
+
$ rnbuilder google-key [MATCH-CHECK]
|
|
96
|
+
|
|
97
|
+
OPTIONS
|
|
98
|
+
-c, --client=client Select client that you want to sync udids
|
|
99
|
+
-h, --help show CLI help
|
|
100
|
+
|
|
101
|
+
EXAMPLE
|
|
102
|
+
$ rnbuilder match-check
|
|
103
|
+
Nuke certificates ./src/match-check.ts!
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
_See code: [src/commands/google-key.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.8/src/commands/google-key.ts)_
|
|
86
107
|
|
|
87
108
|
## `rnbuilder help [COMMAND]`
|
|
88
109
|
|
|
@@ -114,7 +135,26 @@ EXAMPLE
|
|
|
114
135
|
initialize environment for first run from ./src/initialize.ts!
|
|
115
136
|
```
|
|
116
137
|
|
|
117
|
-
_See code: [src/commands/initialize.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
138
|
+
_See code: [src/commands/initialize.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.8/src/commands/initialize.ts)_
|
|
139
|
+
|
|
140
|
+
## `rnbuilder match-check [MATCH-CHECK]`
|
|
141
|
+
|
|
142
|
+
Nuke certificates
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
USAGE
|
|
146
|
+
$ rnbuilder match-check [MATCH-CHECK]
|
|
147
|
+
|
|
148
|
+
OPTIONS
|
|
149
|
+
-c, --client=client Select client that you want to sync udids
|
|
150
|
+
-h, --help show CLI help
|
|
151
|
+
|
|
152
|
+
EXAMPLE
|
|
153
|
+
$ rnbuilder match-check
|
|
154
|
+
Nuke certificates ./src/match-check.ts!
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
_See code: [src/commands/match-check.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.8/src/commands/match-check.ts)_
|
|
118
158
|
|
|
119
159
|
## `rnbuilder match-nuke [BUILD]`
|
|
120
160
|
|
|
@@ -133,7 +173,7 @@ EXAMPLE
|
|
|
133
173
|
Nuke certificates ./src/match-nuke.ts!
|
|
134
174
|
```
|
|
135
175
|
|
|
136
|
-
_See code: [src/commands/match-nuke.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
176
|
+
_See code: [src/commands/match-nuke.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.8/src/commands/match-nuke.ts)_
|
|
137
177
|
|
|
138
178
|
## `rnbuilder onesignal [BUILD]`
|
|
139
179
|
|
|
@@ -155,7 +195,7 @@ EXAMPLE
|
|
|
155
195
|
Create and upload push certificate to One Signal from ./src/commands/onesignal.ts!
|
|
156
196
|
```
|
|
157
197
|
|
|
158
|
-
_See code: [src/commands/onesignal.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
198
|
+
_See code: [src/commands/onesignal.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.8/src/commands/onesignal.ts)_
|
|
159
199
|
|
|
160
200
|
## `rnbuilder setup [SETUP]`
|
|
161
201
|
|
|
@@ -173,7 +213,7 @@ EXAMPLE
|
|
|
173
213
|
hello world from ./src/setup.ts!
|
|
174
214
|
```
|
|
175
215
|
|
|
176
|
-
_See code: [src/commands/setup.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
216
|
+
_See code: [src/commands/setup.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.8/src/commands/setup.ts)_
|
|
177
217
|
|
|
178
218
|
## `rnbuilder submit-review [SUBMIT-REVIEW]`
|
|
179
219
|
|
|
@@ -192,7 +232,7 @@ EXAMPLE
|
|
|
192
232
|
Push changes to existing apps ./src/firebase-sync-udids.ts!
|
|
193
233
|
```
|
|
194
234
|
|
|
195
|
-
_See code: [src/commands/submit-review.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
235
|
+
_See code: [src/commands/submit-review.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.8/src/commands/submit-review.ts)_
|
|
196
236
|
|
|
197
237
|
## `rnbuilder sync-udids [BUILD]`
|
|
198
238
|
|
|
@@ -211,5 +251,5 @@ EXAMPLE
|
|
|
211
251
|
Sync device UDIDs from firebase from ./src/firebase-sync-udids.ts!
|
|
212
252
|
```
|
|
213
253
|
|
|
214
|
-
_See code: [src/commands/sync-udids.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.
|
|
254
|
+
_See code: [src/commands/sync-udids.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.8/src/commands/sync-udids.ts)_
|
|
215
255
|
<!-- commandsstop -->
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Command, flags } from '@oclif/command';
|
|
2
|
+
export default class MatchNuke 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,33 @@
|
|
|
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
|
+
class MatchNuke extends command_1.Command {
|
|
8
|
+
async run() {
|
|
9
|
+
const clients = common_1.getDirectories('./fastlane/clients');
|
|
10
|
+
clients.forEach(client => {
|
|
11
|
+
const envPath = `fastlane/clients/${client}/fastlane`;
|
|
12
|
+
shell.cd(envPath);
|
|
13
|
+
shell.exec('bundle exec fastlane google_key');
|
|
14
|
+
shell.cd('../../../../');
|
|
15
|
+
shell.exec('pwd');
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.default = MatchNuke;
|
|
20
|
+
MatchNuke.description = 'Nuke certificates';
|
|
21
|
+
MatchNuke.examples = [
|
|
22
|
+
`$ rnbuilder match-check
|
|
23
|
+
Nuke certificates ./src/match-check.ts!
|
|
24
|
+
`,
|
|
25
|
+
];
|
|
26
|
+
MatchNuke.flags = {
|
|
27
|
+
help: command_1.flags.help({ char: 'h' }),
|
|
28
|
+
client: command_1.flags.string({
|
|
29
|
+
char: 'c',
|
|
30
|
+
description: 'Select client that you want to sync udids',
|
|
31
|
+
}),
|
|
32
|
+
};
|
|
33
|
+
MatchNuke.args = [{ name: 'match-check' }];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Command, flags } from '@oclif/command';
|
|
2
|
+
export default class MatchNuke 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,33 @@
|
|
|
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
|
+
class MatchNuke extends command_1.Command {
|
|
8
|
+
async run() {
|
|
9
|
+
const clients = common_1.getDirectories('./fastlane/clients');
|
|
10
|
+
clients.forEach(client => {
|
|
11
|
+
const envPath = `fastlane/clients/${client}/fastlane`;
|
|
12
|
+
shell.cd(envPath);
|
|
13
|
+
shell.exec('bundle exec fastlane match_check');
|
|
14
|
+
shell.cd('../../../../');
|
|
15
|
+
shell.exec('pwd');
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.default = MatchNuke;
|
|
20
|
+
MatchNuke.description = 'Nuke certificates';
|
|
21
|
+
MatchNuke.examples = [
|
|
22
|
+
`$ rnbuilder match-check
|
|
23
|
+
Nuke certificates ./src/match-check.ts!
|
|
24
|
+
`,
|
|
25
|
+
];
|
|
26
|
+
MatchNuke.flags = {
|
|
27
|
+
help: command_1.flags.help({ char: 'h' }),
|
|
28
|
+
client: command_1.flags.string({
|
|
29
|
+
char: 'c',
|
|
30
|
+
description: 'Select client that you want to sync udids',
|
|
31
|
+
}),
|
|
32
|
+
};
|
|
33
|
+
MatchNuke.args = [{ name: 'match-check' }];
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.6.
|
|
1
|
+
{"version":"0.6.8","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"]},"env":{"name":"env","type":"option","char":"e","description":"Set the environment: prod, adhoc, staging","options":["staging","adhoc","prod"]},"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"},"ignore_git_reset":{"name":"ignore_git_reset","type":"boolean","char":"g","description":"Ignore git reset when building","allowNo":false},"ignore_cleanup":{"name":"ignore_cleanup","type":"boolean","char":"s","description":"Ignore cleanup when building","allowNo":false}},"args":[{"name":"build"}]},"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":"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"}]},"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"}]},"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"}]}}}
|