-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
101 lines (85 loc) · 2.47 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
buildscript {
repositories {
mavenCentral()
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
}
}
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
minSdkVersion 26
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
applicationId 'org.codeaurora.snapcam'
}
signingConfigs {
release {
Properties props = new Properties()
props.load(new FileInputStream(file("local.properties")))
storeFile file(props['keystore'])
storePassword props['keystore.password']
keyAlias props['keyAlias']
keyPassword props['keyPassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
}
lintOptions {
abortOnError false
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'),
'proguard.flags'
}
}
sourceSets {
main {
assets.srcDirs = ['assets']
res.srcDirs = ['res', 'res_p']
java.srcDirs = ['src', 'src_pd', 'src_pd_gcam', 'src_wrapper', '../hex-camlibs/XMPCore/src']
manifest.srcFile 'AndroidManifest.xml'
renderscript.srcDirs = ['rs']
jniLibs {
srcDir 'jniLibs'
}
}
}
externalNativeBuild {
ndkBuild {
path file('jni/Android.mk')
}
}
}
repositories {
mavenCentral()
jcenter()
google()
}
final String SUPPORT_LIBS_VERSION = '28.0.0'
dependencies {
implementation fileTree(dir: '../hex-camlibs', include: ['*.jar'])
implementation "com.android.support:support-v4:${SUPPORT_LIBS_VERSION}"
implementation "com.android.support:support-v13:${SUPPORT_LIBS_VERSION}"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test:rules:1.0.2'
androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.3'
}