From 54b49df2808e0be42891d4b5bb9f6cf6decaf94a Mon Sep 17 00:00:00 2001 From: Ianick Noejovich Date: Fri, 3 Nov 2023 16:08:58 -0300 Subject: [PATCH] add release build with signing --- .github/workflows/build-release.yml | 32 ++++++++++++++++++++++++++++ app/build.gradle.kts | 12 ++++++++++- keystore/dolarcito_release.jks | Bin 0 -> 2586 bytes 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build-release.yml create mode 100644 keystore/dolarcito_release.jks diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml new file mode 100644 index 0000000..288ef4a --- /dev/null +++ b/.github/workflows/build-release.yml @@ -0,0 +1,32 @@ +name: Build Release App Bundle + +on: + push: + branches: [ main ] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: setup JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'zulu' + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + - name: make gradlew executable + run: chmod +x ./gradlew + - name: add api key property + run: echo "API_KEY=\"${{ secrets.DOLARITO_API_KEY }}\"" >> local.properties + - name: build prod + run: ./gradlew app:bundleRelease + env: + SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }} + SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} + SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }} + - name: upload to github + uses: actions/upload-artifact@v3 + with: + name: Build Artifacts + path: app/build/outputs/ \ No newline at end of file diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 52dea02..22a84f9 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -26,10 +26,20 @@ android { buildConfigField("String", "API_KEY", gradleLocalProperties(rootDir).getProperty("API_KEY")) } + signingConfigs { + create("release") { + storeFile = rootDir.resolve("keystore/dolarcito_release.jks") + storePassword = System.getenv("SIGNING_STORE_PASSWORD") + keyAlias = System.getenv("SIGNING_KEY_ALIAS") + keyPassword = System.getenv("SIGNING_KEY_PASSWORD") + } + } + buildTypes { release { isMinifyEnabled = false proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") + signingConfig = signingConfigs["release"] } } @@ -75,7 +85,7 @@ dependencies { implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.2") implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.6.2") implementation("androidx.activity:activity-compose:1.8.0") - implementation("androidx.navigation:navigation-compose:2.7.4") + implementation("androidx.navigation:navigation-compose:2.7.5") implementation("androidx.datastore:datastore-preferences:1.0.0") implementation(platform("androidx.compose:compose-bom:2023.10.01")) diff --git a/keystore/dolarcito_release.jks b/keystore/dolarcito_release.jks new file mode 100644 index 0000000000000000000000000000000000000000..b91cd21392452ae2ef7304ffc8e56da4d32013d9 GIT binary patch literal 2586 zcma)8X*3iH8=lP=`@R#yMPbYgW8bn)b%hYdzDtxfJ2CdXEW_BBl6?yqTUscQ`ogpF$SVg32av=2(fOXy-0Hl z>l1LqX`EP1-ue>^miCyTyUBb7BQq^C+{{tq|~vYI=-M$+PUnEjP4@0>~G_1y!370Y1zDH+kIS(4~yk& zK&XQ*dET99WJF3|^^sVLjG^4j4$bv7U`a+A>=`cVUQ!$_+nF;Jm|8rBi;S(LEZ(UD0Zz`mbYif9;U2+MVy%XzZ& zgnZ~*z3|z!^2fm3_9OSzjY}6A0^rC@c8Qo;idCd+CIgfk;|=7GYgm_g-Busx0!x3A z_hBQO3rLq*l<@0`4VyneY{wn&*u&-e5C`*s5?m~g;9@Eozp-lx^6T1tM{xF1(u;~u z_Nt3=OTr^Z%6G-hw^|ADSd5z0^)=;hBL<)v*6z(~epl+8;QOlc(emTVuoFSe`7b!t zg|EF%_vqH_aRBmiTkw9i!*Q?AWaYWk_i=T|tk~r*zUqA)s1Yl?K*^itM>Q=_&b$Xn zH||}W70{B7vzymUOmyiA3l7T?I4wnOv6{`y4Gxts81y}LO=goFjBtr?)9exltj&*7 zwR(*F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