Try a fix for android build
This commit is contained in:
parent
8451cc76ae
commit
1047d4b509
|
@ -109,13 +109,10 @@ commands:
|
||||||
description: "Build Android app"
|
description: "Build Android app"
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
||||||
- restore_cache: *restore-npm-cache-linux
|
- restore_cache: *restore-npm-cache-linux
|
||||||
|
|
||||||
- run: *install-npm-modules
|
- run: *install-npm-modules
|
||||||
|
- save_cache: *save-npm-cache-linux
|
||||||
- restore_cache: *restore-gradle-cache
|
- restore_cache: *restore-gradle-cache
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Configure Gradle
|
name: Configure Gradle
|
||||||
command: |
|
command: |
|
||||||
|
@ -145,7 +142,6 @@ commands:
|
||||||
echo -e "KEY_PASSWORD=$KEYSTORE_EXPERIMENTAL_PASSWORD" >> ./gradle.properties
|
echo -e "KEY_PASSWORD=$KEYSTORE_EXPERIMENTAL_PASSWORD" >> ./gradle.properties
|
||||||
fi
|
fi
|
||||||
working_directory: android
|
working_directory: android
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Set Google Services
|
name: Set Google Services
|
||||||
command: |
|
command: |
|
||||||
|
@ -153,12 +149,11 @@ commands:
|
||||||
echo $GOOGLE_SERVICES_ANDROID | base64 --decode > google-services.json
|
echo $GOOGLE_SERVICES_ANDROID | base64 --decode > google-services.json
|
||||||
fi
|
fi
|
||||||
working_directory: android/app
|
working_directory: android/app
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Build App
|
name: Build App
|
||||||
no_output_timeout: 40m
|
no_output_timeout: 40m
|
||||||
command: |
|
command: |
|
||||||
sudo apt install -y libicu-dev
|
# sudo apt install -y libicu-dev
|
||||||
if [[ $CIRCLE_JOB == "android-build-official" ]]; then
|
if [[ $CIRCLE_JOB == "android-build-official" ]]; then
|
||||||
./gradlew bundleOfficialPlayRelease
|
./gradlew bundleOfficialPlayRelease
|
||||||
fi
|
fi
|
||||||
|
@ -169,7 +164,6 @@ commands:
|
||||||
./gradlew assembleExperimentalPlayDebug
|
./gradlew assembleExperimentalPlayDebug
|
||||||
fi
|
fi
|
||||||
working_directory: android
|
working_directory: android
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Upload sourcemaps to Bugsnag
|
name: Upload sourcemaps to Bugsnag
|
||||||
command: |
|
command: |
|
||||||
|
@ -189,14 +183,9 @@ commands:
|
||||||
--source-map=android/app/build/generated/sourcemaps/react/experimentalPlayRelease/index.android.bundle.map \
|
--source-map=android/app/build/generated/sourcemaps/react/experimentalPlayRelease/index.android.bundle.map \
|
||||||
--bundle android/app/build/generated/assets/createBundleExperimentalPlayReleaseJsAndAssets/index.android.bundle
|
--bundle android/app/build/generated/assets/createBundleExperimentalPlayReleaseJsAndAssets/index.android.bundle
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: android/app/build/outputs
|
path: android/app/build/outputs
|
||||||
|
|
||||||
- save_cache: *save-npm-cache-linux
|
|
||||||
|
|
||||||
- save_cache: *save-gradle-cache
|
- save_cache: *save-gradle-cache
|
||||||
|
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: .
|
root: .
|
||||||
paths:
|
paths:
|
||||||
|
@ -398,7 +387,7 @@ jobs:
|
||||||
<<: *android-executor
|
<<: *android-executor
|
||||||
environment:
|
environment:
|
||||||
<<: *android-env
|
<<: *android-env
|
||||||
<<: *bash-env
|
# <<: *bash-env
|
||||||
steps:
|
steps:
|
||||||
- android-build
|
- android-build
|
||||||
|
|
||||||
|
@ -465,7 +454,6 @@ jobs:
|
||||||
name: Configure Gradle
|
name: Configure Gradle
|
||||||
command: |
|
command: |
|
||||||
echo -e "" > ./gradle.properties
|
echo -e "" > ./gradle.properties
|
||||||
# echo -e "android.enableAapt2=false" >> ./gradle.properties
|
|
||||||
echo -e "android.useAndroidX=true" >> ./gradle.properties
|
echo -e "android.useAndroidX=true" >> ./gradle.properties
|
||||||
echo -e "android.enableJetifier=true" >> ./gradle.properties
|
echo -e "android.enableJetifier=true" >> ./gradle.properties
|
||||||
echo -e "newArchEnabled=false" >> ./gradle.properties
|
echo -e "newArchEnabled=false" >> ./gradle.properties
|
||||||
|
|
Loading…
Reference in New Issue