-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbuild.gradle
More file actions
62 lines (54 loc) · 1.59 KB
/
build.gradle
File metadata and controls
62 lines (54 loc) · 1.59 KB
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
apply plugin: 'com.android.library'
android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
//tmp prebuilt jni
jniLibs.srcDirs = ['libs']
//disable automatic jni build rules
jni.srcDirs = []
}
}
defaultConfig {
minSdkVersion 15
targetSdkVersion 27
}
task ndkBuild(type:Exec) {
workingDir = "../"
List<String> myCmd = new ArrayList<String>()
myCmd.add("make")
myCmd.add("native_libnativehelper")
myCmd.add("native_build_FileCoreLibrary")
commandLine myCmd
}
task ndkClean(type:Exec) {
workingDir = "../"
List<String> myCmd = new ArrayList<String>()
myCmd.add("make")
myCmd.add("native_clean")
commandLine myCmd
}
tasks.withType(JavaCompile) {
compileTask -> compileTask.dependsOn ndkBuild
}
clean.dependsOn 'ndkClean'
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
implementation files('libs/jakarta-oro-2.0.1.jar')
implementation 'com.android.support:appcompat-v7:27.0.2'
implementation 'com.linkedin.dexmaker:dexmaker:2.2.0'
}