From 150bd7539473dfe121afd61383414b4a402c3660 Mon Sep 17 00:00:00 2001 From: lambiengcode Date: Tue, 28 May 2024 22:58:14 +0700 Subject: [PATCH] chore: move build.gradle to root --- build.gradle | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 build.gradle diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..6f6e1f3 --- /dev/null +++ b/build.gradle @@ -0,0 +1,60 @@ +plugins { + id 'com.android.library' +} + +android { + compileSdk 31 + + defaultConfig { + minSdk 21 + targetSdk 31 + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles "consumer-rules.pro" + + ndkVersion '21.4.7075529' + externalNativeBuild { + cmake { + cppFlags '-std=c++17' + abiFilters 'armeabi-v7a', 'arm64-v8a' + } + } + } + + 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('../../../CMakeLists.txt') + version '3.18.1' + } + } + + splits { + abi { + enable true + + reset() + + include "armeabi-v7a", "arm64-v8a" + + universalApk true + } + } +} + +dependencies { + implementation 'androidx.appcompat:appcompat:1.4.0' + implementation 'com.google.android.material:material:1.4.0' + testImplementation 'junit:junit:4.+' + androidTestImplementation 'androidx.test.ext:junit:1.1.3' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' +} \ No newline at end of file