-
Notifications
You must be signed in to change notification settings - Fork 369
/
build.gradle
113 lines (99 loc) · 3.2 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
111
112
import si.kamino.gradle.extensions.version.code.IncreaseVersionCode
buildscript {
ext {
kotlinVersion = '1.2.60'
}
repositories {
google()
maven { url "https://plugins.gradle.org/m2/" }
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0-alpha08'
classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1'
classpath 'com.github.dcendents:android-maven-plugin:1.2'
classpath "gradle.plugin.si.kamino.gradle:android-version:1.5.3"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "gradle.plugin.solar.blaz.gradle:play-publisher:0.4.2"
classpath 'gradle.plugin.org.jmailen.gradle:kotlinter-gradle:1.15.1'
}
}
apply plugin: "solar.blaz.play-publisher-parent"
ext {
targetSdk = 28
compileSdk = 28
minSdk = 19
minSdkTV = 21
butterknifeVersion = "9.0.0-SNAPSHOT"
okHttpVersion = "3.10.0"
daggerVersion = "2.16"
javaxAnnotationVersion = "1.2"
torrentstreamVersion = '2.5.0'
filePickerVersion = '1.1.0'
changeloglibVersion = '2.1.0'
gsonVersion = '2.8.1'
rxJavaVersion = '2.1.13'
retrofitVersion = '2.4.0'
glideVersion = '4.8.0-SNAPSHOT'
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
maven { url 'http://guardian.github.com/maven/repo-releases' }
maven { url "https://dl.bintray.com/butterproject/maven/" }
mavenCentral()
maven {
name 'jcenter-snapshot'
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
//let project evaluate its script first
project.afterEvaluate {
//only apply to projects that have the android plugin
if (project.plugins.hasPlugin('com.android.application')) {
project.androidVersion {
appVersion {
versionCode {
digits 2
}
}
splits {
abi {
"armeabi-v7a" {
versionCode(IncreaseVersionCode) {
add 2000000
}
}
"arm64-v8a" {
versionCode(IncreaseVersionCode) {
add 3000000
}
}
x86 {
versionCode(IncreaseVersionCode) {
add 4000000
}
}
x86_64 {
versionCode(IncreaseVersionCode) {
add 5000000
}
}
}
}
}
}
}
}
playPublisher {
artifacts {
internal {
appId = "org.butterproject.butter"
clientSecretJson = project.hasProperty("playPublishFile") ? file(playPublishFile) : null
track = "internal"
listingDir = file(".butter/play")
}
}
}