forked from yuliskov/SmartTubeLegacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
68 lines (64 loc) · 3.06 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
// WARNING: don't use 'project.ext' because IDE 'Cannot infer argument type'
// https://stackoverflow.com/questions/20404476/how-to-define-common-android-properties-for-all-modules-using-gradle
// Gradle constants example: https://github.com/google/ExoPlayer
ext {
compileSdkVersion = 26
buildToolsVersion = "26.0.2"
minSdkVersion = 14
targetSdkVersion = 26
appCompatVersion = 'com.android.support:appcompat-v7:26.1.0'
supportVersion = 'com.android.support:support-v4:26.1.0'
constraintLayoutVersion = 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
dnsjavaVersion = 'dnsjava:dnsjava:2.1.8'
okhttpVersion = 'com.squareup.okhttp3:okhttp:3.9.1'
ottoVersion = 'com.squareup:otto:1.3.8'
butterKnifeVersion = 'com.jakewharton:butterknife:8.4.0'
butterKnifeCompilerVersion = 'com.jakewharton:butterknife-compiler:8.4.0'
gsonVersion = 'com.google.code.gson:gson:2.8.2'
jsonPathVersion = 'com.jayway.jsonpath:json-path:2.4.0'
androidLoggerVersion = 'com.noveogroup.android:android-logger:1.3.5'
xwalkSharedLibraryVersion = 'org.xwalk:xwalk_shared_library:23.53.589.4'
xwalkCoreLibraryVersion = 'org.xwalk:xwalk_core_library:23.53.589.4'
commonsIOVersion = 'commons-io:commons-io:2.5'
junitVersion = 'junit:junit:4.12'
robolectricVersion = 'org.robolectric:robolectric:3.5.1'
espressoCoreVersion = 'com.android.support.test.espresso:espresso-core:2.2.2'
crashlyticsVersion = 'com.crashlytics.sdk.android:crashlytics:2.8.0@aar'
asmVersion = 'org.ow2.asm:asm:5.0.4'
stethoVersion = 'com.facebook.stetho:stetho:1.5.0' // Chrome Dev Tools
nanoHttpdVersion = 'org.nanohttpd:nanohttpd:2.3.1'
amazonExoplayerVersion = 'com.github.amzn.exoplayer-amazon-port:exoplayer:3ed246771f3ab5a67be105650b4630162d66f0c1' // NOTE: 'exoplayer' is a needed module
exoplayerVersion = 'com.google.android.exoplayer:exoplayer:r2.5.3' // https://bintray.com/google/exoplayer/exoplayer
}
}
allprojects {
repositories {
// browse: https://bintray.com/bintray/jcenter
jcenter()
maven {
url 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2'
}
// com.android.support libs
maven { url 'https://maven.google.com' }
// github support
maven { url 'https://jitpack.io' }
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}