Skip to content

Commit

Permalink
Experiments with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vipulyaara committed Feb 19, 2024
1 parent f9f1209 commit 47bffa9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ jobs:
release-signing-build:
name: Release Signing Build
runs-on: ubuntu-latest
env:
RELEASE_KEYSTORE_PATH: ${{ secrets.RELEASE_KEYSTORE_PATH }}
RELEASE_SIGNING_PASSWORD: ${{ secrets.RELEASE_SIGNING_PASSWORD }}
RELEASE_SIGNING_USERNAME: ${{ secrets.RELEASE_SIGNING_PASSWORD }}
RELEASE_SIGNING_ALIAS: ${{ secrets.RELEASE_SIGNING_ALIAS }}
GOOGLE_SERVER_CLIENT_ID: ${{ secrets.GOOGLE_SERVER_CLIENT_ID }}
PIPELESS_AUTH_TOKEN: ${{ secrets.PIPELESS_AUTH_TOKEN }}

steps:
- uses: actions/checkout@v3
Expand Down
10 changes: 5 additions & 5 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ android {
versionCode = 52
versionName = libs.versions.versionname.toString()

val googleServerClientId: String = properties["GOOGLE_SERVER_CLIENT_ID"] as String
val pipelessAuthToken: String = properties["PIPELESS_AUTH_TOKEN"] as String
val googleServerClientId: String = (properties["GOOGLE_SERVER_CLIENT_ID"] ?: System.getenv("GOOGLE_SERVER_CLIENT_ID")) as String
val pipelessAuthToken: String = (properties["PIPELESS_AUTH_TOKEN"] ?: System.getenv("PIPELESS_AUTH_TOKEN")) as String

buildConfigField("String", "GOOGLE_SERVER_CLIENT_ID", googleServerClientId)
buildConfigField("String", "PIPELESS_AUTH_TOKEN", pipelessAuthToken)
Expand Down Expand Up @@ -53,7 +53,7 @@ android {

signingConfigs {
create("release") {
storeFile= file("keystore.jks")
storeFile = file("keystore.jks")
storePassword = System.getenv("RELEASE_SIGNING_PASSWORD")
keyPassword = System.getenv("RELEASE_SIGNING_PASSWORD")
keyAlias = System.getenv("RELEASE_SIGNING_ALIAS")
Expand Down Expand Up @@ -90,7 +90,7 @@ android {
}
}

namespace = "com.kafka.user"
namespace = "com.kafka.user"

lint {
baseline = file("lint-baseline.xml")
Expand All @@ -100,7 +100,7 @@ android {
ignoreTestSources = true
// Make the build fail on any lint errors
abortOnError = true
checkDependencies = true
checkDependencies = true
warning += "AutoboxingStateCreation"
}

Expand Down

0 comments on commit 47bffa9

Please sign in to comment.