123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- apply plugin: 'com.android.library'
-
- android {
- compileSdkVersion 31
- buildToolsVersion "30.0.2"
-
- defaultConfig {
- minSdkVersion 21
- targetSdkVersion 30
-
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
-
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
-
-
- 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
- }
-
- compileOptions {
- sourceCompatibility 1.8
- targetCompatibility 1.8
- }
- androidResources {
- noCompress 'tflite'
- }
- }
-
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation 'androidx.appcompat:appcompat:1.4.0'
-
- // Build off of nightly TensorFlow Lite
- implementation 'org.tensorflow:tensorflow-lite:2.7.0'
- //implementation('org.tensorflow:tensorflow-lite:0.0.0-nightly') //for Pydnet
- //implementation('org.tensorflow:tensorflow-lite-gpu:0.0.0-nightly') //for Pydnet
- implementation 'org.tensorflow:tensorflow-lite-metadata:0.3.1'
- //implementation 'org.tensorflow:tensorflow-lite-metadata:0.1.0'
- implementation 'org.tensorflow:tensorflow-lite-gpu:2.7.0'
-
- implementation 'org.tensorflow:tensorflow-lite-support:0.3.1'
- }
|