122 lines
4.2 KiB
Groovy
122 lines
4.2 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'kotlin-android'
|
|
id 'kotlin-kapt'
|
|
id 'dagger.hilt.android.plugin'
|
|
id 'kotlinx-serialization'
|
|
}
|
|
|
|
android {
|
|
compileSdk 31
|
|
|
|
defaultConfig {
|
|
applicationId "com.bikcodeh.borutoapp"
|
|
minSdk 23
|
|
targetSdk 31
|
|
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'
|
|
useIR = true
|
|
}
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion compose_version
|
|
kotlinCompilerVersion '1.5.21'
|
|
}
|
|
packagingOptions {
|
|
resources {
|
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'androidx.core:core-ktx:1.7.0'
|
|
implementation 'androidx.appcompat:appcompat:1.3.1'
|
|
implementation 'com.google.android.material:material:1.4.0'
|
|
implementation "androidx.compose.ui:ui:$compose_version"
|
|
implementation "androidx.compose.material:material:$compose_version"
|
|
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
|
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.0'
|
|
implementation 'androidx.activity:activity-compose:1.4.0'
|
|
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"
|
|
|
|
// Compose Navigation
|
|
implementation("androidx.navigation:navigation-compose:2.4.0-beta02")
|
|
|
|
// Room components
|
|
implementation "androidx.room:room-runtime:2.3.0"
|
|
kapt "androidx.room:room-compiler:2.3.0"
|
|
implementation "androidx.room:room-ktx:2.3.0"
|
|
|
|
// Retrofit
|
|
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
|
|
implementation("com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:0.8.0")
|
|
|
|
// Paging 3.0
|
|
implementation 'androidx.paging:paging-compose:1.0.0-alpha14'
|
|
|
|
// KotlinX Serialization
|
|
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.2"
|
|
|
|
// DataStore Preferences
|
|
implementation("androidx.datastore:datastore-preferences:1.0.0")
|
|
|
|
// Dagger - Hilt
|
|
implementation "com.google.dagger:hilt-android:2.38.1"
|
|
kapt "com.google.dagger:hilt-android-compiler:2.38.1"
|
|
kapt 'androidx.hilt:hilt-compiler:1.0.0'
|
|
implementation 'androidx.hilt:hilt-navigation-compose:1.0.0-alpha03'
|
|
|
|
// Coil
|
|
implementation("io.coil-kt:coil-compose:1.3.2")
|
|
|
|
// Horizontal Pager and Indicators - Accompanist
|
|
implementation "com.google.accompanist:accompanist-pager:$accompanist_version"
|
|
implementation "com.google.accompanist:accompanist-pager-indicators:$accompanist_version"
|
|
|
|
// Swipe to Refresh - Accompanist
|
|
implementation "com.google.accompanist:accompanist-swiperefresh:$accompanist_version"
|
|
|
|
// System UI Controller - Accompanist
|
|
implementation "com.google.accompanist:accompanist-systemuicontroller:$accompanist_version"
|
|
|
|
// Palette API
|
|
implementation "androidx.palette:palette-ktx:1.0.0"
|
|
|
|
// Testing
|
|
androidTestImplementation "androidx.test:runner:1.4.0"
|
|
androidTestImplementation "androidx.test:rules:1.4.0"
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
|
|
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
|
|
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.5.1"
|
|
} |