forked from meganz/android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
143 lines (135 loc) · 4.67 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
apply from: "tools/util.gradle"
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.gradleVersion = '7.2.2'
ext.lintVersion = '30.2.2' // = gradleVersion + 23.0.0
ext.kotlinVersion = '1.7.20'
ext.navigationVersion = '2.4.2'
ext.googleServicesVersion = '4.3.10'
ext.hiltVersion = "2.42"
ext.firebaseCrashlyticsVersion = "2.8.1"
ext.firebasePerformanceVersion = "1.4.2"
ext.firebaseAppDistribution = "3.0.1"
ext.jacocoVersion = '0.8.8'
ext.paparazziVersion = "1.0.0"
ext.jfrogArtifactoryVersion = '4.29.2'
repositories {
google()
maven { url "https://plugins.gradle.org/m2/" }
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:$gradleVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigationVersion"
classpath "com.google.gms:google-services:$googleServicesVersion"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hiltVersion"
classpath "com.google.firebase:firebase-crashlytics-gradle:$firebaseCrashlyticsVersion"
classpath "com.google.firebase:perf-plugin:$firebasePerformanceVersion"
classpath "com.google.firebase:firebase-appdistribution-gradle:$firebaseAppDistribution"
//Jacoco Plugin for code coverage
classpath "org.jacoco:org.jacoco.core:$jacocoVersion"
classpath "app.cash.paparazzi:paparazzi-gradle-plugin:$paparazziVersion"
// jfrog artifactory publish&resolve
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:$jfrogArtifactoryVersion"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
jcenter()
maven {
url "https://jitpack.io"
}
maven {
url "${System.env.ARTIFACTORY_BASE_URL}/artifactory/mega-gradle/mega-sdk-android"
}
}
apply plugin: 'com.jfrog.artifactory'
apply plugin: 'maven-publish'
}
task clean(type: Delete) {
delete rootProject.buildDir
}
// Define versions in a single place
ext {
// App
appVersion = "7.6"
// Sdk and tools
compileSdkVersion = 33
minSdkVersion = 24
targetSdkVersion = 33
buildToolsVerion = '33.0.1'
// Prebuilt MEGA SDK version
megaSdkVersion = '20230304.032141-rel'
// App dependencies
accompanistLayoutVersion = '0.24.13-rc'
accompanistVersion ='0.24.13-rc'
activityComposeVersion = '1.4.0'
androidxArchCoreVersion = '2.1.0'
androidxTestExtVersion = '1.1.3'
androidxTestVersion = '1.4.0'
ankoVersion = '0.10.8'
appCompatVersion = '1.5.1'
autovalueAnnotationVersion = '1.9'
autovalueVersion = '1.9'
bannerViewPagerVersion = '3.4.0'
biometricVersion = '1.1.0'
cardViewVersion = '1.0.0'
coilVersion = '2.1.0'
composeCompilerVersion = '1.3.2'
composeBomVersion = '2022.10.00'
constraintLayoutVersion = '2.1.1'
coroutinesVersion = "1.6.0"
coroutineTestVersion = '1.6.0'
daggerVersion = "2.24"
datastoreVersion = '1.0.0'
espressoVersion = '3.4.0'
exoPlayerVersion = '2.18.1'
firebaseBom = '31.1.1'
fragmentKtxVersion = '1.2.5'
fragmentTestingVersion = '1.4.1'
frescoVersion = '2.6.0'
glideVersion = '4.10.0'
gsonVersion = '2.8.5'
hiltAndroidXCompilerVersion = '1.0.0'
hiltAndroidXVersion = '1.0.0-alpha03'
hiltNavigationComposeVersion = '1.0.0'
junitVersion = '4.13.2'
ktxVersion = '1.7.0'
legacySupportVersion = 'v4:1.0.0'
lifecycleVersion = '2.5.1'
liveEventBus = '1.7.3'
logbackVersion = '2.0.0'
materialVersion = '1.3.0'
mockitoKotlinVersion = '4.0.0'
mockitoVersion = '3.3.3'
preferenceVersion ='1.2.0'
recyclerViewVersion = '1.3.0-beta02'
roboletricVersion = '4.7.3'
roomVersion = '2.2.5'
roomVersion = '2.4.2'
rxAndroidVersion = '3.0.0'
rxJavaVersion = '3.0.4'
showkaseVersion = '1.0.0-beta13'
simpleStorageVersion = '1.1.0'
slf4jVersion = '1.7.25'
timberVersion = '5.0.1'
truthVersion = '1.1.3'
turbineVersion = '0.7.0'
viewModelComposeVersion = '2.4.1'
viewPagerVersion = '1.1.0-beta01'
workVersion = '2.7.1'
exifinterfaceVersion = '1.3.0'
zxingVersion = '3.4.0'
billingVersion = '5.1.0'
}
ext.shouldSuppressWarnings = { ->
return isCiBuild() && System.getenv("DO_NOT_SUPPRESS_WARNINGS") != 'true'
}
if (!shouldUsePrebuiltSdk() || isCiBuild()) {
apply from: "$project.rootDir/tools/prebuilt-sdk.gradle"
}