-
Notifications
You must be signed in to change notification settings - Fork 50
/
build.gradle
48 lines (40 loc) · 1.24 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
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
}
}
apply plugin: 'com.android.library'
def isReleaseBuild() {
return version.contains("SNAPSHOT") == false
}
android {
compileSdkVersion 23
buildToolsVersion '23.0.3'
defaultConfig {
minSdkVersion 3
targetSdkVersion 23
}
lintOptions {
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'
}
}
android.libraryVariants.all { variant ->
def name = variant.buildType.name
def task = project.tasks.create "jar${name.capitalize()}", Jar
task.dependsOn variant.javaCompile
task.from variant.javaCompile.destinationDir
artifacts.add('archives', task);
}
apply from: 'maven_push.gradle'