2023-06-11 21:02:27 -07:00
|
|
|
plugins {
|
|
|
|
|
id 'com.android.application'
|
|
|
|
|
id 'org.jetbrains.kotlin.android'
|
2023-08-17 00:37:11 -07:00
|
|
|
id 'kotlin-kapt'
|
|
|
|
|
id 'com.google.dagger.hilt.android'
|
2023-06-11 21:02:27 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
namespace 'net.buzzert.kordophonedroid'
|
2023-07-07 00:11:13 -07:00
|
|
|
compileSdk 33
|
2023-06-11 21:02:27 -07:00
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
|
applicationId "net.buzzert.kordophonedroid"
|
|
|
|
|
minSdk 31
|
2023-07-07 00:11:13 -07:00
|
|
|
targetSdk 33
|
2023-06-11 21:02:27 -07:00
|
|
|
versionCode 1
|
|
|
|
|
versionName "1.0"
|
|
|
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
|
vectorDrawables {
|
|
|
|
|
useSupportLibrary true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
|
release {
|
|
|
|
|
minifyEnabled false
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
compileOptions {
|
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
}
|
|
|
|
|
kotlinOptions {
|
2023-08-17 00:37:11 -07:00
|
|
|
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
2023-06-11 21:02:27 -07:00
|
|
|
}
|
|
|
|
|
buildFeatures {
|
|
|
|
|
compose true
|
|
|
|
|
}
|
|
|
|
|
composeOptions {
|
2023-08-17 00:37:11 -07:00
|
|
|
// 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'
|
2023-06-11 21:02:27 -07:00
|
|
|
}
|
|
|
|
|
packagingOptions {
|
|
|
|
|
resources {
|
|
|
|
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-17 00:37:11 -07:00
|
|
|
buildToolsVersion '33.0.1'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
|
jvmToolchain(8)
|
2023-06-11 21:02:27 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
2023-08-17 00:37:11 -07:00
|
|
|
implementation "androidx.compose.material3:material3:1.1.1"
|
|
|
|
|
implementation "androidx.core:core-ktx:${kotlin_version}"
|
2023-08-06 12:27:58 -07:00
|
|
|
|
|
|
|
|
// Kordophone lib
|
|
|
|
|
implementation project(':backend')
|
2024-02-26 23:03:10 -08:00
|
|
|
implementation 'androidx.security:security-crypto-ktx:1.1.0-alpha06'
|
2023-07-07 00:11:13 -07:00
|
|
|
|
2023-06-11 21:02:27 -07:00
|
|
|
// Navigation
|
2023-08-07 19:35:42 -07:00
|
|
|
def nav_version = "2.6.0"
|
2023-06-11 21:02:27 -07:00
|
|
|
|
|
|
|
|
// 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"
|
|
|
|
|
|
2023-08-07 23:37:40 -07:00
|
|
|
implementation 'androidx.activity:activity-compose:1.4.3'
|
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
|
|
|
|
2023-08-07 19:35:42 -07:00
|
|
|
implementation "androidx.compose.ui:ui:1.4.3"
|
|
|
|
|
implementation 'androidx.compose.material:material:1.4.3'
|
|
|
|
|
implementation "androidx.compose.foundation:foundation:1.4.3"
|
2023-08-07 23:37:40 -07:00
|
|
|
|
2023-08-17 00:37:11 -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}"
|
|
|
|
|
|
2023-08-07 23:37:40 -07:00
|
|
|
debugImplementation 'androidx.compose.ui:ui-tooling:1.4.3'
|
2023-08-17 00:37:11 -07:00
|
|
|
}
|
2023-08-07 23:37:40 -07:00
|
|
|
|
2023-08-17 00:37:11 -07:00
|
|
|
// Allow references to generated code
|
|
|
|
|
kapt {
|
|
|
|
|
correctErrorTypes true
|
|
|
|
|
}
|