mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-19 18:36:54 +01:00
Relintai
914c956b75
- Update Java version from 11 to 17
- Update Android gradle plugin version from 7.2.1 to 8.2.0
- Update gradle version from 7.4.2 to 8.2
- Update target SDK from 33 to 34
- Update build tools version from 33.0.2 to 34.0.0
- Update kotlin version from 1.7.0 to 1.9.20
- Update Android fragment version from 1.3.6 to 1.6.2
- Update AndroidX window version from 1.0.0 to 1.2.0
- Update Nexus plugin version from 1.1.0 to 1.3.0
- m4gr3d
eba77be573
Unfortunately this raises the required java version to 17. On the flip side hovewer there is a new editor java home setting, and also the JAVA_HOME environment variable gets picked up.
92 lines
2.5 KiB
Groovy
92 lines
2.5 KiB
Groovy
// Gradle build config for Pandemonium Engine's Android port.
|
|
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id 'base'
|
|
}
|
|
|
|
dependencies {
|
|
implementation "androidx.fragment:fragment:$versions.fragmentVersion"
|
|
implementation project(":lib")
|
|
|
|
implementation "androidx.window:window:1.2.0"
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion versions.compileSdk
|
|
buildToolsVersion versions.buildTools
|
|
ndkVersion versions.ndkVersion
|
|
|
|
namespace = "org.pandemoniumengine.editor"
|
|
|
|
defaultConfig {
|
|
// The 'applicationId' suffix allows to install Pandemonium 3.x(v3) and 4.x(v4) on the same device
|
|
applicationId "org.pandemoniumengine.editor.v3"
|
|
versionCode getPandemoniumLibraryVersionCode()
|
|
versionName getPandemoniumLibraryVersionName()
|
|
minSdkVersion versions.minSdk
|
|
targetSdkVersion versions.targetSdk
|
|
missingDimensionStrategy 'products', 'editor'
|
|
}
|
|
|
|
base {
|
|
archivesName = "android_editor"
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility versions.javaVersion
|
|
targetCompatibility versions.javaVersion
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = versions.javaVersion
|
|
}
|
|
|
|
buildFeatures {
|
|
buildConfig = true
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|
|
}
|