110 lines
3.5 KiB
Groovy
110 lines
3.5 KiB
Groovy
|
|
|
|
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id 'org.jetbrains.kotlin.kapt'
|
|
}
|
|
|
|
android {
|
|
signingConfigs {
|
|
release {
|
|
}
|
|
}
|
|
compileSdk 33
|
|
|
|
defaultConfig {
|
|
applicationId "com.sockenklaus.batterytracker"
|
|
minSdk 29
|
|
targetSdk 33
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables {
|
|
useSupportLibrary true
|
|
}
|
|
|
|
javaCompileOptions {
|
|
annotationProcessorOptions {
|
|
arguments += [
|
|
"room.schemaLocation":"$projectDir/schemas".toString(),
|
|
"room.incremental":"true",
|
|
"room.expandProjection":"true"]
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
shrinkResources true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
applicationIdSuffix '.release'
|
|
versionNameSuffix 'release'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
buildFeatures {
|
|
viewBinding true
|
|
compose true
|
|
}
|
|
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion '1.2.0'
|
|
}
|
|
packagingOptions {
|
|
resources {
|
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
}
|
|
}
|
|
namespace 'com.sockenklaus.batterytracker'
|
|
flavorDimensions
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'androidx.room:room-runtime:2.4.3'
|
|
implementation 'androidx.room:room-rxjava3:2.4.3'
|
|
implementation "androidx.room:room-paging:2.4.3"
|
|
implementation "androidx.room:room-ktx:2.4.3"
|
|
kapt 'androidx.room:room-compiler:2.4.3'
|
|
|
|
implementation "androidx.compose.ui:ui:1.4.0-alpha02"
|
|
implementation "androidx.compose.ui:ui-tooling-preview:1.4.0-alpha02"
|
|
implementation 'androidx.compose.material:material-icons-extended:1.4.0-alpha02'
|
|
implementation 'androidx.compose.material:material:1.4.0-alpha02'
|
|
implementation 'androidx.compose.runtime:runtime-livedata:1.3.1'
|
|
implementation 'androidx.compose.animation:animation:1.4.0-alpha02'
|
|
implementation 'androidx.compose.ui:ui-tooling:1.4.0-alpha02'
|
|
androidTestImplementation 'androidx.compose.ui:ui-test-junit4:1.4.0-alpha02'
|
|
debugImplementation "androidx.compose.ui:ui-test-manifest:1.3.1"
|
|
|
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
|
|
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.5.1'
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1'
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1'
|
|
|
|
implementation 'androidx.core:core-ktx:1.9.0'
|
|
implementation 'androidx.appcompat:appcompat:1.5.1'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
implementation "androidx.constraintlayout:constraintlayout-compose:1.0.1"
|
|
|
|
implementation 'androidx.navigation:navigation-fragment-ktx:2.5.3'
|
|
implementation 'androidx.navigation:navigation-ui-ktx:2.5.3'
|
|
implementation "androidx.navigation:navigation-compose:2.5.3"
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
|
|
implementation 'androidx.activity:activity-compose:1.6.1'
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.4'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'
|
|
} |