diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2f7b653..69fa950 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -169,7 +169,7 @@ jobs: cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles - name: Install pod - run: yarn pod + run: yarn pod-release - name: Deploy run: cd ios && bundle exec fastlane beta && cd .. diff --git a/ios/Podfile b/ios/Podfile index a9147c4..9009fc3 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -8,6 +8,8 @@ install! 'cocoapods', :deterministic_uuids => false target 'RNStarter' do config = use_native_modules! + flipper_enabled = ENV['USE_FLIPPER'] + use_react_native!( :path => config[:reactNativePath], # to enable hermes on iOS, change `false` to `true` and then install pods @@ -26,7 +28,9 @@ target 'RNStarter' do # # Note that if you have use_frameworks! enabled, Flipper will not work and # you should disable the next line. - use_flipper!({ 'Flipper' => '0.129.0' }) + if flipper_enabled + use_flipper!({ 'Flipper' => '0.129.0' }) + end post_install do |installer| react_native_post_install(installer) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 7afb8c7..58bc59e 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -927,6 +927,6 @@ SPEC CHECKSUMS: Yoga: 17cd9a50243093b547c1e539c749928dd68152da YogaKit: f782866e155069a2cca2517aafea43200b01fd5a -PODFILE CHECKSUM: a0cb9f6fd37872f4fecf5ce5eda776e4d264427f +PODFILE CHECKSUM: a52e65ff797fbe663fb2242e099be3f6a437f044 COCOAPODS: 1.11.3 diff --git a/package.json b/package.json index 734441c..c51f3d5 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "test": "jest --coverage", "lint": "eslint . --ext .js,.ts,.tsx --fix", "reinstall": "rm -rf node_modules && yarn install", - "pod": "cd ios && USE_FABRIC=1 RCT_NEW_ARCH_ENABLED=1 pod install && cd .." + "pod": "cd ios && USE_FABRIC=1 RCT_NEW_ARCH_ENABLED=1 USE_FLIPPER=1 pod install && cd ..", + "pod-release": "cd ios && USE_FABRIC=1 RCT_NEW_ARCH_ENABLED=1 USE_FLIPPER=0 pod install && cd .." }, "dependencies": { "@notifee/react-native": "^4.0.1",