Private
Public Access
1
0
Files
Kordophone/app/build.gradle

145 lines
4.1 KiB
Groovy
Raw Normal View History

plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'kotlin-kapt'
id 'com.google.dagger.hilt.android'
}
android {
namespace 'net.buzzert.kordophonedroid'
2023-07-07 00:11:13 -07:00
compileSdk 33
defaultConfig {
applicationId "net.buzzert.kordophonedroid"
minSdk 31
2023-07-07 00:11:13 -07:00
targetSdk 33
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true
}
}
2024-03-24 22:49:05 -07:00
signingConfigs {
if (project.hasProperty('RELEASE_STORE_FILE')) {
release {
storeFile file(RELEASE_STORE_FILE)
storePassword RELEASE_STORE_PASSWORD
keyAlias RELEASE_KEY_ALIAS
keyPassword RELEASE_KEY_PASSWORD
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2024-03-24 22:49:05 -07:00
if (project.hasProperty('RELEASE_STORE_FILE')) {
signingConfig signingConfigs.release
}
}
}
2024-03-24 22:49:05 -07:00
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
2024-03-24 22:49:05 -07:00
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
2024-03-24 22:49:05 -07:00
buildFeatures {
compose true
}
2024-03-24 22:49:05 -07:00
composeOptions {
// Note: this is strictly tied to a kotlin version, but isn't the version of kotlin exactly.
// See: https://developer.android.com/jetpack/androidx/releases/compose-kotlin
kotlinCompilerExtensionVersion '1.4.8'
}
2024-03-24 22:49:05 -07:00
packagingOptions {
resources {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
}
}
2024-03-24 22:49:05 -07:00
buildToolsVersion '33.0.1'
}
kotlin {
jvmToolchain(8)
}
dependencies {
implementation "androidx.compose.material3:material3:1.1.1"
implementation "androidx.core:core-ktx:${kotlin_version}"
// Kordophone lib
implementation project(':backend')
implementation 'androidx.security:security-crypto-ktx:1.1.0-alpha06'
2023-07-07 00:11:13 -07:00
// Navigation
2023-08-07 19:35:42 -07:00
def nav_version = "2.6.0"
// Java language implementation
implementation "androidx.navigation:navigation-fragment:$nav_version"
implementation "androidx.navigation:navigation-ui:$nav_version"
// Kotlin
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
// Feature module Support
implementation "androidx.navigation:navigation-dynamic-features-fragment:$nav_version"
// Testing Navigation
androidTestImplementation "androidx.navigation:navigation-testing:$nav_version"
// Jetpack Compose Integration
implementation "androidx.navigation:navigation-compose:$nav_version"
// Jetpack Compose
def compose_version = "1.4.3"
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.material:material:$compose_version"
implementation "androidx.compose.foundation:foundation:$compose_version"
implementation "androidx.activity:activity-compose:$compose_version"
2023-08-17 01:07:15 -07:00
// Lifecycle
def lifecycle_version = "2.6.1"
implementation "androidx.lifecycle:lifecycle-runtime-compose:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycle_version"
2023-08-07 23:37:40 -07:00
// Hilt (dependency injection)
implementation "com.google.dagger:hilt-android:${hilt_version}"
implementation "androidx.hilt:hilt-navigation-compose:1.0.0"
kapt "com.google.dagger:hilt-compiler:${hilt_version}"
2024-03-23 17:04:14 -07:00
// Coil (image loading library)
implementation "io.coil-kt:coil:2.4.0"
implementation "io.coil-kt:coil-compose:2.4.0"
// Disk LRU Cache
implementation "com.jakewharton:disklrucache:2.0.2"
// Zooming in images
implementation "net.engawapg.lib:zoomable:$compose_version"
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
}
2023-08-07 23:37:40 -07:00
// Allow references to generated code
kapt {
correctErrorTypes true
}