Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
tjzel committed Apr 15, 2024
1 parent 52c86f1 commit cca31df
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/check-expo-dev-client-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,33 @@ 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
else
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'
Expand All @@ -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
Expand All @@ -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' }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/helper/configureDevClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,29 @@ 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",'
);
}

if (command === 'setupFabricIOS') {
patchFile(
'app/ios/Podfile.properties.json',
'ios/Podfile.properties.json',
'"expo.jsEngine"',
'"newArchEnabled":"true","expo.jsEngine"'
);
}

if (command === 'setupFabricAndroid') {
patchFile(
'app/android/gradle.properties',
'android/gradle.properties',
'newArchEnabled=false',
'newArchEnabled=true'
);
Expand Down

0 comments on commit cca31df

Please sign in to comment.