Files
super-app/navi-design/build.gradle
Shivam Goyal 8125c532e9 Refactor & Abstract Gradle Dependencies (#4654)
* replace kotlin-android-extensions with kotlin-parcelize

* abstract lifecycle_version

* remove synthetic import

* reformat build.gradle

* move appVersionCode to variable

* reformat build.gradle

* abstract espresso_version

* abstract junit_version and android_junit_version

* abstract material_version

* abstract core_version

* reformat

* refactor consumer-rules.pro

* refactor proguard-rules.pro

* remove redundant entries

* remove redundant equals of incremental in groovy

* abstract room_version

* refactor hilt_version

* navi-design: revert rm api core-ktx

* refactor lottie_version

* refactor work_version

* refactor kotlin_version

* remove kotlin-stdlib as it's already included with kotlin-gradle-plugin

* refactor spotless plugin declaration
2022-12-19 13:26:56 +05:30

67 lines
2.3 KiB
Groovy

plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-kapt'
id 'kotlin-parcelize'
}
android {
namespace 'com.navi.design'
compileSdk 32
defaultConfig {
minSdk 21
targetSdk 31
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
dataBinding true
compose true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
incremental true
}
composeOptions {
kotlinCompilerExtensionVersion compose_version
}
kotlinOptions {
jvmTarget = '1.8'
}
}
dependencies {
api project(":navi-base")
implementation "androidx.core:core-ktx:$core_version"
implementation "androidx.appcompat:appcompat:$appcompat_version"
api "androidx.compose.ui:ui:$compose_version"
api "androidx.compose.material:material:$compose_version"
api "androidx.compose.ui:ui-tooling-preview:$compose_version"
api "androidx.constraintlayout:constraintlayout-compose:1.1.0-alpha02"
androidTestApi "androidx.compose.ui:ui-test-junit4:$compose_version"
debugApi "androidx.compose.ui:ui-tooling:$compose_version"
debugApi "androidx.compose.ui:ui-test-manifest:$compose_version"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"
api 'androidx.activity:activity-compose:1.4.0'
api "androidx.core:core-ktx:$core_version"
api 'com.google.code.gson:gson:2.8.9'
api 'androidx.hilt:hilt-navigation-compose:1.0.0'
api "com.airbnb.android:lottie:$lottie_version"
implementation "com.google.android.material:material:$material_version"
api "androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycle_version"
implementation "com.google.accompanist:accompanist-appcompat-theme:0.25.1"
testImplementation "junit:junit:$junit_version"
androidTestImplementation "androidx.test.ext:junit:$android_junit_version"
androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version"
}