diff --git a/.github/workflows/Crane.yaml b/.github/workflows/Crane.yaml index 486661dd9..d13e4fe6d 100644 --- a/.github/workflows/Crane.yaml +++ b/.github/workflows/Crane.yaml @@ -76,7 +76,7 @@ jobs: target: google_apis arch: x86 disable-animations: true - script: ./gradlew connectedCheck --stacktrace + script: ./gradlew app:connectedDebugAndroidTest --stacktrace working-directory: ${{ env.SAMPLE_PATH }} - name: Upload test reports diff --git a/.github/workflows/build-sample.yml b/.github/workflows/build-sample.yml index 8b210d744..802717233 100644 --- a/.github/workflows/build-sample.yml +++ b/.github/workflows/build-sample.yml @@ -69,10 +69,6 @@ jobs: working-directory: ${{ inputs.path }} run: ./gradlew assembleDebug --stacktrace - - name: Build release - working-directory: ${{ inputs.path }} - run: ./gradlew assembleRelease --stacktrace - - name: Run local tests working-directory: ${{ inputs.path }} run: ./gradlew testDebug --stacktrace diff --git a/Crane/app/build.gradle.kts b/Crane/app/build.gradle.kts index 09edb0705..be92f89d0 100644 --- a/Crane/app/build.gradle.kts +++ b/Crane/app/build.gradle.kts @@ -48,7 +48,7 @@ android { val userKeystore = File(System.getProperty("user.home"), ".android/debug.keystore") val localKeystore = rootProject.file("debug_2.keystore") val hasKeyInfo = userKeystore.exists() - named("debug") { + create("release") { storeFile = if (hasKeyInfo) userKeystore else localKeystore storePassword = if (hasKeyInfo) "android" else System.getenv("compose_store_password") keyAlias = if (hasKeyInfo) "androiddebugkey" else System.getenv("compose_key_alias") @@ -58,18 +58,19 @@ android { buildTypes { getByName("debug") { + } getByName("release") { isMinifyEnabled = true - signingConfig = signingConfigs.getByName("debug") + signingConfig = signingConfigs.getByName("release") proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") } create("benchmark") { initWith(getByName("release")) - signingConfig = signingConfigs.getByName("debug") + signingConfig = signingConfigs.getByName("release") matchingFallbacks.add("release") proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-benchmark-rules.pro") diff --git a/JetLagged/app/build.gradle.kts b/JetLagged/app/build.gradle.kts index e19c3a8e0..14efbd8ca 100644 --- a/JetLagged/app/build.gradle.kts +++ b/JetLagged/app/build.gradle.kts @@ -38,7 +38,7 @@ android { val userKeystore = File(System.getProperty("user.home"), ".android/debug.keystore") val localKeystore = rootProject.file("debug_2.keystore") val hasKeyInfo = userKeystore.exists() - named("debug") { + create("release") { storeFile = if (hasKeyInfo) userKeystore else localKeystore storePassword = if (hasKeyInfo) "android" else System.getenv("compose_store_password") keyAlias = if (hasKeyInfo) "androiddebugkey" else System.getenv("compose_key_alias") @@ -53,14 +53,14 @@ android { getByName("release") { isMinifyEnabled = true - signingConfig = signingConfigs.getByName("debug") + signingConfig = signingConfigs.getByName("release") proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") } create("benchmark") { initWith(getByName("release")) - signingConfig = signingConfigs.getByName("debug") + signingConfig = signingConfigs.getByName("release") matchingFallbacks.add("release") proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-benchmark-rules.pro") diff --git a/JetNews/app/build.gradle.kts b/JetNews/app/build.gradle.kts index 621ea5554..fce54065c 100644 --- a/JetNews/app/build.gradle.kts +++ b/JetNews/app/build.gradle.kts @@ -38,7 +38,7 @@ android { val userKeystore = File(System.getProperty("user.home"), ".android/debug.keystore") val localKeystore = rootProject.file("debug_2.keystore") val hasKeyInfo = userKeystore.exists() - named("debug") { + create("release") { storeFile = if (hasKeyInfo) userKeystore else localKeystore storePassword = if (hasKeyInfo) "android" else System.getenv("compose_store_password") keyAlias = if (hasKeyInfo) "androiddebugkey" else System.getenv("compose_key_alias") @@ -53,7 +53,7 @@ android { getByName("release") { isMinifyEnabled = true - signingConfig = signingConfigs.getByName("debug") + signingConfig = signingConfigs.getByName("release") proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") } diff --git a/Jetcaster/mobile/build.gradle.kts b/Jetcaster/mobile/build.gradle.kts index 47cfafd31..c0d8ab165 100644 --- a/Jetcaster/mobile/build.gradle.kts +++ b/Jetcaster/mobile/build.gradle.kts @@ -40,7 +40,7 @@ android { val userKeystore = File(System.getProperty("user.home"), ".android/debug.keystore") val localKeystore = rootProject.file("debug_2.keystore") val hasKeyInfo = userKeystore.exists() - named("debug") { + create("release") { // get from env variables storeFile = if (hasKeyInfo) userKeystore else localKeystore storePassword = if (hasKeyInfo) "android" else System.getenv("compose_store_password") @@ -56,7 +56,7 @@ android { getByName("release") { isMinifyEnabled = true - signingConfig = signingConfigs.getByName("debug") + signingConfig = signingConfigs.getByName("release") proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" diff --git a/Jetchat/app/build.gradle.kts b/Jetchat/app/build.gradle.kts index 12c3ba176..1d3c8f46d 100644 --- a/Jetchat/app/build.gradle.kts +++ b/Jetchat/app/build.gradle.kts @@ -39,7 +39,7 @@ android { val userKeystore = File(System.getProperty("user.home"), ".android/debug.keystore") val localKeystore = rootProject.file("debug_2.keystore") val hasKeyInfo = userKeystore.exists() - named("debug") { + create("release") { storeFile = if (hasKeyInfo) userKeystore else localKeystore storePassword = if (hasKeyInfo) "android" else System.getenv("compose_store_password") keyAlias = if (hasKeyInfo) "androiddebugkey" else System.getenv("compose_key_alias") @@ -49,12 +49,12 @@ android { buildTypes { getByName("debug") { - + } getByName("release") { isMinifyEnabled = true - signingConfig = signingConfigs.getByName("debug") + signingConfig = signingConfigs.getByName("release") proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") } diff --git a/Jetsnack/app/build.gradle.kts b/Jetsnack/app/build.gradle.kts index 61e3a7f4f..7860407a2 100644 --- a/Jetsnack/app/build.gradle.kts +++ b/Jetsnack/app/build.gradle.kts @@ -38,7 +38,7 @@ android { val userKeystore = File(System.getProperty("user.home"), ".android/debug.keystore") val localKeystore = rootProject.file("debug_2.keystore") val hasKeyInfo = userKeystore.exists() - named("debug") { + create("release") { storeFile = if (hasKeyInfo) userKeystore else localKeystore storePassword = if (hasKeyInfo) "android" else System.getenv("compose_store_password") keyAlias = if (hasKeyInfo) "androiddebugkey" else System.getenv("compose_key_alias") @@ -53,14 +53,14 @@ android { getByName("release") { isMinifyEnabled = true - signingConfig = signingConfigs.getByName("debug") + signingConfig = signingConfigs.getByName("release") proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") } create("benchmark") { initWith(getByName("release")) - // signingConfig = signingConfigs.getByName("debug") + signingConfig = signingConfigs.getByName("release") matchingFallbacks.add("release") proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-benchmark-rules.pro") diff --git a/Owl/app/build.gradle.kts b/Owl/app/build.gradle.kts index 6697c3f6f..ec8ae3684 100644 --- a/Owl/app/build.gradle.kts +++ b/Owl/app/build.gradle.kts @@ -38,7 +38,7 @@ android { val userKeystore = File(System.getProperty("user.home"), ".android/debug.keystore") val localKeystore = rootProject.file("debug_2.keystore") val hasKeyInfo = userKeystore.exists() - named("debug") { + create("release") { storeFile = if (hasKeyInfo) userKeystore else localKeystore storePassword = if (hasKeyInfo) "android" else System.getenv("compose_store_password") keyAlias = if (hasKeyInfo) "androiddebugkey" else System.getenv("compose_key_alias") @@ -53,7 +53,7 @@ android { getByName("release") { isMinifyEnabled = true - signingConfig = signingConfigs.getByName("debug") + signingConfig = signingConfigs.getByName("release") proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") } diff --git a/Reply/app/build.gradle.kts b/Reply/app/build.gradle.kts index 38e17e5e3..ea163e170 100644 --- a/Reply/app/build.gradle.kts +++ b/Reply/app/build.gradle.kts @@ -38,7 +38,7 @@ android { val userKeystore = File(System.getProperty("user.home"), ".android/debug.keystore") val localKeystore = rootProject.file("debug_2.keystore") val hasKeyInfo = userKeystore.exists() - named("debug") { + create("release") { // get from env variables storeFile = if (hasKeyInfo) userKeystore else localKeystore storePassword = if (hasKeyInfo) "android" else System.getenv("compose_store_password") @@ -54,7 +54,7 @@ android { getByName("release") { isMinifyEnabled = true - signingConfig = signingConfigs.getByName("debug") + signingConfig = signingConfigs.getByName("release") proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") }