1111 name : Build Android RN App & brownfield AAR
1212 runs-on : ubuntu-latest
1313
14- env :
15- SKIP_YARN_COREPACK_CHECK : 0
16-
1714 steps :
1815 - uses : actions/checkout@v4
1916
@@ -29,28 +26,25 @@ jobs:
2926 node-version : ' lts/*'
3027 cache : ' yarn'
3128
32- - name : Install root dependencies
29+ - name : Install dependencies
3330 run : yarn install
3431
35- - name : Install example dependencies
36- run : |
37- cd example
38- yarn install
39- cd ..
32+ - name : Build package
33+ run : yarn build
4034
4135 - name : Build Android RN app
4236 run : |
43- cd example/RNApp/android
37+ cd apps/tester-from-source/kotlin
4438 ./gradlew assembleDebug
4539
4640 - name : Package AAR with the Brownfield CLI
4741 run : |
48- cd example /RNApp
42+ cd apps /RNApp
4943 npx tsx ../../src/cli/index.ts package:android --module-name :BrownfieldLib --variant release
5044
5145 - name : Publish AAR artifact to Maven Local
5246 run : |
53- cd example /RNApp/android/BrownfieldLib
47+ cd apps /RNApp/android/BrownfieldLib
5448 npx tsx ../../src/cli/index.ts publish:android --module-name :BrownfieldLib
5549
5650 - name : Verify debug AAR exists in Maven Local
@@ -61,21 +55,20 @@ jobs:
6155
6256 - name : Build Brownfield Android native app
6357 run : |
64- cd example /AndroidApp
58+ cd apps /AndroidApp
6559 ./gradlew assembleDebug
6660
6761 rn-ios :
6862 name : Build iOS App
6963 runs-on : macos-latest
7064
71- env :
72- SKIP_YARN_COREPACK_CHECK : 0
73-
7465 steps :
7566 - uses : actions/checkout@v4
7667
77- - name : Select Xcode 16.4
78- run : sudo xcode-select -s /Applications/Xcode_16.4.app
68+ - name : Use appropriate Xcode version
69+ uses : maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
70+ with :
71+ xcode-version : ' 16'
7972
8073 - name : Setup Node.js
8174 uses : actions/setup-node@v4
@@ -89,31 +82,28 @@ jobs:
8982 ruby-version : ' 3.2'
9083 bundler-cache : true
9184
92- - name : Install root dependencies
85+ - name : Install dependencies
9386 run : yarn install
9487
95- - name : Install example dependencies
96- run : |
97- cd example
98- yarn install
99- cd ..
88+ - name : Build package
89+ run : yarn build
10090
10191 - name : Install pods
10292 run : |
103- cd example/RNApp/ios
93+ cd apps/tester-from-source/swift
10494 pod install
10595
10696 - name : Build iOS RN app
10797 run : |
108- cd example /RNApp/ios
98+ cd apps /RNApp/ios
10999 xcodebuild -workspace RNApp.xcworkspace -scheme RNApp -configuration Release -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16' build CODE_SIGNING_ALLOWED=NO
110100
111101 - name : Package iOS Framework with the Brownfield CLI
112102 run : |
113- cd example /RNApp
103+ cd apps /RNApp
114104 npx tsx ../../src/cli/index.ts package:ios --workspace RNApp --scheme BrownfieldLib
115105
116106 - name : Build Brownfield iOS native app
117107 run : |
118- cd example /iOSApp
108+ cd apps /iOSApp
119109 xcodebuild -workspace iOSApp.xcworkspace -scheme iOSApp -configuration Release -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16' build CODE_SIGNING_ALLOWED=NO
0 commit comments