2021-01-26 13:54:28 +01:00
|
|
|
import org.jetbrains.compose.compose
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id("com.android.application")
|
|
|
|
kotlin("android")
|
2021-02-08 21:05:40 +01:00
|
|
|
id("org.jetbrains.compose")
|
2021-01-26 13:54:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
group = "com.shabinder"
|
|
|
|
version = Versions.versionName
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion(29)
|
|
|
|
defaultConfig {
|
|
|
|
applicationId = "com.shabinder.android"
|
|
|
|
minSdkVersion(Versions.minSdkVersion)
|
|
|
|
targetSdkVersion(Versions.targetSdkVersion)
|
|
|
|
versionCode = Versions.versionCode
|
|
|
|
versionName = Versions.versionName
|
|
|
|
}
|
2021-02-02 21:05:12 +01:00
|
|
|
|
2021-01-26 13:54:28 +01:00
|
|
|
buildTypes {
|
|
|
|
getByName("release") {
|
|
|
|
isMinifyEnabled = false
|
|
|
|
//isShrinkResources = true
|
|
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
|
|
|
}
|
|
|
|
}
|
2021-02-02 21:05:12 +01:00
|
|
|
|
2021-01-26 13:54:28 +01:00
|
|
|
compileOptions {
|
|
|
|
// Flag to enable support for the new language APIs
|
|
|
|
//coreLibraryDesugaringEnabled = true
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
configurations {
|
|
|
|
"implementation" {
|
|
|
|
exclude(group = "androidx.compose.animation")
|
|
|
|
exclude(group = "androidx.compose.foundation")
|
|
|
|
exclude(group = "androidx.compose.material")
|
|
|
|
exclude(group = "androidx.compose.runtime")
|
|
|
|
exclude(group = "androidx.compose.ui")
|
|
|
|
}
|
|
|
|
}
|
2021-02-08 21:05:40 +01:00
|
|
|
// Remove After upgrading dependency
|
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy.eachDependency {
|
|
|
|
if (requested.group.contains("org.jetbrains.compose")) {
|
|
|
|
useVersion("0.3.0-build146")
|
|
|
|
because("wait for decompose to upgrade too")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
packagingOptions {
|
|
|
|
exclude("META-INF/*")
|
|
|
|
}
|
2021-02-09 10:05:04 +01:00
|
|
|
/*
|
|
|
|
buildFeatures {
|
|
|
|
compose = true
|
2021-02-08 21:05:40 +01:00
|
|
|
}
|
2021-01-26 13:54:28 +01:00
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
useIR = true
|
2021-02-09 10:05:04 +01:00
|
|
|
}*/
|
2021-01-26 13:54:28 +01:00
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation(compose.material)
|
2021-02-07 20:03:55 +01:00
|
|
|
implementation(compose.materialIconsExtended)
|
2021-02-08 21:05:40 +01:00
|
|
|
|
2021-01-26 13:54:28 +01:00
|
|
|
implementation(project(":common:database"))
|
|
|
|
implementation(project(":common:compose-ui"))
|
|
|
|
implementation(project(":common:dependency-injection"))
|
|
|
|
implementation(project(":common:data-models"))
|
|
|
|
implementation(Androidx.appCompat)
|
|
|
|
|
|
|
|
//Compose-Navigation
|
2021-02-08 21:05:40 +01:00
|
|
|
//implementation(Androidx.composeNavigation)
|
2021-01-26 13:54:28 +01:00
|
|
|
|
2021-01-29 18:53:17 +01:00
|
|
|
implementation(Koin.android)
|
|
|
|
implementation(Koin.androidViewModel)
|
2021-02-07 20:03:55 +01:00
|
|
|
|
2021-01-31 12:33:41 +01:00
|
|
|
//DECOMPOSE
|
|
|
|
implementation(Decompose.decompose)
|
|
|
|
implementation(Decompose.extensionsCompose)
|
2021-02-08 21:05:40 +01:00
|
|
|
/*
|
2021-02-09 10:05:04 +01:00
|
|
|
implementation(Androidx.coroutines)
|
|
|
|
implementation(Androidx.core)
|
|
|
|
implementation(Androidx.palette)
|
2021-02-07 20:03:55 +01:00
|
|
|
|
2021-01-26 13:54:28 +01:00
|
|
|
//Lifecycle
|
|
|
|
Versions.androidLifecycle.let{
|
|
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:$it")
|
|
|
|
implementation("androidx.lifecycle:lifecycle-livedata-ktx:$it")
|
|
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:$it")
|
|
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-savedstate:$it")
|
|
|
|
}
|
|
|
|
|
|
|
|
//Coil-Image Loading
|
|
|
|
Versions.coilVersion.let{
|
|
|
|
implementation("dev.chrisbanes.accompanist:accompanist-coil:$it")
|
|
|
|
implementation("dev.chrisbanes.accompanist:accompanist-insets:$it")
|
|
|
|
}
|
2021-02-08 21:05:40 +01:00
|
|
|
*/
|
2021-01-26 13:54:28 +01:00
|
|
|
|
|
|
|
Extras.Android.apply {
|
|
|
|
implementation(appUpdator)
|
|
|
|
implementation(razorpay)
|
|
|
|
implementation(fetch)
|
|
|
|
}
|
|
|
|
|
2021-02-07 17:19:48 +01:00
|
|
|
implementation(MVIKotlin.mvikotlin)
|
|
|
|
implementation(MVIKotlin.mvikotlinMain)
|
|
|
|
implementation(MVIKotlin.mvikotlinLogging)
|
|
|
|
implementation(MVIKotlin.mvikotlinTimeTravel)
|
|
|
|
implementation(Decompose.decompose)
|
|
|
|
implementation(Decompose.extensionsCompose)
|
|
|
|
|
2021-01-26 13:54:28 +01:00
|
|
|
//Test
|
|
|
|
testImplementation("junit:junit:4.13.1")
|
|
|
|
androidTestImplementation(Androidx.junit)
|
|
|
|
androidTestImplementation(Androidx.expresso)
|
|
|
|
|
|
|
|
//Desugaring
|
|
|
|
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.1.1")
|
|
|
|
}
|
2021-02-09 10:05:04 +01:00
|
|
|
|
2021-01-26 13:54:28 +01:00
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
2021-02-09 10:05:04 +01:00
|
|
|
freeCompilerArgs = listOf(
|
|
|
|
"-Xallow-jvm-ir-dependencies","-Xallow-unstable-dependencies",
|
2021-02-08 21:05:40 +01:00
|
|
|
"-Xskip-prerelease-check",
|
2021-01-26 13:54:28 +01:00
|
|
|
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|