From 59080a3d1d6d9e00a7da876de6453845eab4f15e Mon Sep 17 00:00:00 2001 From: t895 Date: Sun, 21 Jan 2024 21:57:24 -0500 Subject: [PATCH] android: Provide debug.keystore for debug and relWithDebInfo builds Allows devs to share debug builds with testers without uninstalling the previous build --- .reuse/dep5 | 4 ++++ src/android/app/build.gradle.kts | 15 +++++++++++---- src/android/app/debug.keystore | Bin 0 -> 2105 bytes 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 src/android/app/debug.keystore diff --git a/.reuse/dep5 b/.reuse/dep5 index d98b78087..b9ae96d0b 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -155,3 +155,7 @@ License: MIT Files: externals/gamemode/* Copyright: Copyright 2017-2019 Feral Interactive License: BSD-3-Clause + +Files: src/android/app/debug.keystore +Copyright: 2023 yuzu Emulator Project +License: GPL-3.0-or-later diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts index 06e59d1ac..188ef9469 100644 --- a/src/android/app/build.gradle.kts +++ b/src/android/app/build.gradle.kts @@ -82,8 +82,8 @@ android { } val keystoreFile = System.getenv("ANDROID_KEYSTORE_FILE") - if (keystoreFile != null) { - signingConfigs { + signingConfigs { + if (keystoreFile != null) { create("release") { storeFile = file(keystoreFile) storePassword = System.getenv("ANDROID_KEYSTORE_PASS") @@ -91,6 +91,12 @@ android { keyPassword = System.getenv("ANDROID_KEYSTORE_PASS") } } + create("default") { + storeFile = file("$projectDir/debug.keystore") + storePassword = "android" + keyAlias = "androiddebugkey" + keyPassword = "android" + } } // Define build types, which are orthogonal to product flavors. @@ -101,7 +107,7 @@ android { signingConfig = if (keystoreFile != null) { signingConfigs.getByName("release") } else { - signingConfigs.getByName("debug") + signingConfigs.getByName("default") } resValue("string", "app_name_suffixed", "yuzu") @@ -118,7 +124,7 @@ android { register("relWithDebInfo") { isDefault = true resValue("string", "app_name_suffixed", "yuzu Debug Release") - signingConfig = signingConfigs.getByName("debug") + signingConfig = signingConfigs.getByName("default") isMinifyEnabled = true isDebuggable = true proguardFiles( @@ -133,6 +139,7 @@ android { // Signed by debug key disallowing distribution on Play Store. // Attaches 'debug' suffix to version and package name, allowing installation alongside the release build. debug { + signingConfig = signingConfigs.getByName("default") resValue("string", "app_name_suffixed", "yuzu Debug") isDebuggable = true isJniDebuggable = true diff --git a/src/android/app/debug.keystore b/src/android/app/debug.keystore new file mode 100644 index 0000000000000000000000000000000000000000..e4e194af98f7b0435d8c9c84cea7382ebd606b53 GIT binary patch literal 2105 zcmbW1X*AReAIIlE#t1V_i>%3(u@y5y_PrTvwrkBgMo5-fEFm+-Qf}9lBr}EXEtl-s zDN-sS7oiE2#xj;H<1)AnUESxtc+T_kIluFL^Lg<*zvZ0I-tyiu2m}J}2lyw5fCxM> zG8B&w!bJy%1zp+a30{$q(;yH(fTBTmQ3s(yYES?IsDcjz06z#qgDlkNY^;G~2Cngd z<(r(LB!mYTJm7q-{yF#R)}ahU19l{MtY&?eSpsJ0PoosyUkRx2&HW!oi{K>(h*NuNL zPNu$)ofFG-JYJl3&2QAoFv_PzPGv+S3@>|9;+TN!cpZ`kZNSv9GqlYL>+;fi%qvhT)wwc{PU|jWVxW1OHnZ~gZr)L056j-7+0il|@-weXuE8F43T+;>)5)a<4vI z*7p5NBZm2QdGFz$82LJv6AT@#L+cz*L<3Nv3Spx6wu=?!jI%xWfh zWY|5__u0Z=(AKNSSpP?zrYpjXuP5G{YLDieu<(3T;L>X%R72mg_>?<^mY+R#y}Uz? zCl)T1k`QiL^Vp@oSNV<7{LSvbw@#<}39P+QE9s9ehV9J2w0rP zai-u3@{*&?(sGieZu!qTguNeVI?P>BQsnD8`jFW!$Q0@nNx7O`xT9hVRRIl|_smV) z;BL#bkAM9p2Mhe7U|o3jNsoppjOdPw{jfLOBaUs#Bk^z7$QM@po_&e>nXy*9l8PlK zJD#-0atQrzTy6GXy{#Ki%$v5k_Sfopx0h;HBAcEr2_K;@zL{$w-BmG~ zJ_8T@##a39F$05zb~A#p6)^_lW7^VT`dC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