mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2025-12-20 16:04:22 +01:00
60 lines
1.4 KiB
Groovy
60 lines
1.4 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'dagger.hilt.android.plugin'
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
android {
|
|
compileSdk android_api_version
|
|
|
|
defaultConfig {
|
|
minSdk android_min_api_version
|
|
targetSdk android_api_version
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles "consumer-rules.pro"
|
|
}
|
|
|
|
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 {
|
|
jvmTarget = '1.8'
|
|
}
|
|
|
|
/**
|
|
* There is an issue with recomposition performance when data objects doesn't belong to the module
|
|
* when composition is enabled, because those objects cannot be properly compared for the changes.
|
|
* Better to leave enabled for all modules.
|
|
*/
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion compose_version
|
|
kotlinCompilerVersion kotlin_version
|
|
}
|
|
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
|
|
hilt {
|
|
enableExperimentalClasspathAggregation = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation libs.bundles.compose
|
|
|
|
implementation libs.bundles.hilt
|
|
kapt libs.bundles.hiltkapt
|
|
}
|