Adding App Dependencies and we are ready to go
This commit is contained in:
@@ -1,65 +0,0 @@
|
||||
plugins {
|
||||
id 'com.android.application'
|
||||
id 'kotlin-android'
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdk 31
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.ericampire.android.androidstudycase"
|
||||
minSdk 21
|
||||
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.10'
|
||||
}
|
||||
packagingOptions {
|
||||
resources {
|
||||
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
implementation 'androidx.core:core-ktx:1.6.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.3.1'
|
||||
implementation 'androidx.activity:activity-compose:1.3.1'
|
||||
testImplementation 'junit:junit:4.+'
|
||||
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"
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
import de.fayard.refreshVersions.core.versionFor
|
||||
|
||||
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
kotlin("android")
|
||||
kotlin("kapt")
|
||||
id("dagger.hilt.android.plugin")
|
||||
id("kotlin-android")
|
||||
id("com.google.devtools.ksp") version "1.5.21-1.0.0-beta07"
|
||||
}
|
||||
|
||||
kapt {
|
||||
correctErrorTypes = true
|
||||
javacOptions {
|
||||
option("-Adagger.fastInit=ENABLED")
|
||||
option("-Adagger.hilt.android.internal.disableAndroidSuperclassValidation=true")
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<Test> {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdk = Apps.compileSdk
|
||||
buildToolsVersion = Apps.buildToolsVersion
|
||||
|
||||
defaultConfig {
|
||||
applicationId = Apps.applicationId
|
||||
minSdk = Apps.minSdk
|
||||
targetSdk = Apps.targetSdk
|
||||
versionCode = Apps.versionCode
|
||||
versionName = Apps.versionName
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
vectorDrawables {
|
||||
useSupportLibrary = true
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
getByName("release") {
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = true
|
||||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
}
|
||||
buildFeatures {
|
||||
compose = true
|
||||
}
|
||||
composeOptions {
|
||||
kotlinCompilerExtensionVersion = versionFor(AndroidX.compose.ui)
|
||||
}
|
||||
lint {
|
||||
isAbortOnError = false
|
||||
}
|
||||
packagingOptions {
|
||||
resources {
|
||||
excludes += "META-INF/AL2.0"
|
||||
excludes += "META-INF/licenses/ASM"
|
||||
excludes += "META-INF/LICENSE.md"
|
||||
excludes += "META-INF/LICENSE-notice.md"
|
||||
excludes += "META-INF/LGPL2.1"
|
||||
excludes += "win32-x86/attach_hotspot_windows.dll"
|
||||
excludes += "win32-x86-64/attach_hotspot_windows.dll"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
implementation(Libs.activity_compose)
|
||||
implementation(Libs.navigation_compose)
|
||||
implementation(Libs.core_ktx)
|
||||
implementation(Libs.preference_ktx)
|
||||
implementation(Libs.appcompat)
|
||||
implementation(Libs.startup_runtime)
|
||||
implementation(Libs.google_material)
|
||||
|
||||
implementation(Libs.compose_compiler)
|
||||
implementation(Libs.compose_ui_tooling)
|
||||
implementation(Libs.compose_ui_tooling_preview)
|
||||
implementation(Libs.compose_ui)
|
||||
implementation(Libs.compose_ui_viewbinding)
|
||||
implementation(Libs.compose_material)
|
||||
implementation(Libs.compose_runtime_livedata)
|
||||
implementation(Libs.compose_material_icons_extended)
|
||||
androidTestImplementation(Libs.compose_ui_test_junit4)
|
||||
|
||||
implementation(Libs.accompanist_insets)
|
||||
implementation(Libs.accompanist_pager)
|
||||
implementation(Libs.accompanist_glide)
|
||||
implementation(Libs.accompanist_pager_indicators)
|
||||
implementation(Libs.accompanist_placeholder)
|
||||
implementation(Libs.accompanist_navigation_animation)
|
||||
|
||||
implementation(kotlin("reflect"))
|
||||
|
||||
implementation(platform(Libs.kotlin_coroutine_bom))
|
||||
testImplementation(Libs.kotlin_coroutine_test)
|
||||
|
||||
implementation(Libs.hilt_android)
|
||||
kapt(Libs.hilt_android_compiler)
|
||||
|
||||
implementation(Libs.lifecycle_runtime_ktx)
|
||||
|
||||
testImplementation(Libs.junit_jupiter_api)
|
||||
testImplementation(Libs.junit_jupiter_engine)
|
||||
|
||||
implementation(Libs.koin_android)
|
||||
implementation(Libs.koin_androidx_compose)
|
||||
implementation(Libs.koin_androidx_workmanager)
|
||||
testImplementation(Libs.koin_test_junit5)
|
||||
|
||||
implementation(Libs.ksp_api)
|
||||
|
||||
implementation(Libs.orbit_mvi_core)
|
||||
implementation(Libs.orbit_mvi_viewmodel)
|
||||
testImplementation(Libs.orbit_mvi_test)
|
||||
|
||||
ksp(Libs.room_compiler)
|
||||
implementation(Libs.room_runtime)
|
||||
testImplementation(Libs.room_testing)
|
||||
|
||||
testImplementation(Libs.mockk_core)
|
||||
androidTestImplementation(Libs.mockk_android)
|
||||
|
||||
debugImplementation(Libs.leakcanary_android)
|
||||
|
||||
implementation(Libs.timber)
|
||||
}
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
# Add project specific ProGuard rules here.
|
||||
# You can control the set of applied configuration files using the
|
||||
# proguardFiles setting in build.gradle.
|
||||
# proguardFiles setting in build.gradle.kts.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
Reference in New Issue
Block a user