File tree Expand file tree Collapse file tree 7 files changed +11
-7
lines changed
platform-android/template/.github/workflows
platform-apple-helpers/src/lib/commands
platform-ios/template/.github/workflows
website/docs/docs/getting-started Expand file tree Collapse file tree 7 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ npx @rnef/create-app enterprise
66
66
67
67
``` diff
68
68
-// cliFile = file("../../node_modules/react-native/cli.js")
69
- +cliFile = file("../../node_modules/@rnef/cli/src/bin.js")
69
+ +cliFile = file("../../node_modules/@rnef/cli/dist/ src/bin.js")
70
70
```
71
71
72
72
In ` android/settings.gradle ` change:
Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ const deprecatedAndroidFlags = [
74
74
const deprecatedIosFlags = [
75
75
{ old : '--mode' , new : '--configuration' } ,
76
76
{ old : '--buildFolder' , new : '--build-folder' } ,
77
- { old : '--destination' , new : '--destinations' } ,
78
77
] ;
79
78
80
79
export const checkDeprecatedOptions = ( argv : string [ ] ) => {
Original file line number Diff line number Diff line change @@ -34,12 +34,13 @@ jobs:
34
34
with :
35
35
sign : true
36
36
variant : release
37
+ github-token : ${{ secrets.GITHUB_TOKEN }}
37
38
keystore-base64 : ${{ secrets.KEYSTORE_BASE64 }}
38
39
keystore-store-file : ${{ secrets.RNEF_UPLOAD_STORE_FILE }}
39
40
keystore-store-password : ${{ secrets.RNEF_UPLOAD_STORE_PASSWORD }}
40
41
keystore-key-alias : ${{ secrets.RNEF_UPLOAD_KEY_ALIAS }}
41
42
keystore-key-password : ${{ secrets.RNEF_UPLOAD_KEY_PASSWORD }}
42
-
43
+
43
44
build-debug :
44
45
runs-on : ubuntu-latest
45
46
60
61
uses : callstackincubator/android@v1
61
62
with :
62
63
variant : debug
64
+ github-token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export type BuildFlags = {
11
11
exportExtraParams ?: string [ ] ;
12
12
exportOptionsPlist ?: string ;
13
13
buildFolder ?: string ;
14
- destination ?: string ;
14
+ destination ?: 'device' | 'simulator' ;
15
15
destinations ?: string [ ] ;
16
16
archive ?: boolean ;
17
17
installPods : boolean ;
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export const createRun = async (
49
49
if ( ! args . binaryPath && args . remoteCache ) {
50
50
const cachedBuild = await fetchCachedBuild ( {
51
51
configuration : args . configuration ?? 'Debug' ,
52
- distribution : args . device ? 'device' : 'simulator' , // TODO: replace with better logic
52
+ distribution : args . destination ?? ( args . device ? 'device' : 'simulator' ) ,
53
53
remoteCacheProvider,
54
54
root : projectRoot ,
55
55
fingerprintOptions,
@@ -209,7 +209,6 @@ export const createRun = async (
209
209
outro ( 'Success 🎉.' ) ;
210
210
} ;
211
211
212
-
213
212
async function selectDevice ( devices : Device [ ] , args : RunFlags ) {
214
213
let device ;
215
214
if ( args . device ) {
Original file line number Diff line number Diff line change 33
33
uses : callstackincubator/ios@v1
34
34
with :
35
35
destination : device
36
+ github-token : ${{ secrets.GITHUB_TOKEN }}
36
37
scheme : SCHEME_FOR_DEVICES # replace with preferred scheme
37
38
configuration : Release # replace with preferred configuration
38
39
certificate-base64 : ${{ secrets.APPLE_BUILD_CERTIFICATE_BASE64 }}
61
62
uses : callstackincubator/ios@v1
62
63
with :
63
64
destination : simulator
65
+ github-token : ${{ secrets.GITHUB_TOKEN }}
64
66
scheme : SCHEME_FOR_SIMULATORS # replace with preferred scheme
65
67
configuration : Debug # replace with preferred configuration
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ import { PackageManagerTabs } from 'rspress/theme';
39
39
40
40
``` groovy title="android/app/build.gradle" {2}
41
41
// cliFile = file("../../node_modules/react-native/cli.js")
42
- cliFile = file("../../node_modules/@rnef/cli/src/bin.js")
42
+ cliFile = file("../../node_modules/@rnef/cli/dist/ src/bin.js")
43
43
```
44
44
45
45
In ` android/settings.gradle ` change:
@@ -110,6 +110,7 @@ import { PackageManagerTabs } from 'rspress/theme';
110
110
uses : ./.github/actions/rnef-remote-build-ios
111
111
with :
112
112
destination : simulator
113
+ github-token : ${{ secrets.GITHUB_TOKEN }}
113
114
configuration : Debug
114
115
` ` `
115
116
@@ -121,6 +122,7 @@ import { PackageManagerTabs } from 'rspress/theme';
121
122
uses : ./.github/actions/rnef-remote-build-android
122
123
with :
123
124
variant : debug
125
+ github-token : ${{ secrets.GITHUB_TOKEN }}
124
126
` ` `
125
127
126
128
For more setup options see [GitHub Actions configuration](../remote-cache/github-actions/configuration.md)
You can’t perform that action at this time.
0 commit comments