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: eden-emu/eden#206
Co-authored-by: Bix <xq9zp7f2@proton.me>
Co-committed-by: Bix <xq9zp7f2@proton.me>
This commit is contained in:
Bix 2025-06-21 19:35:18 +00:00 committed by JPikachu
parent 2f01c69710
commit 02603abbdc

View file

@ -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"