Changed secret key as PLAYSTORE_JSON

We have updated the release.yml file to use the new PLAYSTORE_JSON secret key instead of the google_json secret key that was previously used to get credentials. As part of this update, we have renamed the google.json file to playstore.json for better naming consistency with the new secret key.
This commit is contained in:
MohitMaliFtechiz 2023-04-11 12:19:50 +05:30 committed by Emmanuel Engelhart
parent 2c3980ac3c
commit aee9d28d9d
No known key found for this signature in database
GPG Key ID: 120B30D020B553D3
5 changed files with 11 additions and 6 deletions

View File

@ -26,10 +26,10 @@ jobs:
- name: Decrypt files
env:
keystore: ${{ secrets.keystore }}
google_json: ${{ secrets.google_json }}
playstore_json: ${{ secrets.PLAYSTORE_JSON }}
ssh_key: ${{ secrets.ssh_key }}
run: |
echo "$google_json" | base64 -d > google.json
echo "$playstore_json" > playstore.json
echo "$keystore" | base64 -d > kiwix-android.keystore
echo "$ssh_key" | base64 -d > ssh_key
chmod 600 ssh_key

View File

@ -92,7 +92,7 @@ android {
play {
enabled.set(true)
serviceAccountCredentials.set(file("../google.json"))
serviceAccountCredentials.set(file("../playstore.json"))
track.set("alpha")
releaseStatus.set(com.github.triplet.gradle.androidpublisher.ReleaseStatus.DRAFT)
resolutionStrategy.set(com.github.triplet.gradle.androidpublisher.ResolutionStrategy.FAIL)

View File

@ -15,7 +15,12 @@ dependencies {
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0")
implementation("org.jacoco:org.jacoco.core:0.8.8")
implementation("org.jlleitschuh.gradle:ktlint-gradle:10.3.0")
implementation("com.google.apis:google-api-services-androidpublisher:v3-rev129-1.25.0")
implementation("com.google.apis:google-api-services-androidpublisher:v3-rev20230406-2.0.0") {
exclude(group = "com.google.guava", module = "guava")
}
implementation("com.google.http-client:google-http-client-jackson2:1.40.0") {
exclude(group = "com.google.guava", module = "guava")
}
implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.20.0")
implementation("com.googlecode.json-simple:json-simple:1.1")

View File

@ -72,7 +72,7 @@ fun ProductFlavor.createPublishApkWithExpansionTask(
doLast {
val packageName = "org.kiwix$applicationIdSuffix"
println("packageName $packageName")
createPublisher(File(rootDir, "google.json"))
createPublisher(File(rootDir, "playstore.json"))
.transactionWithCommit(packageName) {
val variants =
applicationVariants.releaseVariantsFor(this@createPublishApkWithExpansionTask)

View File

@ -171,4 +171,4 @@
}
],
"configuration_version": "1"
}
}