fix android build failure (#827)

- Modified package.json to create separate install commands for iOS and Android
  - Updated mobile-setup/action.yml to use platform-specific install commands
  - Android builds will no longer try to run pod install and increment ios build number
This commit is contained in:
jayssj11
2025-07-31 16:05:55 +05:30
committed by GitHub
parent 76db38a9bb
commit dcc341673f
4 changed files with 12 additions and 9 deletions

View File

@@ -79,7 +79,11 @@ runs:
fi
# Run mobile-specific installation
yarn install-app:mobile-deploy
if [[ "${{ runner.os }}" == "macOS" ]]; then
yarn install-app:mobile-deploy:ios
else
yarn install-app:mobile-deploy
fi
# Install Ruby gems with bundler (respecting cache)
echo "📦 Installing Ruby gems with strict lock file..."

View File

@@ -494,12 +494,11 @@ jobs:
app_path: ${{ env.APP_PATH }}
- name: Commit updated build number
# disable for now, commit doesn't work as expected
if: false #${{ !env.ACT }}
if: ${{ !env.ACT && success() }}
uses: ./.github/actions/push-changes
with:
commit_message: "incrementing ios build number for version ${{ env.VERSION }}"
commit_paths: "./app/ios/OpenPassport/Info.plist ./app/ios/Self.xcodeproj/project.pbxproj"
commit_paths: "./app/version.json"
- name: Monitor cache usage
if: always()
@@ -752,12 +751,11 @@ jobs:
app_path: ${{ env.APP_PATH }}
- name: Commit updated build version
# disable for now, commit doesn't work as expected
if: false #${{ !env.ACT }}
if: ${{ !env.ACT && success() }}
uses: ./.github/actions/push-changes
with:
commit_message: "incrementing android build version for version ${{ env.VERSION }}"
commit_paths: "./app/android/app/build.gradle"
commit_paths: "./app/version.json"
- name: Monitor cache usage
if: always()

View File

@@ -27,7 +27,8 @@
"format": "yarn nice",
"ia": "yarn install-app",
"install-app": "yarn install-app:setup && cd ios && bundle install && bundle exec pod install && cd .. && yarn clean:xcode-env-local",
"install-app:mobile-deploy": "yarn install-app:setup && yarn clean:xcode-env-local",
"install-app:mobile-deploy": "yarn install && yarn build:deps && yarn clean:xcode-env-local",
"install-app:mobile-deploy:ios": "yarn install-app:setup && yarn clean:xcode-env-local",
"install-app:setup": "yarn install && yarn build:deps && cd ios && bundle install && bundle exec pod install && cd ..",
"ios": "react-native run-ios",
"ios:fastlane-debug": "yarn reinstall && bundle exec fastlane --verbose ios internal_test",

View File

@@ -1,6 +1,6 @@
{
"ios": {
"build": 151,
"build": 152,
"lastDeployed": null
},
"android": {