From 6f40340144a2a7cb51d7d2fc00f0ae581aed01ac Mon Sep 17 00:00:00 2001 From: LasOri Date: Thu, 29 Feb 2024 14:29:37 +0100 Subject: [PATCH] chore(pipeline): release workflow SUITEDEV-35237 Co-authored-by: davidSchuppa <32750715+davidSchuppa@users.noreply.github.com> Co-authored-by: megamegax Co-authored-by: Andras Sarro --- .github/workflows/release_sample_app_workflow.yml | 2 -- build.gradle.kts | 7 ++++--- sample/build.gradle.kts | 7 +------ 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release_sample_app_workflow.yml b/.github/workflows/release_sample_app_workflow.yml index 01a97038..abc14691 100644 --- a/.github/workflows/release_sample_app_workflow.yml +++ b/.github/workflows/release_sample_app_workflow.yml @@ -5,8 +5,6 @@ on: workflows: [ "On Push" ] types: - completed - push: - branches: [ dev ] env: USE_LOCAL_DEPENDENCY: ${{ vars.USE_LOCAL_DEPENDENCY }} diff --git a/build.gradle.kts b/build.gradle.kts index 87d742bd..d494d4bf 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -60,10 +60,11 @@ tasks { doLast { val base64String = env.fetch(propertyName) val decoder = Base64.getDecoder() - val decodedString = String(decoder.decode(base64String)) + val decodedBytes = decoder.decode(base64String) - val outputFile = file(file) - outputFile.writeText(decodedString) + file(file).apply { + writeBytes(decodedBytes) + } } } } \ No newline at end of file diff --git a/sample/build.gradle.kts b/sample/build.gradle.kts index 586dc39f..ef05d925 100644 --- a/sample/build.gradle.kts +++ b/sample/build.gradle.kts @@ -76,10 +76,7 @@ android { (System.getenv("ANDROID_RELEASE_KEY_PASSWORD") ?: "") ) storeFile = file( - env.fetch( - "ANDROID_RELEASE_STORE_FILE_BASE64", - (System.getenv("ANDROID_RELEASE_STORE_FILE_BASE64") ?: "") - ) + "./mobile-team-android.jks" ) } } @@ -133,13 +130,11 @@ dependencies { implementation(libs.kotlin.reflect) implementation(libs.kotlin.stdlib) implementation(libs.androidx.material) - // implementation("androidx.cardview:cardview:1.0.0") implementation(libs.play.services.auth) implementation(libs.androidx.appcompat) implementation(libs.io.coil) implementation(libs.androidx.core.ktx) - // implementation("com.google.android.material:material:1.11.0") implementation(libs.androidx.compose.ui) implementation(libs.androidx.compose.material) implementation(libs.androidx.compose.ui.tooling.preview)