microsoft/onnxruntime-extensions
Publicmirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable
java/src/test/android/app/build.gradle
48lines · modecode
| 1 | plugins { |
| 2 | id 'com.android.application' |
| 3 | } |
| 4 | |
| 5 | android { |
| 6 | namespace 'ai.onnxruntime.extensions.apptest' |
| 7 | compileSdk 32 |
| 8 | |
| 9 | defaultConfig { |
| 10 | applicationId "ai.onnxruntime.extensions.apptest" |
| 11 | minSdk 24 |
| 12 | targetSdk 32 |
| 13 | versionCode 1 |
| 14 | versionName "1.0" |
| 15 | |
| 16 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
| 17 | } |
| 18 | |
| 19 | buildTypes { |
| 20 | release { |
| 21 | minifyEnabled false |
| 22 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
| 23 | } |
| 24 | } |
| 25 | compileOptions { |
| 26 | sourceCompatibility JavaVersion.VERSION_1_8 |
| 27 | targetCompatibility JavaVersion.VERSION_1_8 |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | def ortExtensionsAarLocalPath = System.properties["ortExtensionsAarLocalPath"]; |
| 32 | |
| 33 | dependencies { |
| 34 | |
| 35 | implementation 'androidx.appcompat:appcompat:1.5.1' |
| 36 | implementation 'com.google.android.material:material:1.7.0' |
| 37 | implementation 'androidx.constraintlayout:constraintlayout:2.1.4' |
| 38 | implementation 'com.microsoft.onnxruntime:onnxruntime-android:latest.release' |
| 39 | if (ortExtensionsAarLocalPath != null) { |
| 40 | implementation files(ortExtensionsAarLocalPath) |
| 41 | } else { |
| 42 | implementation 'com.microsoft.onnxruntime:onnxruntime-extensions-android:latest.release' |
| 43 | } |
| 44 | androidTestImplementation 'androidx.test.ext:junit:1.1.3' |
| 45 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' |
| 46 | |
| 47 | androidTestImplementation('com.microsoft.appcenter:espresso-test-extension:1.4') |
| 48 | } |