-
Notifications
You must be signed in to change notification settings - Fork 310
/
build.gradle
87 lines (81 loc) · 3.12 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
/*
* Copyright (c) 2017 Proton Technologies AG
*
* This file is part of ProtonVPN.
*
* ProtonVPN is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ProtonVPN is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with ProtonVPN. If not, see <https://www.gnu.org/licenses/>.
*/
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
// We should migrate to version catalogs as soon as IDE support is available:
// https://issuetracker.google.com/issues/226078451
ext.androidx_lifecycle_version = '2.8.3'
ext.core_version = '27.2.0'
ext.datastore_version = '1.1.1'
ext.desugar_jdk_version = '2.0.4'
ext.detekt_version = '1.23.6'
ext.espresso_version = '3.6.1'
// WARNING: hilt 2.51 causes runtime crashes (see breaking changes in https://github.com/google/dagger/releases/tag/dagger-2.51)
ext.hilt_version = '2.50'
ext.hilt_compiler_version = '1.2.0'
// When updating kotlin version KSP needs to be updated as well to matching version
ext.kotlin_version = '1.9.25'
ext.ksp_version = '1.9.25-1.0.20'
ext.kotlinx_coroutines_version = '1.8.1'
ext.kotlinx_serialization_json_version = '1.6.3'
ext.mockk_version = '1.13.12'
ext.robolectric_version = '4.12.1'
ext.room_version = '2.6.1'
ext.turbine_version = '1.1.0'
repositories {
maven { url "https://plugins.gradle.org/m2/" }
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.5.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'org.owasp:dependency-check-gradle:6.2.2'
classpath 'com.jaredsburrows:gradle-license-plugin:0.8.91'
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$detekt_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
classpath "androidx.room:room-gradle-plugin:$room_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id 'com.google.devtools.ksp' version "$ksp_version" apply false
}
project.ext {
minSdkVersion = 26
minSdkVersionAmazon = 25 // Fire OS 6, see VPNAND-1914.
compileSdkVersion = 34
compileNdkVersion = "23.1.7779620"
}
allprojects {
repositories {
mavenCentral()
google()
maven { url "https://jitpack.io" }
flatDir {
dirs 'libs'
}
}
}
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
apply plugin: 'org.owasp.dependencycheck'