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.
71 lines
2.0 KiB
71 lines
2.0 KiB
plugins {
|
|
id 'com.android.library'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 30
|
|
buildToolsVersion "30.0.1"
|
|
defaultConfig {
|
|
minSdkVersion 21
|
|
targetSdkVersion 30
|
|
versionCode 1
|
|
versionName "1.0"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
javaCompileOptions {
|
|
annotationProcessorOptions {
|
|
arguments = [moduleName: project.getName()]
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
aaptOptions {
|
|
noCompress "ms"
|
|
}
|
|
|
|
lintOptions {
|
|
checkReleaseBuilds false
|
|
// Or, if you prefer, you can continue to check for errors in release builds,
|
|
// but continue the build even when errors are found:
|
|
abortOnError false
|
|
}
|
|
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
mavenCentral()
|
|
maven { url "https://jitpack.io" }
|
|
|
|
flatDir {
|
|
dirs 'libs', '../mindsporelibrary/libs'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
// Download default models; if you wish to use your own models then
|
|
// place them in the "assets" directory and comment out this line.
|
|
apply from: 'download.gradle'
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
|
implementation 'com.google.android.material:material:1.2.1'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|
|
|
implementation 'com.alibaba:arouter-api:1.2.1'
|
|
annotationProcessor 'com.alibaba:arouter-compiler:1.1.2'
|
|
implementation(name: 'mindspore-lite-1.0.1', ext: 'aar')
|
|
} |