forked from alt236/USB-Device-Info---Android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
43 lines (38 loc) · 987 Bytes
/
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
ext.compileSdkVersion = 25
ext.buildToolsVersion = "25.0.3"
ext.minSdkVersion = 25
ext.targetSdkVersion = 25
buildscript {
repositories {
jcenter()
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
}
}
allprojects {
repositories {
jcenter()
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
def quoteString(final String str) {
final String quote = "\"";
if (str.length() > 0) {
if (str.startsWith(quote) && str.endsWith(quote)) {
return str;
} else {
return quote + str + quote;
}
} else {
return quote + quote;
}
}