plugins {
|
id 'com.android.application'
|
}
|
|
android {
|
compileSdkVersion 33
|
defaultConfig {
|
applicationId "com.yw.sdkdemo"
|
minSdkVersion 21
|
targetSdkVersion 33
|
versionCode 1
|
versionName "1.0"
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
externalNativeBuild {
|
cmake {
|
// arguments "-DCMAKE_VERBOSE_MAKEFILE=1"
|
cppFlags "-frtti -fexceptions -std=c++11"
|
arguments '-DANDROID_STL=c++_shared'
|
}
|
}
|
|
ndk {
|
abiFilters "armeabi-v7a"
|
ldLibs "log", "z", "m"
|
//, " "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
|
}
|
|
sourceSets {
|
main {
|
jniLibs.srcDirs = ['jniLibs']
|
}
|
}
|
|
packagingOptions {
|
exclude 'lib/armeabi-v7a/libc++_shared.so'
|
}
|
}
|
|
dependencies {
|
implementation fileTree(dir: "libs", include: ["*.jar","*.aar"])
|
implementation 'com.android.support:appcompat-v7:28.0.0'
|
testImplementation 'junit:junit:4.13.2'
|
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
// implementation project(path: ':sdk')
|
// implementation project(path: ':libCamera')
|
// implementation project(path: ':libIMU')
|
}
|