From cca31dfb0111ff9c3f9708f71ead6216655fc2cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20=C5=BBelawski?= Date: Mon, 15 Apr 2024 11:45:39 +0200 Subject: [PATCH] init --- .../check-expo-dev-client-nightly.yml | 28 +++++++++++-------- .../workflows/helper/configureDevClient.js | 8 +++--- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/.github/workflows/check-expo-dev-client-nightly.yml b/.github/workflows/check-expo-dev-client-nightly.yml index 4498ee2c1ce..85a7224319e 100644 --- a/.github/workflows/check-expo-dev-client-nightly.yml +++ b/.github/workflows/check-expo-dev-client-nightly.yml @@ -27,9 +27,9 @@ jobs: with: path: 'reanimated_repo' - name: Create Expo app - run: npx create-expo-app app + run: npx create-expo-app ExpoApp - name: Install expo-dev-client - working-directory: app + working-directory: ExpoApp run: | if npm view expo dist-tags | grep -q 'next:' ; then npm install expo@next @@ -37,22 +37,23 @@ jobs: npm install expo@latest fi - name: Setup configuration + working-directory: ExpoApp run: node ${{ env.SCRIPT_PATH }} setBundleIdentifier - name: Expo prebuild - working-directory: app + working-directory: ExpoApp run: npx expo prebuild - name: Install Reanimated - working-directory: app + working-directory: ExpoApp run: npm install react-native-reanimated@nightly - name: Set Fabric if: ${{ matrix.react-native-architecture == 'Fabric' }} run: node ${{ env.SCRIPT_PATH }} setupFabricIOS - name: Install Pods - working-directory: app/ios + working-directory: ExpoApp/ios run: pod install - name: Build app - working-directory: app - run: yarn react-native run-ios --simulator='iPhone 14' + working-directory: ExpoApp + run: npx react-native run-ios --simulator='iPhone 14' build_android: if: github.repository == 'software-mansion/react-native-reanimated' @@ -70,9 +71,14 @@ jobs: with: path: 'reanimated_repo' - name: Create Expo app - run: npx create-expo-app app + run: npx create-expo-app ExpoApp + - name: Setup Java 17 + uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: 17 - name: Install expo-dev-client - working-directory: app + working-directory: ExpoApp run: | if npm view expo dist-tags | grep -q 'next:' ; then npm install expo@next @@ -82,10 +88,10 @@ jobs: - name: Setup configuration run: node ${{ env.SCRIPT_PATH }} setBundleIdentifier - name: Expo prebuild - working-directory: app + working-directory: ExpoApp run: npx expo prebuild - name: Install Reanimated - working-directory: app + working-directory: ExpoApp run: npm install react-native-reanimated@nightly - name: Set Fabric if: ${{ matrix.react-native-architecture == 'Fabric' }} diff --git a/.github/workflows/helper/configureDevClient.js b/.github/workflows/helper/configureDevClient.js index ef45903c8b3..8a54abd1123 100644 --- a/.github/workflows/helper/configureDevClient.js +++ b/.github/workflows/helper/configureDevClient.js @@ -10,13 +10,13 @@ const command = process.argv[2]; if (command === 'setBundleIdentifier') { patchFile( - 'app/app.json', + 'app.json', '"ios": {', '"ios": {"bundleIdentifier":"com.swmansion.app",' ); patchFile( - 'app/app.json', + 'app.json', '"android": {', '"android": {"package": "com.swmansion.app",' ); @@ -24,7 +24,7 @@ if (command === 'setBundleIdentifier') { if (command === 'setupFabricIOS') { patchFile( - 'app/ios/Podfile.properties.json', + 'ios/Podfile.properties.json', '"expo.jsEngine"', '"newArchEnabled":"true","expo.jsEngine"' ); @@ -32,7 +32,7 @@ if (command === 'setupFabricIOS') { if (command === 'setupFabricAndroid') { patchFile( - 'app/android/gradle.properties', + 'android/gradle.properties', 'newArchEnabled=false', 'newArchEnabled=true' );