-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
88 lines (74 loc) · 2.47 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
/*
* Copyright (c) MovieCast and it's contributors. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'org.moallemi.gradle.advanced-build-version:gradle-plugin:1.6.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
apply plugin: 'org.moallemi.advanced-build-version'
advancedVersioning {
codeOptions {
versionCodeType org.moallemi.gradle.internal.VersionCodeType.DATE
}
nameOptions {
versionMajor 0
versionMinor 1
versionPatch 0
}
}
ext {
targetSdk = 28
compileSdk = 28
minSdk = 15
appCompatVersion = '1.0.0'
butterKnifeVersion = "10.0.0"
okHttpVersion = "3.10.0"
gsonVersion = "2.8.5"
daggerVersion = "2.21"
frescoVersion = "1.11.0"
videoplayerVersion = "1.1.0"
jlibtorrentVersion = '1.2.0.18-RC5'
versionName = advancedVersioning.versionName
versionCode = (System.getenv("BUILD_NUMBER") ?: advancedVersioning.versionCode) as int
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
project.afterEvaluate {
if(project.plugins.hasPlugin('com.android.application')) {
project.android {
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}
applicationVariants.all { variant ->
variant.outputs.all {
if(variant.name == "debug")
outputFileName = "${project.name}-development-${variant.versionCode}.apk"
else
outputFileName = "${project.name}-${variant.name}-${variant.versionName}.apk"
}
}
}
}
}
}