110 lines
3.6 KiB
Groovy
110 lines
3.6 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id 'kotlin-kapt'
|
|
id 'dagger.hilt.android.plugin'
|
|
id 'kotlin-parcelize'
|
|
id 'com.google.gms.google-services'
|
|
id 'com.google.firebase.crashlytics'
|
|
}
|
|
|
|
android {
|
|
compileSdk 32
|
|
|
|
defaultConfig {
|
|
applicationId "com.waseefakhtar.doseapp"
|
|
minSdk 21
|
|
targetSdk 32
|
|
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 {
|
|
jvmTarget = '1.8'
|
|
}
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion compose_compiler_version
|
|
}
|
|
packagingOptions {
|
|
resources {
|
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
def nav_version = "2.5.0"
|
|
def hilt_version = "2.42"
|
|
def androidx_hilt_version = "1.0.0"
|
|
def gson_version = "2.9.0"
|
|
def room_version = "2.4.2"
|
|
def okhttp_version = "4.10.0"
|
|
def core_version = "1.8.0"
|
|
def material3_version = "1.0.0-alpha14"
|
|
def lifecycle_version = "2.5.0"
|
|
def activity_version = "1.5.0"
|
|
def firebase_version = "30.4.1"
|
|
|
|
implementation "androidx.core:core-ktx:$core_version"
|
|
implementation "androidx.compose.ui:ui:$compose_version"
|
|
implementation "androidx.compose.material3:material3:$material3_version"
|
|
implementation "androidx.navigation:navigation-compose:$nav_version"
|
|
implementation "androidx.compose.foundation:foundation:$compose_version"
|
|
|
|
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
|
|
|
|
implementation "androidx.activity:activity-compose:$activity_version"
|
|
|
|
// Lifecycle
|
|
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycle_version"
|
|
|
|
// Hilt
|
|
implementation "com.google.dagger:hilt-android:$hilt_version"
|
|
kapt "com.google.dagger:hilt-compiler:$hilt_version"
|
|
kapt "androidx.hilt:hilt-compiler:$androidx_hilt_version"
|
|
implementation "androidx.hilt:hilt-navigation-compose:$androidx_hilt_version"
|
|
|
|
// Gson
|
|
implementation "com.google.code.gson:gson:$gson_version"
|
|
|
|
// Room
|
|
implementation "androidx.room:room-runtime:$room_version"
|
|
implementation "androidx.room:room-ktx:$room_version"
|
|
kapt "androidx.room:room-compiler:$room_version"
|
|
|
|
// OkHttp
|
|
implementation(platform("com.squareup.okhttp3:okhttp-bom:$okhttp_version"))
|
|
implementation("com.squareup.okhttp3:okhttp")
|
|
implementation("com.squareup.okhttp3:logging-interceptor")
|
|
|
|
// Firebase
|
|
implementation(platform("com.google.firebase:firebase-bom:$firebase_version"))
|
|
implementation 'com.google.firebase:firebase-analytics'
|
|
implementation 'com.google.firebase:firebase-crashlytics'
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
|
|
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
|
|
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
|
|
} |