-
Notifications
You must be signed in to change notification settings - Fork 50
/
build_with_ndk.gradle
51 lines (40 loc) · 1.35 KB
/
build_with_ndk.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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle-experimental:0.2.0'
}
}
apply plugin: 'com.android.model.application'
def isReleaseBuild() {
return version.contains("SNAPSHOT") == false
}
model {
android {
compileSdkVersion = 23
buildToolsVersion = "23.0.1"
defaultConfig.with {
minSdkVersion.apiLevel = 3
targetSdkVersion.apiLevel = 23
}
task ndkBuild(type: Exec) {
commandLine 'ndk-build', '-C', file('src/main').absolutePath
}
tasks.withType(JavaCompile) {
compileTask -> compileTask.dependsOn ndkBuild
}
lintOptions.with {
xmlReport = false
warningsAsErrors = true
quiet = false
showAll = true
// asserts are not reliable
// default locale is not defined in String.format calls
// NTLM Auth does use DES/ECB/NoPadding which should not be used elsewhere
// Default implementation of SecureRandom should be fixed by PRNGFixes.apply(), see http://android-developers.blogspot.cz/2013/08/some-securerandom-thoughts.html
disable = ['Assert', 'DefaultLocale', 'GetInstance', 'TrulyRandom']
}
apply from: 'maven_push.gradle'
}
}