1plugins { 2 id 'com.android.library' 3 id 'kotlin-android' 4} 5 6android { 7 compileSdkVersion 31 8 buildToolsVersion "31.0.0" 9 10 defaultConfig { 11 minSdkVersion 16 12 targetSdkVersion 31 13 versionCode 1 14 versionName "1.0" 15 16 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 17 consumerProguardFiles "consumer-rules.pro" 18 externalNativeBuild { 19 cmake { 20 cppFlags "-std=c++17" 21 } 22 } 23 } 24 25 buildTypes { 26 release { 27 minifyEnabled false 28 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 29 } 30 } 31 compileOptions { 32 sourceCompatibility JavaVersion.VERSION_1_8 33 targetCompatibility JavaVersion.VERSION_1_8 34 } 35 kotlinOptions { 36 jvmTarget = '1.8' 37 } 38 externalNativeBuild { 39 cmake { 40 path file('src/main/cpp/CMakeLists.txt') 41 } 42 } 43} 44 45dependencies { 46 47 implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" 48 implementation 'androidx.core:core-ktx:1.6.0' 49} 50