|
|
@ -57,8 +57,8 @@ android { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
defaultConfig { |
|
|
defaultConfig { |
|
|
// TODO If this is ever modified, change application_id in strings.xml |
|
|
|
|
|
applicationId = "dev.legacy.eden_emulator" |
|
|
|
|
|
|
|
|
applicationId = "dev.eden.eden_emulator" |
|
|
|
|
|
|
|
|
minSdk = 28 |
|
|
minSdk = 28 |
|
|
targetSdk = 36 |
|
|
targetSdk = 36 |
|
|
versionName = getGitVersion() |
|
|
versionName = getGitVersion() |
|
|
@ -72,7 +72,29 @@ android { |
|
|
|
|
|
|
|
|
buildConfigField("String", "GIT_HASH", "\"${getGitHash()}\"") |
|
|
buildConfigField("String", "GIT_HASH", "\"${getGitHash()}\"") |
|
|
buildConfigField("String", "BRANCH", "\"${getBranch()}\"") |
|
|
buildConfigField("String", "BRANCH", "\"${getBranch()}\"") |
|
|
|
|
|
|
|
|
|
|
|
externalNativeBuild { |
|
|
|
|
|
cmake { |
|
|
|
|
|
arguments.addAll(listOf( |
|
|
|
|
|
"-DENABLE_QT=0", // Don't use QT |
|
|
|
|
|
"-DENABLE_SDL2=0", // Don't use SDL |
|
|
|
|
|
"-DENABLE_WEB_SERVICE=1", // Enable web service |
|
|
|
|
|
"-DENABLE_OPENSSL=ON", |
|
|
|
|
|
"-DANDROID_ARM_NEON=true", // cryptopp requires Neon to work |
|
|
|
|
|
"-DYUZU_USE_CPM=ON", |
|
|
|
|
|
"-DCPMUTIL_FORCE_BUNDLED=ON", |
|
|
|
|
|
"-DYUZU_USE_BUNDLED_FFMPEG=ON", |
|
|
|
|
|
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON", |
|
|
|
|
|
"-DBUILD_TESTING=OFF", |
|
|
|
|
|
"-DYUZU_TESTS=OFF", |
|
|
|
|
|
"-DDYNARMIC_TESTS=OFF" |
|
|
|
|
|
)) |
|
|
|
|
|
|
|
|
|
|
|
abiFilters("arm64-v8a") |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val keystoreFile = System.getenv("ANDROID_KEYSTORE_FILE") |
|
|
val keystoreFile = System.getenv("ANDROID_KEYSTORE_FILE") |
|
|
signingConfigs { |
|
|
signingConfigs { |
|
|
@ -94,7 +116,6 @@ android { |
|
|
|
|
|
|
|
|
// Define build types, which are orthogonal to product flavors. |
|
|
// Define build types, which are orthogonal to product flavors. |
|
|
buildTypes { |
|
|
buildTypes { |
|
|
|
|
|
|
|
|
// Signed by release key, allowing for upload to Play Store. |
|
|
// Signed by release key, allowing for upload to Play Store. |
|
|
release { |
|
|
release { |
|
|
signingConfig = if (keystoreFile != null) { |
|
|
signingConfig = if (keystoreFile != null) { |
|
|
@ -103,7 +124,7 @@ android { |
|
|
signingConfigs.getByName("default") |
|
|
signingConfigs.getByName("default") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
resValue("string", "app_name_suffixed", "Eden Legacy") |
|
|
|
|
|
|
|
|
resValue("string", "app_name_suffixed", "Eden") |
|
|
isMinifyEnabled = true |
|
|
isMinifyEnabled = true |
|
|
isDebuggable = false |
|
|
isDebuggable = false |
|
|
proguardFiles( |
|
|
proguardFiles( |
|
|
@ -150,39 +171,34 @@ android { |
|
|
|
|
|
|
|
|
create("genshinSpoof") { |
|
|
create("genshinSpoof") { |
|
|
dimension = "version" |
|
|
dimension = "version" |
|
|
resValue("string", "app_name_suffixed", "Eden Optimised") |
|
|
|
|
|
|
|
|
resValue("string", "app_name_suffixed", "Eden Optimized") |
|
|
applicationId = "com.miHoYo.Yuanshen" |
|
|
applicationId = "com.miHoYo.Yuanshen" |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create("legacy") { |
|
|
|
|
|
dimension = "version" |
|
|
|
|
|
resValue("string", "app_name_suffixed", "Eden Legacy") |
|
|
|
|
|
applicationId = "dev.legacy.eden_emulator" |
|
|
|
|
|
|
|
|
externalNativeBuild { |
|
|
externalNativeBuild { |
|
|
cmake { |
|
|
cmake { |
|
|
version = "3.22.1" |
|
|
|
|
|
path = file("../../../CMakeLists.txt") |
|
|
|
|
|
|
|
|
arguments.add("-DYUZU_LEGACY=ON") |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
sourceSets { |
|
|
|
|
|
getByName("legacy") { |
|
|
|
|
|
res.srcDirs("src/main/legacy") |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
defaultConfig { |
|
|
|
|
|
externalNativeBuild { |
|
|
externalNativeBuild { |
|
|
cmake { |
|
|
cmake { |
|
|
arguments( |
|
|
|
|
|
"-DENABLE_QT=0", // Don't use QT |
|
|
|
|
|
"-DENABLE_SDL2=0", // Don't use SDL |
|
|
|
|
|
"-DENABLE_WEB_SERVICE=1", // Enable web service |
|
|
|
|
|
"-DENABLE_OPENSSL=ON", |
|
|
|
|
|
"-DANDROID_ARM_NEON=true", // cryptopp requires Neon to work |
|
|
|
|
|
"-DYUZU_USE_CPM=ON", |
|
|
|
|
|
"-DCPMUTIL_FORCE_BUNDLED=ON", |
|
|
|
|
|
"-DYUZU_USE_BUNDLED_FFMPEG=ON", |
|
|
|
|
|
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON", |
|
|
|
|
|
"-DBUILD_TESTING=OFF", |
|
|
|
|
|
"-DYUZU_TESTS=OFF", |
|
|
|
|
|
"-DDYNARMIC_TESTS=OFF" |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
abiFilters("arm64-v8a") |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
version = "3.22.1" |
|
|
|
|
|
path = file("../../../CMakeLists.txt") |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|