Skip to content

Commit

Permalink
[#625] Use different applicationId for test app
Browse files Browse the repository at this point in the history
  • Loading branch information
paulinea committed Sep 11, 2023
1 parent 797a954 commit 3889fc5
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 73 deletions.
2 changes: 1 addition & 1 deletion .github/actions/app-distribution/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ runs:
BRANCH_SHA=${{ github.event.pull_request.head.sha }}
COMMIT_SHA=${BRANCH_SHA:-$GITHUB_SHA}
[ ${{ inputs.append-git-sha-to-version-name }} == 'true' ] && VERSION_NAME_SUFFIX=-${COMMIT_SHA::7} || VERSION_NAME_SUFFIX=''
./gradlew app:appDistributionUpload -PversionNameSuffix=$VERSION_NAME_SUFFIX -PversionCode=$GITHUB_RUN_NUMBER -PappDistributionVariants=release -PappDistributionGitTagPrefix=${{ inputs.git-tag-prefix }} -PappDistributionGroup=${{ inputs.group }} -PappDistributionGitTagSha=$COMMIT_SHA --stacktrace
./gradlew app:appDistributionUpload -PapplicationId=com.orange.ods.test.app -PversionNameSuffix=$VERSION_NAME_SUFFIX -PversionCode=$GITHUB_RUN_NUMBER -PappDistributionVariants=release -PappDistributionGitTagPrefix=${{ inputs.git-tag-prefix }} -PappDistributionGroup=${{ inputs.group }} -PappDistributionGitTagSha=$COMMIT_SHA --stacktrace
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
FIREBASE_TOKEN: ${{ inputs.firebase-token }}
5 changes: 1 addition & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ android {
compileSdk = Versions.compileSdk

defaultConfig {
applicationId = "com.orange.ods.app"
applicationId = project.findTypedProperty<String>("applicationId") ?: "com.orange.ods.app"
minSdk = Versions.minSdk
targetSdk = Versions.targetSdk
val versionCodeProperty = project.findTypedProperty<String>("versionCode")
Expand Down Expand Up @@ -74,9 +74,6 @@ android {
signingConfig = this@android.signingConfigs.getByName(signingConfigName)
}
}
debug {
applicationIdSuffix = ".debug"
}
}

firebaseAppDistribution {
Expand Down
68 changes: 0 additions & 68 deletions app/src/debug/google-services.json

This file was deleted.

58 changes: 58 additions & 0 deletions app/src/google-services.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,64 @@
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:212698857200:android:67d1403d02a72f4d5ecc35",
"android_client_info": {
"package_name": "com.orange.ods.test.app"
}
},
"oauth_client": [
{
"client_id": "212698857200-mvqaopuseqhqeaglk7jm0g8qg0dcvsab.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyAIY6bMaglXBkcA72v_vja3yI6-7uaR-8U"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "212698857200-mvqaopuseqhqeaglk7jm0g8qg0dcvsab.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:212698857200:android:92978ae61c91c8b85ecc35",
"android_client_info": {
"package_name": "com.orange.ods.test.flutterapp"
}
},
"oauth_client": [
{
"client_id": "212698857200-mvqaopuseqhqeaglk7jm0g8qg0dcvsab.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyAIY6bMaglXBkcA72v_vja3yI6-7uaR-8U"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "212698857200-mvqaopuseqhqeaglk7jm0g8qg0dcvsab.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
Expand Down

0 comments on commit 3889fc5

Please sign in to comment.