-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
116 lines (102 loc) · 2.44 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
buildscript {
repositories {
maven { url 'http://repo1.maven.org/maven2' }
maven { url "http://dl.bintray.com/populov/maven" }
maven { url "https://jcenter.bintray.com" }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.1'
}
}
allprojects {
repositories {
mavenCentral()
}
}
apply plugin: 'com.android.application'
repositories {
mavenCentral()
}
dependencies {
compile 'com.android.support:support-v4:22.2.+'
compile 'com.android.support:appcompat-v7:22.2.+'
compile project(':ecogallery')
compile project(':commonlib')
}
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
signingConfigs {
release {
storeFile file(PROM_KEY_PATH)
storePassword KEYSTORE_PASSWORD
keyAlias PROM_KEY_ALIAS
keyPassword KEY_PASSWORD
}
debug {
storeFile file("i:\\androidKey\\mysign1")
storePassword "Fyfyfc"
keyAlias "111"
keyPassword "Fyfyfc"
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
debug {
signingConfig signingConfigs.debug
}
}
sourceSets {
main {
manifest {
srcFile 'AndroidManifest.xml'
}
java {
srcDir 'src'
}
res {
srcDir 'res'
}
assets {
srcDir 'assets'
}
resources {
srcDir 'src'
}
aidl {
srcDir 'src'
}
jni {
srcDirs = []
}
jniLibs {
srcDirs 'libs'
}
}
}
/*
task ndkBuild(type: Exec, description: 'Compile JNI source via NDK') {
commandLine ndkDir + "\\ndk-build.cmd",
'NDK_PROJECT_PATH=build/intermediates/ndk',
'NDK_LIBS_OUT=libs',
'APP_BUILD_SCRIPT=jni/Android.mk',
'NDK_APPLICATION_MK=jni/Application.mk',
'OPEN-CV-SDK=' + OPEN_CV_SDK
}
tasks.withType(JavaCompile) {
compileTask -> compileTask.dependsOn ndkBuild
}
defaultConfig {
ndk {
abiFilters "armeabi-v7a"
}
}
externalNativeBuild {
ndkBuild {
path 'jni/Android.mk'
}
}
*/
}