-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathbuild.gradle
67 lines (51 loc) · 2.19 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
plugins {
id 'com.android.library'
id 'kotlin-android'
id("com.google.devtools.ksp") version "$ksp_version"
}
android {
compileSdkVersion COMPILE_SDK
buildToolsVersion BUILD_TOOLS
defaultConfig {
minSdkVersion 21
targetSdkVersion 31
versionCode VERSION_CODE
versionName VERSION_NAME
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
buildConfigField "boolean","USE_STETHO","false"
}
debug {
debuggable true
buildConfigField "boolean","USE_STETHO","true"
}
}
sourceSets.configureEach {
kotlin.srcDir("$buildDir/generated/ksp/$name/kotlin/")
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
api "cn.dailystudio:devbricksx:${DEVBRICKS_X_VERSION}"
api "cn.dailystudio:devbricksx-annotations:${DEVBRICKS_X_VERSION}"
api "cn.dailystudio:devbricksx-camera:${DEVBRICKS_X_VERSION}"
api "cn.dailystudio:devbricksx-audio:${DEVBRICKS_X_VERSION}"
ksp "cn.dailystudio:devbricksx-compiler:${DEVBRICKS_X_VERSION}"
// Build off of nightly TensorFlow Lite
api("org.tensorflow:tensorflow-lite:${project.ext.tfliteVersion}") { changing = true }
api("org.tensorflow:tensorflow-lite-gpu:${project.ext.tfliteGpuVersion}") { changing = true }
api("org.tensorflow:tensorflow-lite-gpu-delegate-plugin:${project.ext.tfliteGpuPluginVersion}") { changing = true }
api("org.tensorflow:tensorflow-lite-support:${project.ext.tfliteSupportVersion}") { changing = true }
api("org.tensorflow:tensorflow-lite-metadata:${project.ext.tfliteMetadataVersion}") { changing = true }
// Test helpers
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
testImplementation "androidx.room:room-testing:${ROOM_VERSION}"
}
apply from: '../buildscripts/maven_push.gradle'