Files
mcpe/platforms/android/project/app/build.gradle
iProgramInCpp 3e8650761b * Android: Lower SDK version to 21, like the VS project that preceded it.
A temporary solution for the navbar issue.
2023-11-03 23:56:46 +02:00

56 lines
1.4 KiB
Groovy

plugins {
id 'com.android.application'
}
android {
namespace 'com.reminecraftpe'
compileSdk 21
// Employ a hack which copies the assets folder in to the local assets folder.
task CopyAssets(type: Copy) {
from '../../../../game/assets'
into 'src/main/assets'
}
applicationVariants.all { variant ->
// Ensure the custom task is executed before building the APK
variant.preBuildProvider.configure { dependsOn(CopyAssets) }
}
defaultConfig {
applicationId "com.reminecraftpe"
minSdk 16
// Don't inspect the target SDK. You'd better not intend to upload this to the Google Play Store.
//noinspection ExpiredTargetSdkVersion
targetSdk 21
versionCode 1
versionName "1.0"
// testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
externalNativeBuild {
cmake {
cppFlags ''
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
externalNativeBuild {
cmake {
path file('src/main/cpp/CMakeLists.txt')
version '3.22.1'
}
}
}
dependencies {
}