-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbuild.gradle
More file actions
executable file
·74 lines (59 loc) · 1.68 KB
/
build.gradle
File metadata and controls
executable file
·74 lines (59 loc) · 1.68 KB
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.7.21'
repositories {
mavenCentral()
google()
maven { url 'https://maven.google.com' }
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id 'com.gladed.androidgitversion' version '0.4.9'
}
allprojects {
repositories {
mavenCentral()
maven { url 'https://maven.google.com' }
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
def renameApk(variant, output) {
def flavorName = variant.productFlavors[0].name
def buildType = variant.buildType.name
def versionName = variant.versionName
def oldSuffix = flavorName + "-" + buildType
def newSuffix = oldSuffix + "-" + versionName
output.outputFileName = output.outputFileName.replace(oldSuffix, newSuffix)
}
// Android Environment Global Settings
ext.compileSdkVersion = 30
// Target and Min SDKs
ext.targetSdkVersion = 30
ext.minSdkVersion = 22
// Google libs
ext.xappcompat = "1.1.0"
ext.xmaterial = "1.1.0-beta02"
ext.androidSupportLib = "28.0.0"
ext.googlePlayLib = "11.4.0"
ext.gson = "2.7"
ext.dagger = "2.7"
ext.jsr305 = "1.3.9"
ext.constraintLayout = '1.0.2'
// Truecaller SDK
ext.truecallerSdk = "2.9.0"
// Square libs
ext.retrofit = "2.1.0"
ext.okHttp = "3.4.1"
ext.picasso = "2.5.2"
// test libs
ext.junit = "4.12"