mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 07:05:35 +03:00
52 lines
1.3 KiB
Text
52 lines
1.3 KiB
Text
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
// For more info on versioning, see the README.
|
|
val version = "0.1.0"
|
|
|
|
plugins {
|
|
alias(libs.plugins.android.library)
|
|
alias(libs.plugins.kotlin.android)
|
|
alias(libs.plugins.kotlin.parcelize)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.bitwarden.bridge"
|
|
compileSdk = libs.versions.compileSdk.get().toInt()
|
|
|
|
defaultConfig {
|
|
// This min value is selected to accommodate known consumers
|
|
minSdk = 28
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
buildConfigField("String", "VERSION", "\"$version\"")
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility(libs.versions.jvmTarget.get())
|
|
targetCompatibility(libs.versions.jvmTarget.get())
|
|
}
|
|
buildFeatures {
|
|
buildConfig = true
|
|
aidl = true
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
jvmTarget.set(JvmTarget.fromTarget(libs.versions.jvmTarget.get()))
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.androidx.core.ktx)
|
|
}
|