From 41dac1847ab2840218dcefbd2fa30444ed25e9c8 Mon Sep 17 00:00:00 2001 From: guilh Date: Sat, 13 Dec 2025 16:18:01 -0300 Subject: [PATCH 1/2] =?UTF-8?q?Configurado=20script=20de=20c=C3=B3pia=20de?= =?UTF-8?q?=20APK=20release=20e=20adicionado=20debug=20no=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Adicionada task no `build.gradle.kts` para copiar e renomear o APK de release para a pasta `app/release` após o build. - Inserido comando de debug (`ls -R app`) no workflow do GitHub Actions para listar arquivos do diretório `app`. --- .github/workflows/android-release.yml | 4 ++++ app/build.gradle.kts | 19 ++++++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index 64e2083..7b08f64 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -36,6 +36,10 @@ jobs: - name: List APK outputs run: ls -R app/build/outputs/apk + - name: Debug APK + run: ls -R app + + - name: Create GitHub Release and Upload APK uses: softprops/action-gh-release@v2 with: diff --git a/app/build.gradle.kts b/app/build.gradle.kts index e0eaa6a..7bb051f 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -95,4 +95,21 @@ dependencies { androidTestImplementation(libs.androidx.compose.ui.test.junit4) debugImplementation(libs.androidx.compose.ui.tooling) debugImplementation(libs.androidx.compose.ui.test.manifest) -} \ No newline at end of file +} + +android.applicationVariants.all { + if (buildType.name == "release") { + outputs.all { + val outputFile = this.outputFile + val copyTaskName = "copy${name.capitalize()}Apk" + + tasks.register(copyTaskName) { + from(outputFile) + into("${rootProject.projectDir}/app/release") + rename { "app-release.apk" } + } + + assembleProvider.get().finalizedBy(copyTaskName) + } + } +} From efc605d16cc8f29516ad0e4f5ddea76acc6b8ebe Mon Sep 17 00:00:00 2001 From: guilh Date: Sat, 13 Dec 2025 16:19:00 -0300 Subject: [PATCH 2/2] Bump to version 1.0.7 --- app/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 7bb051f..ad18855 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -17,7 +17,7 @@ android { minSdk = 30 targetSdk = 36 versionCode = 6 - versionName = "1.0.6" + versionName = "1.0.7" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" }