Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapeo for iccas #346

Merged
merged 18 commits into from
Mar 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ android {
dimension "version"
signingConfig signingConfigs.release
}
icca {
dimension "version"
applicationIdSuffix ".icca"
versionNameSuffix "-icca"
signingConfig signingConfigs.release
}
}
buildTypes {
release {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public List<Package> getPackageList() {
new expo.modules.constants.ConstantsPackage(),
new expo.modules.documentpicker.DocumentPickerPackage(),
new expo.modules.filesystem.FileSystemPackage(),
new expo.modules.lineargradient.LinearGradientPackage(),
new expo.modules.localization.LocalizationPackage(),
new expo.modules.location.LocationPackage(),
new expo.modules.permissions.PermissionsPackage(),
Expand Down
Binary file added android/app/src/main/res/drawable-mdpi/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/app/src/main/res/drawable-nodpi/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/app/src/main/res/drawable-xhdpi/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/app/src/main/res/drawable-xxhdpi/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
86 changes: 72 additions & 14 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,55 @@ workflows:
before_run:
- primary
envs:
- GRADLE_TASKS: assembleQaUniversal assembleAppUniversal
- GRADLE_TASKS: assembleQaUniversal assembleAppUniversal assembleIccaUniversal
opts:
is_expand: false
steps:
- [email protected]:
title: Set APK path variables
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x

UNIVERSAL_APK_PATH=$(echo -n "${BITRISE_APK_PATH_LIST//|/$'\n'}" | grep mapeo-universal)
QA_UNIVERSAL_APK_PATH=$(echo -n "${BITRISE_APK_PATH_LIST//|/$'\n'}" | grep mapeo-QA-universal)
ICCA_UNIVERSAL_APK_PATH=$(echo -n "${BITRISE_APK_PATH_LIST//|/$'\n'}" | grep mapeo-ICCA-universal)

envman add --key UNIVERSAL_APK_PATH --value "$UNIVERSAL_APK_PATH"
envman add --key QA_UNIVERSAL_APK_PATH --value "$QA_UNIVERSAL_APK_PATH"
envman add --key ICCA_UNIVERSAL_APK_PATH --value "$ICCA_UNIVERSAL_APK_PATH"
- [email protected]: {}
- [email protected]:
title: Upload QA variant
is_skippable: true
inputs:
- aws_access_key: $AWS_ACCESS_KEY_ID
- aws_secret_key: $AWS_SECRET_ACCESS_KEY
- bucket_name: mapeo-apks
- path_in_bucket: beta-testing/qa
- file_path: ${BITRISE_DEPLOY_DIR}/mapeo-qa-universal-${ANDROID_VERSION_NAME}-qa.apk
- path_in_bucket: beta-testing/v${VERSION_NAME}
- file_path: $QA_UNIVERSAL_APK_PATH
- [email protected]:
title: Upload Release variant
is_skippable: true
inputs:
- aws_access_key: $AWS_ACCESS_KEY_ID
- aws_secret_key: $AWS_SECRET_ACCESS_KEY
- bucket_name: mapeo-apks
- path_in_bucket: beta-testing/default
- file_path: ${BITRISE_DEPLOY_DIR}/mapeo-universal-${ANDROID_VERSION_NAME}.apk
- path_in_bucket: beta-testing/v${VERSION_NAME}
- file_path: $UNIVERSAL_APK_PATH
- [email protected]:
title: Upload ICCA variant
is_skippable: true
inputs:
- aws_access_key: $AWS_ACCESS_KEY_ID
- aws_secret_key: $AWS_SECRET_ACCESS_KEY
- bucket_name: mapeo-apks
- path_in_bucket: beta-testing/v${VERSION_NAME}
- file_path: $ICCA_UNIVERSAL_APK_PATH
meta:
bitrise.io: null
stack: linux-docker-android
Expand Down Expand Up @@ -84,11 +112,11 @@ workflows:
bitrise.io: null
stack: linux-docker-android
deploy-release:
description: Deploy for QA testing
description: Deploy release builds
before_run:
- primary
envs:
- GRADLE_TASKS: assembleApp bundleAppUniversal -x assembleAppDebug
- GRADLE_TASKS: assembleApp assembleIccaRelease bundleAppUniversal -x assembleAppDebug
opts:
is_expand: false
steps:
Expand All @@ -103,37 +131,63 @@ workflows:
# debug log
set -x

echo "SOURCE_DIR = ${BITRISE_SOURCE_DIR}"

RELEASE_APK_PATH=$(echo -n "${BITRISE_APK_PATH_LIST//|/$'\n'}" | grep mapeo-v)
INTEL_APK_PATH=$(echo -n "${BITRISE_APK_PATH_LIST//|/$'\n'}" | grep mapeo-intel)
UNIVERSAL_APK_PATH=$(echo -n "${BITRISE_APK_PATH_LIST//|/$'\n'}" | grep mapeo-universal)
ICCA_RELEASE_APK_PATH=$(echo -n "${BITRISE_APK_PATH_LIST//|/$'\n'}" | grep mapeo-ICCA)

envman --key RELEASE_APK_PATH --value "$RELEASE_APK_PATH"
envman --key INTEL_APK_PATH --value "$INTEL_APK_PATH"
envman --key UNIVERSAL_APK_PATH --value "$UNIVERSAL_APK_PATH"
envman add --key RELEASE_APK_PATH --value "$RELEASE_APK_PATH"
envman add --key INTEL_APK_PATH --value "$INTEL_APK_PATH"
envman add --key UNIVERSAL_APK_PATH --value "$UNIVERSAL_APK_PATH"
envman add --key ICCA_RELEASE_APK_PATH --value "$ICCA_RELEASE_APK_PATH"
- [email protected]:
title: Upload APK for Arm
inputs:
- aws_access_key: $AWS_ACCESS_KEY_ID
- aws_secret_key: $AWS_SECRET_ACCESS_KEY
- bucket_name: mapeo-apks
- path_in_bucket: beta-testing/qa
- path_in_bucket: release/${VERSION_NAME}
- file_path: $RELEASE_APK_PATH
- [email protected]:
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x

node ./scripts/gh-pages-redirect.js /icca/latest https://mapeo-apks.s3.amazonaws.com/release/${VERSION_NAME}/${RELEASE_APK_PATH##*/}
- [email protected]:
title: Upload APK for x86
inputs:
- aws_access_key: $AWS_ACCESS_KEY_ID
- aws_secret_key: $AWS_SECRET_ACCESS_KEY
- bucket_name: mapeo-apks
- path_in_bucket: beta-testing/default
- path_in_bucket: release/${VERSION_NAME}
- file_path: $INTEL_APK_PATH
- [email protected]:
title: Upload universal (all ABIs) APK
inputs:
- aws_access_key: $AWS_ACCESS_KEY_ID
- aws_secret_key: $AWS_SECRET_ACCESS_KEY
- bucket_name: mapeo-apks
- path_in_bucket: beta-testing/default
- path_in_bucket: release/${VERSION_NAME}
- file_path: $UNIVERSAL_APK_PATH
- [email protected]:
title: Upload APK for ICCA (Arm)
inputs:
- aws_access_key: $AWS_ACCESS_KEY_ID
- aws_secret_key: $AWS_SECRET_ACCESS_KEY
- bucket_name: mapeo-apks
- path_in_bucket: release-ICCA/${VERSION_NAME}
- file_path: $ICCA_RELEASE_APK_PATH
- [email protected]:
title: Update download URL for ICCA release
inputs:
- file_path: scripts/gh-pages-redirect.js /icca/latest https://mapeo-apks.s3.amazonaws.com/release/${VERSION_NAME}/${ICCA_RELEASE_APK_PATH##*/}
- [email protected]:
title: Generate release description
inputs:
Expand Down Expand Up @@ -161,7 +215,7 @@ workflows:
- service_account_json_key_path: $BITRISEIO_SERVICE_ACCOUNT_JSON_KEY_URL
- track: beta
- apk_path: $RELEASE_APK_PATH
- app_path: ${BITRISE_SOURCE_DIR}/app.aab
- app_path: ${BITRISE_DEPLOY_DIR}/app.aab
- package_name: com.mapeo
meta:
bitrise.io: null
Expand Down Expand Up @@ -286,6 +340,10 @@ workflows:
*Test*.apk
mapeo-debug*.apk
- gradle_task: $GRADLE_TASKS
- [email protected]:
inputs:
- is_create_path: "false"
- path: ..
meta:
bitrise.io: null
stack: linux-docker-android
Loading