-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathbuild.gradle
More file actions
197 lines (195 loc) · 7.2 KB
/
build.gradle
File metadata and controls
197 lines (195 loc) · 7.2 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
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply from: "$rootDir/config/config.gradle"
apply from: "$rootDir/depedencycheck.gradle"
android {
<<<<<<< HEAD
ndkVersion "23.0.7599858"
=======
ndkVersion "27.2.12479018"
>>>>>>> origin/develop
compileOptions {
sourceCompatibility rootProject.java
targetCompatibility rootProject.java
}
buildFeatures {
dataBinding true
viewBinding true
buildConfig true
}
compileSdkVersion rootProject.appCompiledSdk
defaultConfig {
minSdkVersion rootProject.appMinSdk
targetSdkVersion rootProject.appTargetSdk
javaCompileOptions {
annotationProcessorOptions {
arguments += ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
}
sourceSets {
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
fdroid {
main.jniLibs.srcDirs = ['/frdroid/src/libs', 'libs']
}
google {
main.jniLibs.srcDirs = ['/google/src/libs', 'libs']
}
}
packagingOptions {
jniLibs {
excludes += ['lib/arm64-v8a/libwg-quick.so', 'lib/armeabi-v7a/libwg-quick.so', 'lib/x86/libwg-quick.so', 'lib/x86_64/libwg-quick.so'
]
}
}
lint {
abortOnError false
checkReleaseBuilds false
disable 'MissingTranslation', 'NonConstantResourceId', 'VectorRaster', 'ContentDescription'
}
namespace 'com.windscribe.vpn'
//Force gradle to pick latest version of guava and junit.
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.google.guava') {
def version = details.requested.version
def versionData = version.split('-')
if (versionData.contains('jre')) {
<<<<<<< HEAD
details.useVersion "30.1.1-jre"
}
if (versionData.contains('android')) {
details.useVersion "30.1.1-android"
=======
details.useVersion "32.1.2-jre"
}
if (versionData.contains('android')) {
details.useVersion "32.1.2-android"
>>>>>>> origin/develop
}
}
if (details.requested.group == 'junit') {
details.useVersion "4.13.2"
}
}
}
flavorDimensions "dim"
productFlavors {
fdroid {
dimension = "dim"
}
google {
dimension = "dim"
}
}
}
dependencies {
//Android
api "androidx.appcompat:appcompat:$appCompat"
api "com.google.android.material:material:$material"
api 'androidx.vectordrawable:vectordrawable:1.1.0'
api 'androidx.transition:transition:1.4.1'
api 'androidx.constraintlayout:constraintlayout:2.1.4'
api 'androidx.multidex:multidex:2.0.1'
api "androidx.security:security-crypto:1.1.0-alpha05"
api "androidx.lifecycle:lifecycle-extensions:2.2.0"
api "androidx.lifecycle:lifecycle-common-java8:$archLifecycle"
runtimeOnly "androidx.lifecycle:lifecycle-runtime-ktx:$archLifecycle"
// Kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_std_lib"
implementation "androidx.core:core-ktx:$ktx_core"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-rx2:1.6.4'
//VPN
implementation project(path: ':openvpn')
implementation project(path: ':strongswan')
implementation project(path: ':common')
api project(path: ':wgtunnel')
//Rxjava
api 'io.reactivex.rxjava2:rxandroid:2.1.1'
<<<<<<< HEAD
api 'io.reactivex.rxjava2:rxjava:2.2.13'
=======
api 'io.reactivex.rxjava2:rxjava:2.2.19'
>>>>>>> origin/develop
//Retrofit
implementation "com.squareup.retrofit2:retrofit:$retrofit"
api "com.squareup.retrofit2:converter-gson:$retrofit"
implementation "com.squareup.retrofit2:converter-scalars:$retrofit"
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
//Okhttp
implementation 'com.squareup.okhttp3:logging-interceptor:4.2.2'
<<<<<<< HEAD
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
=======
implementation 'com.squareup.okhttp3:okhttp:4.11.0'
>>>>>>> origin/develop
api 'com.squareup.okhttp3:mockwebserver:4.9.3'
//Logging
api 'org.slf4j:slf4j-api:1.7.36'
api 'com.github.tony19:logback-android:2.0.0'
implementation ('net.logstash.logback:logstash-logback-encoder:5.0') {
exclude group: 'ch.qos.logback', module: 'logback-core'
}
//Room
api "androidx.room:room-rxjava2:$room"
<<<<<<< HEAD
=======
api "androidx.room:room-ktx:$room"
>>>>>>> origin/develop
api "androidx.room:room-runtime:$room"
kapt "androidx.room:room-compiler:$room"
implementation "androidx.room:room-testing:$room"
// Work manager
api "androidx.work:work-runtime:$work_manager"
api "androidx.work:work-rxjava2:$work_manager"
implementation "androidx.work:work-runtime-ktx:$work_manager"
androidTestImplementation "androidx.work:work-testing:$work_manager"
androidTestImplementation "androidx.room:room-testing:$work_manager"
// Dagger
kapt "com.google.dagger:dagger-compiler:$dagger"
api "com.google.dagger:dagger:$dagger"
// Coroutines
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesCore"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesCore"
// Supporting libraries
api 'org.javatuples:javatuples:1.2'
api 'com.github.seancfoley:ipaddress:5.3.1'
api "com.github.bumptech.glide:glide:$glide"
kapt "com.github.bumptech.glide:compiler:$glide"
api 'commons-io:commons-io:2.11.0'
api 'com.github.thoughtbot.expandable-recycler-view:expandablerecyclerview:v1.3'
<<<<<<< HEAD
api 'com.jakewharton:butterknife:10.2.0'
kapt 'com.jakewharton:butterknife-compiler:10.2.3'
api 'com.google.guava:guava:30.1.1-android'
=======
api 'com.google.guava:guava:32.1.2-android'
>>>>>>> origin/develop
api 'com.github.GCX-HCI:tray:v0.12.0'
implementation 'org.isomorphism:token-bucket:1.6'
// Test
testImplementation "junit:junit:$JUnit"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testImplementation 'org.junit.jupiter:junit-jupiter'
<<<<<<< HEAD
// ECH Conscrypt
implementation 'info.guardianproject.conscrypt:conscrypt-android:2.6.alpha1638179154.job1828169525'
implementation 'commons-io:commons-io:2.11.0'
=======
implementation 'commons-io:commons-io:2.13.0'
>>>>>>> origin/develop
implementation 'commons-net:commons-net:3.6'
// Google only dependencies
googleApi "com.google.firebase:firebase-messaging:$fireBase"
googleApi files("$projectDir/src/google/libs/in-app-purchasing-2.0.76.jar")
implementation files("$projectDir/src/main/libs/wsnet.aar")
googleApi 'com.android.billingclient:billing:7.0.0'
googleApi "com.google.android.gms:play-services-appset:16.0.2"
googleApi 'com.google.android.play:review-ktx:2.0.1'
<<<<<<< HEAD
=======
googleApi 'com.google.android.gms:play-services-auth:20.4.1'
>>>>>>> origin/develop
}