|
| 1 | +plugins { |
| 2 | + id("com.android.application") |
| 3 | + id("org.jetbrains.kotlin.android") |
| 4 | + id("kotlin-parcelize") |
| 5 | + id("kotlin-kapt") |
| 6 | + id("dagger.hilt.android.plugin") |
| 7 | +} |
| 8 | + |
| 9 | +android { |
| 10 | + namespace = "io.getstream.whatsappclone" |
| 11 | + compileSdk = Configurations.compileSdk |
| 12 | + |
| 13 | + defaultConfig { |
| 14 | + applicationId = "io.getstream.whatsappclone" |
| 15 | + minSdk = Configurations.minSdk |
| 16 | + targetSdk = Configurations.targetSdk |
| 17 | + versionCode = Configurations.versionCode |
| 18 | + versionName = Configurations.versionName |
| 19 | + } |
| 20 | + |
| 21 | + compileOptions { |
| 22 | + sourceCompatibility = JavaVersion.VERSION_1_8 |
| 23 | + targetCompatibility = JavaVersion.VERSION_1_8 |
| 24 | + } |
| 25 | + |
| 26 | + lint { |
| 27 | + abortOnError = false |
| 28 | + } |
| 29 | + |
| 30 | + buildFeatures { |
| 31 | + compose = true |
| 32 | + } |
| 33 | + |
| 34 | + composeOptions { |
| 35 | + kotlinCompilerExtensionVersion = Versions.COMPOSE_COMPILER |
| 36 | + } |
| 37 | + |
| 38 | + packagingOptions { |
| 39 | + resources.excludes.add("META-INF/LICENSE.txt") |
| 40 | + resources.excludes.add("META-INF/NOTICE.txt") |
| 41 | + resources.excludes.add("LICENSE.txt") |
| 42 | + resources.excludes.add("/META-INF/{AL2.0,LGPL2.1}") |
| 43 | + } |
| 44 | + |
| 45 | + buildTypes { |
| 46 | + create("benchmark") { |
| 47 | + isDebuggable = true |
| 48 | + signingConfig = getByName("debug").signingConfig |
| 49 | + matchingFallbacks += listOf("release") |
| 50 | + } |
| 51 | + } |
| 52 | +} |
| 53 | + |
| 54 | +dependencies { |
| 55 | + // core modules |
| 56 | + implementation(project(":core-designsystem")) |
| 57 | + implementation(project(":core-navigation")) |
| 58 | + implementation(project(":core-data")) |
| 59 | + |
| 60 | + // feature modules |
| 61 | + implementation(project(":feature-camera")) |
| 62 | + implementation(project(":feature-chats")) |
| 63 | + implementation(project(":feature-status")) |
| 64 | + implementation(project(":feature-calls")) |
| 65 | + |
| 66 | + // material |
| 67 | + implementation(Dependencies.material) |
| 68 | + |
| 69 | + // compose |
| 70 | + implementation(Dependencies.composeActivity) |
| 71 | + implementation(Dependencies.composeAnimation) |
| 72 | + implementation(Dependencies.composeRuntime) |
| 73 | + implementation(Dependencies.composeTooling) |
| 74 | + implementation(Dependencies.composeConstraintLayout) |
| 75 | + |
| 76 | + // jetpack |
| 77 | + implementation(Dependencies.appStartUp) |
| 78 | + implementation(Dependencies.hiltAndroid) |
| 79 | + implementation(Dependencies.hiltNavigation) |
| 80 | + kapt(Dependencies.hiltCompiler) |
| 81 | + |
| 82 | + // image loading |
| 83 | + implementation(Dependencies.landscapistGlide) |
| 84 | + |
| 85 | + // pager |
| 86 | + implementation(Dependencies.accompanistPager) |
| 87 | + implementation(Dependencies.accompanistIndicator) |
| 88 | + |
| 89 | + implementation(Dependencies.timber) |
| 90 | +} |
0 commit comments