Use Gradle 3.1.4 and modernize the TFLite example gradle files. PiperOrigin-RevId: 228547238
48 lines
1.2 KiB
Groovy
48 lines
1.2 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion 26
|
|
buildToolsVersion "27.0.3"
|
|
defaultConfig {
|
|
applicationId "android.example.com.ovicbenchmarker"
|
|
minSdkVersion 15
|
|
targetSdkVersion 26
|
|
versionCode 1
|
|
versionName "1.0"
|
|
}
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
aaptOptions {
|
|
noCompress "lite", "tflite"
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
url 'https://google.bintray.com/tensorflow'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation 'com.android.support:appcompat-v7:25.2.0'
|
|
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
|
|
implementation 'com.android.support:design:25.2.0'
|
|
implementation 'com.android.support:support-annotations:25.3.1'
|
|
implementation 'com.android.support:support-v13:25.2.0'
|
|
|
|
implementation 'org.tensorflow:tensorflow-lite:+'
|
|
}
|