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 { arguments '-DANDROID_PLATFORM=android-21', '-DANDROID_STL=c++_static' abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' } } } 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 { }