This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
92 lines (75 loc) · 2.16 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// set to 'armabi-v7a', 'all', 'arm64-v8a'
// armabi-v7a will only build for armabi-v7a (most smartphones)
// all will build for arm64-v8a, armabi-v7a, x86, x86_64
def buildFor = 'armabi-v7a'
project.buildDir = 'gradleBuild'
getProject().setBuildDir('gradleBuild')
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'org.apache.httpcomponents:httpclient:4.5.6'
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
project.ext.ASSET_DIR = projectDir.toString() + '/assets'
apply plugin: 'com.android.application'
android {
compileSdkVersion 30
buildToolsVersion '30.0.3'
defaultConfig {
applicationId = 'com.jstappdev.dbclf'
minSdkVersion 21
targetSdkVersion 30
versionCode 103
versionName "45"
}
if (buildFor == 'armabi-v7a') {
defaultConfig {
ndk {
abiFilters 'armeabi-v7a'
}
}
} else if (buildFor == 'arm64-v8a') {
defaultConfig {
ndk {
abiFilters 'arm64-v8a'
}
}
}
sourceSets {
main {
java {
srcDir 'src'
}
manifest.srcFile 'AndroidManifest.xml'
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = [project.ext.ASSET_DIR]
jniLibs.srcDirs = ['libs']
}
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
}
}
dependencies {
implementation 'org.tensorflow:tensorflow-android:1.8.0'
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
}