Skip to content

Commit

Permalink
chore(Android): Update build paths and configurations for experimenta…
Browse files Browse the repository at this point in the history
…l builds
  • Loading branch information
diegolmello committed Mar 6, 2025
1 parent 279d931 commit 42429ea
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
18 changes: 9 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,26 +182,26 @@ commands:
name: Build App
command: |
if [[ $CIRCLE_JOB == "android-build-official" ]]; then
./gradlew bundleOfficialPlayRelease
./gradlew bundleOfficialRelease
fi
if [[ $CIRCLE_JOB == "android-build-experimental" || "android-automatic-build-experimental" ]]; then
./gradlew bundleExperimentalPlayRelease
./gradlew bundleExperimentalRelease
fi
if [[ ! $GOOGLE_SERVICES_ANDROID ]]; then
./gradlew assembleExperimentalPlayDebug
./gradlew assembleExperimentalDebug
fi
working_directory: android

- run:
name: Upload sourcemaps/NDK symbols to Bugsnag
command: |
if [[ $CIRCLE_JOB == "android-build-official" ]]; then
yarn bugsnag:upload-android --variant officialPlayRelease
yarn bugsnag-cli upload android-aab android/app/build/outputs/bundle/officialPlayRelease/app-official-play-release.aab
yarn bugsnag:upload-android --variant officialRelease
yarn bugsnag-cli upload android-aab android/app/build/outputs/bundle/officialRelease/app-official-release.aab
fi
if [[ $CIRCLE_JOB == "android-build-experimental" || "android-automatic-build-experimental" ]]; then
yarn bugsnag:upload-android --variant experimentalPlayRelease
yarn bugsnag-cli upload android-aab android/app/build/outputs/bundle/experimentalPlayRelease/app-experimental-play-release.aab
yarn bugsnag:upload-android --variant experimentalRelease
yarn bugsnag-cli upload android-aab android/app/build/outputs/bundle/experimentalRelease/app-experimental-release.aab
fi
- store_artifacts:
Expand Down Expand Up @@ -501,9 +501,9 @@ jobs:
yarn e2e:android-build
- save_cache: *save-gradle-cache
- store_artifacts:
path: android/app/build/outputs/apk/experimentalPlay/release/app-experimental-play-release.apk
path: android/app/build/outputs/apk/experimental/release/app-experimental-release.apk
- store_artifacts:
path: android/app/build/outputs/apk/androidTest/experimentalPlay/release/app-experimental-play-release-androidTest.apk
path: android/app/build/outputs/apk/androidTest/experimental/release/app-experimental-release-androidTest.apk
- persist_to_workspace:
root: /home/circleci/repo
paths:
Expand Down
9 changes: 4 additions & 5 deletions .detoxrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,15 @@ module.exports = {
},
'android.debug': {
type: 'android.apk',
binaryPath: 'android/app/build/outputs/apk/experimentalPlay/debug/app-experimental-play-debug.apk',
build:
'cd android ; ./gradlew assembleExperimentalPlayDebug assembleExperimentalPlayDebugAndroidTest -DtestBuildType=debug ; cd -',
binaryPath: 'android/app/build/outputs/apk/experimental/debug/app-experimental-play-debug.apk',
build: 'cd android ; ./gradlew assembleExperimentalDebug assembleExperimentalDebugAndroidTest -DtestBuildType=debug ; cd -',
reversePorts: [8081]
},
'android.release': {
type: 'android.apk',
binaryPath: 'android/app/build/outputs/apk/experimentalPlay/release/app-experimental-play-release.apk',
binaryPath: 'android/app/build/outputs/apk/experimental/release/app-experimental-play-release.apk',
build:
'cd android ; ./gradlew assembleExperimentalPlayRelease assembleExperimentalPlayReleaseAndroidTest -DtestBuildType=release ; cd -'
'cd android ; ./gradlew assembleExperimentalRelease assembleExperimentalReleaseAndroidTest -DtestBuildType=release ; cd -'
}
},
devices: {
Expand Down
8 changes: 4 additions & 4 deletions android/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ platform :android do
upload_to_play_store(
package_name: 'chat.rocket.android',
track: 'internal',
aab: 'android/app/build/outputs/bundle/officialPlayRelease/app-official-play-release.aab'
aab: 'android/app/build/outputs/bundle/officialRelease/app-official-release.aab'
)
else
upload_to_play_store(
package_name: 'chat.rocket.reactnative',
track: 'internal',
aab: 'android/app/build/outputs/bundle/experimentalPlayRelease/app-experimental-play-release.aab'
aab: 'android/app/build/outputs/bundle/experimentalRelease/app-experimental-release.aab'
)
end
end
Expand All @@ -37,7 +37,7 @@ platform :android do
lane :internal_app_sharing do
upload_to_play_store_internal_app_sharing(
package_name: 'chat.rocket.reactnative',
aab: 'android/app/build/outputs/bundle/experimentalPlayRelease/app-experimental-play-release.aab'
aab: 'android/app/build/outputs/bundle/experimentalRelease/app-experimental-release.aab'
)
end

Expand All @@ -46,7 +46,7 @@ platform :android do
upload_to_play_store(
package_name: 'chat.rocket.reactnative',
track: 'production',
aab: 'android/app/build/outputs/bundle/experimentalPlayRelease/app-experimental-play-release.aab'
aab: 'android/app/build/outputs/bundle/experimentalRelease/app-experimental-release.aab'
)
end
end

0 comments on commit 42429ea

Please sign in to comment.