forked from eneim/toro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
110 lines (95 loc) · 3.26 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
106
107
108
109
110
/*
* Copyright (c) 2017 Nam Nguyen, nam@ene.im
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.11'
repositories {
google()
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
jcenter()
maven { url 'https://oss.jfrog.org/artifactory/plugins-release' }
}
dependencies {
//noinspection GradleDependency
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.8.1"
classpath 'io.fabric.tools:gradle:1.27.0'
}
}
ext {
androidVersion = 28
minSupportSDKVersion = 16
demoMinSDK = 21
supportLibraryVersion = '28.0.0'
constrainLayoutVersion = '1.1.3'
archLibraryVersion = '1.1.1'
exoPlayer2Version = '2.9.3'
googleApiClient = '1.25.0'
glide = '4.8.0'
leackCanary = '1.6.2'
}
allprojects {
repositories {
google()
mavenCentral()
jcenter()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/'}
maven { url 'https://oss.jfrog.org/artifactory/oss-snapshot-local' }
maven { url "https://s3.amazonaws.com/moat-sdk-builds" }
}
configurations {
doc {
transitive false
}
}
project.ext {
releaseRepoName = 'Toro'
releaseUserOrg = 'eneimlabs'
releaseGroupId = 'im.ene.toro3'
releaseVersion = '3.6.2.2903'
releaseVersionCode = 306022903 /* Major * 10^8 + Minor * 10^6 + Patch * 10^4 + ExoPlayer ver */
releaseWebsite = 'https://github.com/eneim/toro'
releaseLicense = ['Apache-2.0']
licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
developerId = 'eneim'
developerName = 'Nam Nguyen Hoai'
developerEmail = 'nam@ene.im'
siteUrl = 'https://github.com/eneim/toro'
gitUrl = 'https://github.com/eneim/toro.git'
issueTracker = 'https://github.com/eneim/toro/issues'
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
task wrapper(type: Wrapper) {
gradleVersion = '4.10.3'
//noinspection GroovyAccessibility
distributionType = 'ALL'
}
// copy from https://github.com/chrisbanes/tivi
// read from gradle.properties for a value, or use default instead.
String propOrDef(String propertyName, String defaultValue) {
def propertyValue = project.properties[propertyName]
return propertyValue != null ? propertyValue : defaultValue
}