forked from yuliskov/SmartTubeLegacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
105 lines (93 loc) · 4.82 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
102
103
104
105
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
//classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.4'
// 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 = 28
buildToolsVersion = "28.0.3"
minSdkVersion = 14
targetSdkVersion = 26
appCompatVersion = 'com.android.support:appcompat-v7:28.0.0'
supportVersion = 'com.android.support:support-v4:28.0.0'
constraintLayoutVersion = 'com.android.support.constraint:constraint-layout:1.1.2'
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'
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.9.8@aar'
asmVersion = 'org.ow2.asm:asm:5.0.4'
stethoVersion = 'com.facebook.stetho:stetho:1.5.0' // Chrome Dev Tools
stethoDevVersion = 'com.github.facebook.stetho:stetho:6d148f20b96ecb29320cced6617830eda8af0426' // Chrome Dev Tools
nanoHttpdVersion = 'org.nanohttpd:nanohttpd:2.3.1'
amazonExoplayerVersion = 'com.amazon.android:exoplayer:2.9.0' // https://bintray.com/exo-support-amzn/amazon-exoplayer-port/exoplayer
amazonExoplayerGitHubVersion = 'com.github.amzn.exoplayer-amazon-port:exoplayer:09f605d6ab230202e3f49bba74511cd375e545c1' // 2.9.0 NOTE: 'exoplayer' is a needed module
amazonExoplayerMyGitHubVersion = 'com.github.yuliskov.exoplayer-amazon-port:exoplayer:r2.9.5-upd4' // 2.9.5 NOTE: 'exoplayer' is a needed module
exoplayerVersion = 'com.google.android.exoplayer:exoplayer:2.9.6' // https://bintray.com/google/exoplayer/exoplayer
exoplayerGitHubVersion = 'com.github.google:ExoPlayer:c38cd1cca9e9deb50724d82fcbc3ac02c49505a9' // 'exoplayer' is a needed module
exoplayerMyGitHubVersion = 'com.github.yuliskov.ExoPlayer:exoplayer:r2.9.5-upd5' // 2.9.5 NOTE: 'exoplayer' is a needed module
voiceOverlayVersion = 'com.algolia.instantsearch:voice:1.0.0-beta02' // https://github.com/algolia/voice-overlay-android
multiDexVersion = 'com.android.support:multidex:1.0.2' // crashlytics fix on Android 4.4
resGuardVersion = 'com.tencent.mm:AndResGuard-gradle-plugin:1.2.15'
openPgpVersion = 'org.sufficientlysecure:openpgp-api:9.0'
mediaCompatVersion = 'com.android.support:support-media-compat:28.0.0'
}
}
allprojects {
repositories {
// browse: https://bintray.com/bintray/jcenter
jcenter()
google()
// com.android.support libs, constraint lib
maven {
url 'https://maven.google.com/'
name 'Google'
}
// crosswalk
maven {
url 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2'
}
// add lib from github (e.g. exoplayer-amazon-port)
// should be the last in the list
maven { url 'https://jitpack.io' }
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
//apply plugin: 'com.github.johnrengelman.shadow'
//apply plugin: 'java'
//
//// Configuring Filtering for Relocation
//shadowJar {
// relocate('com.google.android.exoplayer2.util', 'com.liskovsoft.smartyoutubetv.flavors.exoplayer.player.helpers') {
// include 'com.google.android.exoplayer2.util.Log'
// }
//}