wgtunnel/app/build.gradle.kts

154 lines
4.4 KiB
Plaintext
Raw Normal View History

2023-05-24 01:33:20 -04:00
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.hilt.android)
2023-05-24 01:33:20 -04:00
id("org.jetbrains.kotlin.plugin.serialization")
alias(libs.plugins.ksp)
2023-05-24 01:33:20 -04:00
}
android {
namespace = "com.zaneschepke.wireguardautotunnel"
compileSdk = 34
2023-05-24 01:33:20 -04:00
val versionMajor = 2
val versionMinor = 5
val versionPatch = 0
2023-05-24 01:33:20 -04:00
val versionBuild = 0
defaultConfig {
applicationId = "com.zaneschepke.wireguardautotunnel"
minSdk = 26
targetSdk = 34
2023-05-24 01:33:20 -04:00
versionCode = versionMajor * 10000 + versionMinor * 1000 + versionPatch * 100 + versionBuild
versionName = "${versionMajor}.${versionMinor}.${versionPatch}"
multiDexEnabled = true
resourceConfigurations.addAll(listOf("en"))
2023-05-24 01:33:20 -04:00
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary = true
}
}
buildTypes {
release {
isDebuggable = false
isMinifyEnabled = true
isShrinkResources = true
2023-05-24 01:33:20 -04:00
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
//for release testing
signingConfig = signingConfigs.getByName("debug")
}
debug {
isDebuggable = true
2023-05-24 01:33:20 -04:00
}
}
flavorDimensions.add("type")
productFlavors {
create("floss") {
dimension = "type"
applicationIdSuffix = ".floss"
}
create("general") {
dimension = "type"
if (BuildHelper.isReleaseBuild(gradle) && BuildHelper.isGeneralFlavor(gradle))
{
apply(plugin = "com.google.gms.google-services")
apply(plugin = "com.google.firebase.crashlytics")
}
}
}
2023-05-24 01:33:20 -04:00
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
buildFeatures {
compose = true
buildConfig = true
2023-05-24 01:33:20 -04:00
}
composeOptions {
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
2023-05-24 01:33:20 -04:00
}
packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}
}
val generalImplementation by configurations
2023-05-24 01:33:20 -04:00
dependencies {
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.lifecycle.runtime.ktx)
implementation(libs.androidx.activity.compose)
implementation(platform(libs.androidx.compose.bom))
implementation(libs.androidx.compose.ui)
implementation(libs.androidx.compose.ui.graphics)
implementation(libs.androidx.compose.ui.tooling.preview)
implementation(libs.androidx.material3)
implementation(libs.androidx.appcompat)
//test
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
androidTestImplementation(platform(libs.androidx.compose.bom))
androidTestImplementation(libs.androidx.compose.ui.test)
debugImplementation(libs.androidx.compose.ui.tooling)
debugImplementation(libs.androidx.compose.manifest)
//wg
implementation(libs.tunnel)
2023-05-24 01:33:20 -04:00
//logging
implementation(libs.timber)
2023-05-24 01:33:20 -04:00
// compose navigation
implementation(libs.androidx.navigation.compose)
implementation(libs.androidx.hilt.navigation.compose)
2023-05-24 01:33:20 -04:00
// hilt
implementation(libs.hilt.android)
ksp(libs.hilt.android.compiler)
2023-05-24 01:33:20 -04:00
//accompanist
implementation(libs.accompanist.systemuicontroller)
implementation(libs.accompanist.permissions)
implementation(libs.accompanist.flowlayout)
implementation(libs.accompanist.navigation.animation)
implementation(libs.accompanist.drawablepainter)
2023-05-24 01:33:20 -04:00
//room
implementation(libs.androidx.room.runtime)
annotationProcessor(libs.androidx.room.compiler)
ksp(libs.androidx.room.compiler)
implementation(libs.androidx.room.ktx)
2023-05-24 01:33:20 -04:00
//lifecycle
implementation(libs.lifecycle.runtime.compose)
2023-05-24 01:33:20 -04:00
//icons
implementation(libs.material.icons.extended)
//serialization
implementation(libs.kotlinx.serialization.json)
2023-05-24 01:33:20 -04:00
//firebase crashlytics
generalImplementation(platform(libs.firebase.bom))
generalImplementation(libs.google.firebase.crashlytics.ktx)
generalImplementation(libs.google.firebase.analytics.ktx)
2023-05-24 01:33:20 -04:00
//barcode scanning
implementation(libs.play.services.code.scanner)
2023-05-24 01:33:20 -04:00
}