• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1apply plugin: 'com.android.library'
2apply plugin: 'maven-publish'
3
4android {
5    compileSdkVersion 30
6    buildToolsVersion "30.0.1"
7    defaultConfig {
8        minSdkVersion 19
9        targetSdkVersion 30
10        versionCode 1
11        versionName project.hasProperty("LITE_VERSION") ? LITE_VERSION : ""
12    }
13
14    buildTypes {
15        release {
16            minifyEnabled false
17            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
18        }
19        sourceSets {
20            main {
21                jniLibs.srcDirs=['libs']
22            }
23        }
24    }
25    android.libraryVariants.all {
26        variant->variant.outputs.all {
27            outputFileName = "mindspore-lite.aar"
28        }
29    }
30    aaptOptions {
31        noCompress = ['.so']
32    }
33}
34
35dependencies {
36    implementation fileTree(dir: "libs", include: ["*.jar"])
37}
38
39