You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.1 KiB
79 lines
2.1 KiB
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion 30
|
|
buildToolsVersion "30.0.1"
|
|
|
|
defaultConfig {
|
|
applicationId "com.mindspore.classificationforpet"
|
|
minSdkVersion 21
|
|
targetSdkVersion 30
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
externalNativeBuild {
|
|
cmake {
|
|
arguments "-DANDROID_STL=c++_shared"
|
|
cppFlags "-std=c++17"
|
|
}
|
|
}
|
|
ndk {
|
|
abiFilters 'arm64-v8a'
|
|
}
|
|
}
|
|
aaptOptions {
|
|
noCompress '.so', 'ms'
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
externalNativeBuild {
|
|
cmake {
|
|
path file('CMakeLists.txt')
|
|
}
|
|
}
|
|
ndkVersion '21.3.6528147'
|
|
|
|
sourceSets {
|
|
main {
|
|
jniLibs.srcDirs = ['libs']
|
|
}
|
|
}
|
|
packagingOptions {
|
|
pickFirst 'lib/arm64-v8a/libmlkit-label-MS.so'
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
}
|
|
|
|
|
|
// Before gradle build.
|
|
// To download some necessary libraries.
|
|
apply from: 'download.gradle'
|
|
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
// implementation project(path: ':sdk')
|
|
|
|
testImplementation 'junit:junit:4.12'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
|
|
|
implementation 'com.google.android.material:material:1.0.0'
|
|
androidTestImplementation 'com.android.support.test:rules:1.0.2'
|
|
androidTestImplementation 'com.google.truth:truth:1.0.1'
|
|
implementation 'com.github.bumptech.glide:glide:4.11.0'
|
|
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
|
|
}
|