59 lines
1.5 KiB
Groovy
59 lines
1.5 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
android {
|
|
compileSdkVersion 31
|
|
defaultConfig {
|
|
applicationId "com.cangwang.magic"
|
|
minSdkVersion 21
|
|
targetSdkVersion 31
|
|
versionCode 1
|
|
versionName "1.0"
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
externalNativeBuild {
|
|
cmake {
|
|
cppFlags "-std=c++11 -fexceptions"
|
|
}
|
|
}
|
|
ndk {
|
|
abiFilters "armeabi-v7a"
|
|
}
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
// sourceSets.main {
|
|
// jni.srcDirs = []
|
|
// jniLibs.srcDirs = ['libs']
|
|
// }
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
path "CMakeLists.txt"
|
|
}
|
|
}
|
|
// compileOptions {
|
|
// targetCompatibility 1.8
|
|
// sourceCompatibility 1.8
|
|
// }
|
|
|
|
publishNonDefault true
|
|
namespace 'com.cangwang.magic'
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
|
|
implementation 'io.reactivex.rxjava2:rxkotlin:2.2.0'
|
|
implementation project(':pickphotoview')
|
|
implementation 'androidx.appcompat:appcompat:1.4.0'
|
|
implementation 'androidx.recyclerview:recyclerview:1.2.1'
|
|
}
|