2022-03-23 20:46:05 +01:00
|
|
|
// Gradle build config for Pandemonium Engine's Android port.
|
2022-07-29 08:35:59 +02:00
|
|
|
plugins {
|
|
|
|
id 'com.android.application'
|
|
|
|
id 'org.jetbrains.kotlin.android'
|
2024-04-20 13:35:32 +02:00
|
|
|
id 'base'
|
2022-07-29 08:35:59 +02:00
|
|
|
}
|
2022-03-22 19:35:57 +01:00
|
|
|
|
|
|
|
dependencies {
|
2024-04-20 13:35:32 +02:00
|
|
|
implementation "androidx.fragment:fragment:$versions.fragmentVersion"
|
2022-03-22 19:35:57 +01:00
|
|
|
implementation project(":lib")
|
2022-07-28 14:14:34 +02:00
|
|
|
|
2024-04-20 13:35:32 +02:00
|
|
|
implementation "androidx.window:window:1.2.0"
|
2022-03-22 19:35:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion versions.compileSdk
|
|
|
|
buildToolsVersion versions.buildTools
|
|
|
|
ndkVersion versions.ndkVersion
|
|
|
|
|
2024-04-20 13:35:32 +02:00
|
|
|
namespace = "org.pandemoniumengine.editor"
|
|
|
|
|
2022-03-22 19:35:57 +01:00
|
|
|
defaultConfig {
|
2022-03-23 20:46:05 +01:00
|
|
|
// The 'applicationId' suffix allows to install Pandemonium 3.x(v3) and 4.x(v4) on the same device
|
2023-08-27 22:54:20 +02:00
|
|
|
applicationId "org.pandemoniumengine.editor.v3"
|
2022-03-23 20:46:05 +01:00
|
|
|
versionCode getPandemoniumLibraryVersionCode()
|
|
|
|
versionName getPandemoniumLibraryVersionName()
|
2022-03-22 19:35:57 +01:00
|
|
|
minSdkVersion versions.minSdk
|
2022-07-29 19:24:07 +02:00
|
|
|
targetSdkVersion versions.targetSdk
|
2022-03-22 19:35:57 +01:00
|
|
|
missingDimensionStrategy 'products', 'editor'
|
|
|
|
}
|
|
|
|
|
2024-04-20 13:35:32 +02:00
|
|
|
base {
|
|
|
|
archivesName = "android_editor"
|
|
|
|
}
|
|
|
|
|
2022-03-22 19:35:57 +01:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility versions.javaVersion
|
|
|
|
targetCompatibility versions.javaVersion
|
|
|
|
}
|
|
|
|
|
2022-07-29 08:35:59 +02:00
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = versions.javaVersion
|
|
|
|
}
|
|
|
|
|
2024-04-20 13:35:32 +02:00
|
|
|
buildFeatures {
|
|
|
|
buildConfig = true
|
|
|
|
}
|
|
|
|
|
2022-03-22 19:35:57 +01:00
|
|
|
buildTypes {
|
|
|
|
dev {
|
|
|
|
initWith debug
|
|
|
|
applicationIdSuffix ".dev"
|
|
|
|
}
|
|
|
|
|
|
|
|
debug {
|
|
|
|
initWith release
|
|
|
|
|
|
|
|
// Need to swap with the release signing config when this is ready for public release.
|
|
|
|
signingConfig signingConfigs.debug
|
|
|
|
}
|
|
|
|
|
|
|
|
release {
|
|
|
|
// This buildtype is disabled below.
|
|
|
|
// The editor can't be used with target=release only, as debugging tools are then not
|
|
|
|
// included, and it would crash on errors instead of reporting them.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
packagingOptions {
|
|
|
|
// 'doNotStrip' is enabled for development within Android Studio
|
|
|
|
if (shouldNotStrip()) {
|
|
|
|
doNotStrip '**/*.so'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Disable 'release' buildtype.
|
|
|
|
// The editor can't be used with target=release only, as debugging tools are then not
|
|
|
|
// included, and it would crash on errors instead of reporting them.
|
|
|
|
variantFilter { variant ->
|
|
|
|
if (variant.buildType.name == "release") {
|
|
|
|
setIgnore(true)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
applicationVariants.all { variant ->
|
|
|
|
variant.outputs.all { output ->
|
|
|
|
def suffix = variant.name == "dev" ? "_dev" : ""
|
|
|
|
output.outputFileName = "android_editor${suffix}.apk"
|
|
|
|
}
|
|
|
|
}
|
2022-07-28 14:14:34 +02:00
|
|
|
}
|