thumb-key/app/build.gradle

126 lines
3.8 KiB
Groovy
Raw Normal View History

2023-03-13 23:35:39 +03:00
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
2024-05-22 20:38:20 +03:00
id 'org.jetbrains.kotlin.plugin.compose'
2023-03-14 22:52:44 +03:00
id 'com.google.devtools.ksp'
2023-03-13 23:35:39 +03:00
}
android {
2023-12-01 19:15:03 +03:00
buildToolsVersion = "34.0.0"
2023-08-23 18:04:21 +03:00
compileSdk 34
2023-03-13 23:35:39 +03:00
defaultConfig {
applicationId "com.dessalines.thumbkey"
minSdk 21
2023-08-23 18:04:21 +03:00
targetSdkVersion 34
2024-08-15 15:50:34 +03:00
versionCode 102
versionName "3.4.1"
2023-03-13 23:35:39 +03:00
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true
}
2023-03-14 22:52:44 +03:00
ksp { arg('room.schemaLocation', "$projectDir/schemas") }
}
// Necessary for izzyondroid releases
dependenciesInfo {
// Disables dependency metadata when building APKs.
includeInApk = false
// Disables dependency metadata when building Android App Bundles.
includeInBundle = false
}
2024-05-03 17:39:32 +03:00
if (project.hasProperty("RELEASE_STORE_FILE")) {
2023-03-14 22:52:44 +03:00
signingConfigs {
release {
storeFile file(RELEASE_STORE_FILE)
storePassword RELEASE_STORE_PASSWORD
keyAlias RELEASE_KEY_ALIAS
keyPassword RELEASE_KEY_PASSWORD
// Optional, specify signing versions used
v1SigningEnabled true
v2SigningEnabled true
}
}
2023-03-13 23:35:39 +03:00
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2024-05-03 17:39:32 +03:00
if (project.hasProperty("RELEASE_STORE_FILE")) {
2023-03-14 22:52:44 +03:00
signingConfig signingConfigs.release
}
2023-03-13 23:35:39 +03:00
}
debug {
applicationIdSuffix '.debug'
versionNameSuffix ' (DEBUG)'
}
2023-03-13 23:35:39 +03:00
}
compileOptions {
2023-03-14 22:52:44 +03:00
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
2023-03-13 23:35:39 +03:00
}
kotlinOptions {
2023-03-14 22:52:44 +03:00
jvmTarget = '17'
freeCompilerArgs = ['-Xjvm-default=all-compatibility', '-opt-in=kotlin.RequiresOptIn']
2023-03-13 23:35:39 +03:00
}
buildFeatures {
compose true
}
namespace 'com.dessalines.thumbkey'
}
2024-05-23 06:04:08 +03:00
composeCompiler {
enableStrongSkippingMode = true
}
2023-03-13 23:35:39 +03:00
dependencies {
2024-05-03 17:39:32 +03:00
// Compose BOM
implementation platform('androidx.compose:compose-bom:2024.06.00')
2024-05-03 17:39:32 +03:00
implementation 'androidx.compose.ui:ui'
implementation 'androidx.compose.material3:material3'
implementation 'androidx.compose.material:material-icons-extended-desktop:1.6.8'
2024-05-03 17:39:32 +03:00
implementation 'androidx.compose.material3:material3-window-size-class'
implementation 'androidx.compose.ui:ui-tooling'
2024-06-01 05:59:12 +03:00
implementation 'androidx.compose.runtime:runtime-livedata'
2024-05-03 17:39:32 +03:00
// Activities
implementation 'androidx.activity:activity-compose:1.9.1'
implementation 'androidx.activity:activity-ktx:1.9.1'
2024-05-03 17:39:32 +03:00
// LiveData
2024-06-01 05:59:12 +03:00
implementation 'androidx.lifecycle:lifecycle-runtime-compose'
2024-05-03 17:39:32 +03:00
// Navigation
implementation 'androidx.navigation:navigation-compose:2.7.7'
2024-05-03 17:39:32 +03:00
// Emoji Picker
implementation "androidx.emoji2:emoji2-emojipicker:1.4.0"
// Markdown
implementation "com.github.jeziellago:compose-markdown:0.5.2"
2024-05-03 17:39:32 +03:00
// Preferences
implementation 'me.zhanghai.compose.preference:library:1.0.0'
2023-03-14 22:52:44 +03:00
2024-05-03 17:39:32 +03:00
// Input switcher
implementation "com.louiscad.splitties:splitties-systemservices:3.0.0"
implementation "com.louiscad.splitties:splitties-views:3.0.0"
// Room
2023-03-14 22:52:44 +03:00
// To use Kotlin annotation processing tool
2023-12-01 19:15:03 +03:00
ksp 'androidx.room:room-compiler:2.6.1'
implementation 'androidx.room:room-runtime:2.6.1'
annotationProcessor 'androidx.room:room-compiler:2.6.1'
2023-03-14 22:52:44 +03:00
// optional - Kotlin Extensions and Coroutines support for Room
2023-12-01 19:15:03 +03:00
implementation 'androidx.room:room-ktx:2.6.1'
2023-03-14 22:52:44 +03:00
2024-05-03 17:39:32 +03:00
// App compat
implementation 'androidx.appcompat:appcompat:1.7.0'
2023-03-13 23:35:39 +03:00
}