aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBix <xq9zp7f2@proton.me>2025-06-21 19:35:18 +0000
committerJPikachu <jpikachu@noreply.localhost>2025-06-21 19:35:18 +0000
commit02603abbdc387b845bf79f3a987c0b4cfb5af67e (patch)
tree6353bafbfe1c5754c62653f255a7b23de061ac8f /src
parent2f01c69710c787ebeb221bf3fd5d4eee65877b60 (diff)
Enables building of APK with Optimised package name. en-gb. (#206)
Build with: ./gradlew assembleGenshinSpoofRelease Using com.miHoYo.Yuanshen to enable device dependent features such as AI frame generation. Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/206 Co-authored-by: Bix <xq9zp7f2@proton.me> Co-committed-by: Bix <xq9zp7f2@proton.me>
Diffstat (limited to 'src')
-rw-r--r--src/android/app/build.gradle.kts20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts
index b1b5a8bebf..cc38141456 100644
--- a/src/android/app/build.gradle.kts
+++ b/src/android/app/build.gradle.kts
@@ -127,7 +127,7 @@ android {
applicationIdSuffix = ".relWithDebInfo"
isJniDebuggable = true
}
-
+
// Signed by debug key disallowing distribution on Play Store.
// Attaches 'debug' suffix to version and package name, allowing installation alongside the release build.
debug {
@@ -140,14 +140,22 @@ android {
}
}
- flavorDimensions.add("version")
- productFlavors {
- create("mainline") {
- isDefault = true
- dimension = "version"
+ android {
+ flavorDimensions.add("version")
+ productFlavors {
+ create("mainline") {
+ dimension = "version"
+ // No need to set applicationId here
+ }
+
+ create("genshinSpoof") {
+ dimension = "version"
+ applicationId = "com.miHoYo.Yuanshen" // Correct use of applicationId inside the flavor block
+ }
}
}
+
externalNativeBuild {
cmake {
version = "3.22.1"