|
- apply plugin: 'com.android.application'
-
- // Before gradle build.
- // To download some necessary libraries.
- apply from:'download.gradle'
-
- android {
- compileSdkVersion 30
- buildToolsVersion "30.0.1"
-
- defaultConfig {
- applicationId "com.mindspore.hiobject"
- minSdkVersion 21
- targetSdkVersion 30
- versionCode 1
- versionName "1.0"
-
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- externalNativeBuild {
- cmake {
- arguments "-DANDROID_STL=c++_shared"
- cppFlags ""
- }
- }
- ndk {
- //abiFilters 'arm64-v8a', 'armeabi-v7a'
- abiFilters 'arm64-v8a'
- }
- }
- aaptOptions {
- // noCompress '.so', ".tflite", ".mnn", ".cambricon", '.mslite', 'om', 'ms'
- noCompress '.so', 'ms'
- }
-
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
-
- customDebugType {
- debuggable true
- }
- }
- externalNativeBuild {
- cmake {
- path file('CMakeLists.txt')
- }
- }
- ndkVersion '21.3.6528147'
- }
-
-
- dependencies {
- implementation fileTree(dir: "libs", include: ["*.jar"])
- implementation 'androidx.appcompat:appcompat:1.1.0'
- implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'androidx.test.ext:junit:1.1.1'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
- }
|