mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
116 lines
4.1 KiB
Groovy
116 lines
4.1 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
android {
|
|
compileSdkVersion 28
|
|
buildToolsVersion '28.0.3'
|
|
|
|
defaultConfig {
|
|
applicationId "com.kunzisoft.keepass"
|
|
minSdkVersion 14
|
|
targetSdkVersion 28
|
|
versionCode = 25
|
|
versionName = "2.5.0.0beta25"
|
|
multiDexEnabled true
|
|
|
|
testApplicationId = "com.kunzisoft.keepass.tests"
|
|
testInstrumentationRunner = "android.test.InstrumentationTestRunner"
|
|
|
|
buildConfigField "String[]", "ICON_PACKS", "{\"classic\",\"material\"}"
|
|
}
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
path "src/main/jni/CMakeLists.txt"
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled = false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
dexOptions {
|
|
}
|
|
|
|
flavorDimensions "tier"
|
|
productFlavors {
|
|
libre {
|
|
applicationIdSuffix = ".libre"
|
|
buildConfigField "String", "BUILD_VERSION", "\"libre\""
|
|
buildConfigField "boolean", "FULL_VERSION", "true"
|
|
buildConfigField "boolean", "CLOSED_STORE", "false"
|
|
buildConfigField "String[]", "STYLES_DISABLED", "{\"KeepassDXStyle_Dark\",\"KeepassDXStyle_Red\",\"KeepassDXStyle_Purple\"}"
|
|
buildConfigField "String[]", "ICON_PACKS_DISABLED", "{}"
|
|
|
|
}
|
|
pro {
|
|
applicationIdSuffix = ".pro"
|
|
buildConfigField "String", "BUILD_VERSION", "\"pro\""
|
|
buildConfigField "boolean", "FULL_VERSION", "true"
|
|
buildConfigField "boolean", "CLOSED_STORE", "true"
|
|
buildConfigField "String[]", "STYLES_DISABLED", "{}"
|
|
buildConfigField "String[]", "ICON_PACKS_DISABLED", "{}"
|
|
}
|
|
free {
|
|
applicationIdSuffix = ".free"
|
|
buildConfigField "String", "BUILD_VERSION", "\"free\""
|
|
buildConfigField "boolean", "FULL_VERSION", "false"
|
|
buildConfigField "boolean", "CLOSED_STORE", "true"
|
|
buildConfigField "String[]", "STYLES_DISABLED", "{\"KeepassDXStyle_Dark\",\"KeepassDXStyle_Blue\",\"KeepassDXStyle_Red\",\"KeepassDXStyle_Purple\"}"
|
|
buildConfigField "String[]", "ICON_PACKS_DISABLED", "{}"
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
libre.res.srcDir 'src/libre/res'
|
|
pro.res.srcDir 'src/pro/res'
|
|
free.res.srcDir 'src/free/res'
|
|
}
|
|
|
|
compileOptions {
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
def spongycastleVersion = "1.58.0.0"
|
|
def room_version = "2.2.1"
|
|
|
|
dependencies {
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
implementation 'androidx.preference:preference:1.1.0'
|
|
implementation 'androidx.legacy:legacy-preference-v14:1.0.0'
|
|
implementation 'androidx.cardview:cardview:1.0.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
implementation 'androidx.biometric:biometric:1.0.0'
|
|
implementation 'com.google.android.material:material:1.0.0'
|
|
|
|
implementation "androidx.room:room-runtime:$room_version"
|
|
kapt "androidx.room:room-compiler:$room_version"
|
|
|
|
implementation "com.madgag.spongycastle:core:$spongycastleVersion"
|
|
implementation "com.madgag.spongycastle:prov:$spongycastleVersion"
|
|
// Time
|
|
implementation 'joda-time:joda-time:2.9.9'
|
|
// Color
|
|
implementation 'com.github.Kunzisoft:AndroidClearChroma:2.3'
|
|
// Education
|
|
implementation 'com.getkeepsafe.taptargetview:taptargetview:1.12.0'
|
|
// Apache Commons Collections
|
|
implementation 'commons-collections:commons-collections:3.2.1'
|
|
implementation 'org.apache.commons:commons-io:1.3.2'
|
|
// Apache Commons Codec
|
|
implementation 'commons-codec:commons-codec:1.11'
|
|
// Base64
|
|
implementation 'biz.source_code:base64coder:2010-12-19'
|
|
// Icon pack
|
|
implementation project(path: ':icon-pack-classic')
|
|
implementation project(path: ':icon-pack-material')
|
|
}
|