2023-03-22 16:57:50 +01:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
2021-07-25 18:31:32 +02:00
|
|
|
plugins {
|
|
|
|
id 'com.android.application'
|
|
|
|
id 'org.jetbrains.kotlin.android'
|
|
|
|
id 'org.jetbrains.kotlin.kapt'
|
|
|
|
}
|
2017-07-29 06:10:37 +02:00
|
|
|
|
2020-03-10 15:58:29 +01:00
|
|
|
version wireguardVersionName
|
|
|
|
group groupName
|
|
|
|
|
2017-07-29 06:10:37 +02:00
|
|
|
android {
|
2023-01-20 00:34:47 +01:00
|
|
|
compileSdk 33
|
2020-12-22 11:52:19 +01:00
|
|
|
buildFeatures {
|
|
|
|
buildConfig = true
|
|
|
|
dataBinding = true
|
|
|
|
viewBinding = true
|
|
|
|
}
|
2023-01-20 14:35:10 +01:00
|
|
|
namespace = 'com.wireguard.android'
|
2017-07-29 06:10:37 +02:00
|
|
|
defaultConfig {
|
2017-11-29 03:15:40 +01:00
|
|
|
applicationId 'com.wireguard.android'
|
2017-07-29 06:10:37 +02:00
|
|
|
minSdkVersion 21
|
2023-03-22 16:54:33 +01:00
|
|
|
targetSdkVersion 33
|
2020-03-10 04:54:27 +01:00
|
|
|
versionCode wireguardVersionCode
|
|
|
|
versionName wireguardVersionName
|
2018-07-28 18:27:45 +02:00
|
|
|
buildConfigField 'int', 'MIN_SDK_VERSION', "$minSdkVersion.apiLevel"
|
2017-07-29 06:10:37 +02:00
|
|
|
}
|
2020-08-22 21:12:51 +02:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
2020-09-15 11:23:04 +02:00
|
|
|
coreLibraryDesugaringEnabled = true
|
2020-08-22 21:12:51 +02:00
|
|
|
}
|
2018-06-05 16:24:53 +02:00
|
|
|
buildTypes {
|
|
|
|
release {
|
2018-12-18 17:48:00 +01:00
|
|
|
minifyEnabled true
|
2023-04-10 18:19:49 +02:00
|
|
|
shrinkResources true
|
2020-03-29 07:20:47 +02:00
|
|
|
proguardFiles "proguard-android-optimize.txt", "proguard-rules.pro"
|
2023-04-03 19:07:15 +02:00
|
|
|
packagingOptions {
|
|
|
|
exclude "DebugProbesKt.bin"
|
|
|
|
exclude "kotlin-tooling-metadata.json"
|
|
|
|
}
|
2018-06-05 16:24:53 +02:00
|
|
|
}
|
2018-07-07 19:04:34 +02:00
|
|
|
debug {
|
|
|
|
applicationIdSuffix ".debug"
|
|
|
|
versionNameSuffix "-debug"
|
|
|
|
}
|
2018-06-05 16:24:53 +02:00
|
|
|
}
|
2023-03-21 15:30:38 +01:00
|
|
|
lint {
|
|
|
|
disable 'LongLogTag'
|
|
|
|
warning 'MissingTranslation', 'ImpliedQuantity'
|
2020-03-31 00:18:00 +02:00
|
|
|
}
|
2018-04-27 16:55:42 +02:00
|
|
|
}
|
2017-07-29 06:10:37 +02:00
|
|
|
|
|
|
|
dependencies {
|
2020-03-09 14:30:14 +01:00
|
|
|
implementation project(":tunnel")
|
2020-09-16 17:56:07 +02:00
|
|
|
implementation "androidx.activity:activity-ktx:$activityVersion"
|
2018-12-18 11:45:37 +01:00
|
|
|
implementation "androidx.annotation:annotation:$annotationsVersion"
|
|
|
|
implementation "androidx.appcompat:appcompat:$appcompatVersion"
|
2020-03-09 05:50:14 +01:00
|
|
|
implementation "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion"
|
|
|
|
implementation "androidx.coordinatorlayout:coordinatorlayout:$coordinatorLayoutVersion"
|
2020-03-30 07:15:49 +02:00
|
|
|
implementation "androidx.biometric:biometric:$biometricVersion"
|
2020-02-23 15:30:03 +01:00
|
|
|
implementation "androidx.core:core-ktx:$coreKtxVersion"
|
2020-08-22 21:37:18 +02:00
|
|
|
implementation "androidx.fragment:fragment-ktx:$fragmentVersion"
|
|
|
|
implementation "androidx.preference:preference-ktx:$preferenceVersion"
|
2020-09-15 23:30:20 +02:00
|
|
|
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleRuntimeKtxVersion"
|
2020-09-18 14:03:48 +02:00
|
|
|
implementation "androidx.datastore:datastore-preferences:$datastoreVersion"
|
2020-10-05 21:46:03 +02:00
|
|
|
implementation "com.google.android.material:material:$materialComponentsVersion"
|
2018-07-24 19:32:40 +02:00
|
|
|
implementation "com.journeyapps:zxing-android-embedded:$zxingEmbeddedVersion"
|
2020-03-24 07:42:25 +01:00
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"
|
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion"
|
2020-09-15 11:23:04 +02:00
|
|
|
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:$desugarVersion"
|
2017-07-29 06:10:37 +02:00
|
|
|
}
|
2018-05-29 18:37:14 +02:00
|
|
|
|
2023-03-22 16:57:50 +01:00
|
|
|
tasks.withType(JavaCompile).configureEach {
|
2018-05-29 18:37:14 +02:00
|
|
|
options.compilerArgs << '-Xlint:unchecked'
|
|
|
|
options.deprecation = true
|
2018-05-29 19:08:55 +02:00
|
|
|
}
|
2020-08-22 21:12:51 +02:00
|
|
|
|
2023-03-22 16:57:50 +01:00
|
|
|
tasks.withType(KotlinCompile).configureEach {
|
|
|
|
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
|
2020-08-22 21:12:51 +02:00
|
|
|
}
|