Skip to content

Commit

Permalink
[Refact] gradle 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
YiBeomSeok committed Nov 14, 2023
1 parent dfdd364 commit 678f099
Show file tree
Hide file tree
Showing 150 changed files with 1,387 additions and 1,153 deletions.
119 changes: 57 additions & 62 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@ plugins {
id("com.android.application")
id("kotlin-android")
id("kotlin-parcelize")
id("kotlin-platform-android")
id("kotlin-kapt")
kotlin("kapt")
id("dagger.hilt.android.plugin")
id("com.google.devtools.ksp") version ("1.8.0-1.0.9")
id("org.jetbrains.kotlin.android")
}

android {
namespace = "org.cazait.app"
compileSdk = 33
namespace = "org.cazait"
compileSdk = 34

defaultConfig {
applicationId = "org.cazait.cazait"
applicationId = "org.cazait"
minSdk = 28
versionCode = 1
versionName = "1.0"
Expand All @@ -25,7 +23,7 @@ android {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
"proguard-rules.pro",
)
}
}
Expand All @@ -42,88 +40,85 @@ android {
}

dependencies {
//AndroidX
implementation("androidx.core:core-ktx:1.9.0")
implementation("androidx.appcompat:appcompat:1.6.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
// AndroidX
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.appcompat)
implementation(libs.androidx.constraintlayout)

//retrofit
implementation("com.squareup.retrofit2:retrofit:2.9.0")
implementation("com.squareup.retrofit2:converter-moshi:2.9.0")
implementation("com.squareup.retrofit2:adapter-rxjava2:2.9.0")
// retrofit
implementation(libs.retrofit)
implementation(libs.converter.moshi)

// Add Coroutines
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.3.8")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.6.4")

//okHttp
implementation("com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.11")
implementation("com.squareup.okhttp3:okhttp:5.0.0-alpha.11")

//lifecycle
implementation("androidx.legacy:legacy-support-v4:1.0.0")
implementation("androidx.databinding:databinding-runtime:7.4.0")
implementation("com.android.car.ui:car-ui-lib:2.3.0")
implementation("androidx.fragment:fragment-ktx:1.5.5")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1")
implementation(libs.kotlinx.coroutines.android)
implementation(libs.kotlinx.coroutines.core)
implementation(libs.kotlinx.coroutines.core.common)
implementation(libs.kotlinx.coroutines.play.services)

// okHttp
implementation(libs.logging.interceptor)
implementation(libs.okhttp)

// lifecycle
implementation(libs.androidx.legacy.support.v4)
implementation(libs.androidx.databinding.runtime)
implementation(libs.car.ui.lib)
implementation(libs.androidx.fragment.ktx)
implementation(libs.androidx.lifecycle.viewmodel.ktx)

// splash
implementation("androidx.core:core-splashscreen:1.0.0")
implementation(libs.androidx.core.splashscreen)

//room
implementation("androidx.room:room-ktx:2.5.0")
implementation("androidx.room:room-runtime:2.5.0")
annotationProcessor("androidx.room:room-compiler:2.5.0")
testImplementation("androidx.room:room-testing:2.5.0")
kapt("androidx.room:room-compiler:2.5.0")
// room
implementation(libs.androidx.room.ktx)
implementation(libs.androidx.room.runtime)
annotationProcessor(libs.androidx.room.compiler)
testImplementation(libs.androidx.room.testing)
kapt("androidx.room:room-compiler:2.6.0")

// Preferences DataStore
implementation("androidx.datastore:datastore-preferences:1.0.0")
implementation(libs.androidx.datastore.preferences)

// viewpager2
implementation("androidx.viewpager2:viewpager2:1.0.0")

implementation(libs.androidx.viewpager2)

/* Third Party Library */

//expandable layout
implementation("com.github.skydoves:expandablelayout:1.0.7")
// expandable layout
implementation(libs.expandablelayout)

// hilt
implementation("com.google.dagger:hilt-android:2.44.2")
kapt("com.google.dagger:hilt-compiler:2.44.2")
kapt("androidx.hilt:hilt-compiler:1.0.0")
implementation("androidx.hilt:hilt-navigation-compose:1.0.0")
implementation(libs.hilt.android)
kapt(libs.hilt.android.compiler)
kaptAndroidTest(libs.hilt.android.compiler)

//naver maps
implementation("com.naver.maps:map-sdk:3.16.2")
// naver maps
implementation(libs.map.sdk)

//location request
implementation("com.google.android.gms:play-services-location:17.0.0")
// location request
implementation(libs.play.services.location)

//swipe refresh
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
// swipe refresh
implementation(libs.androidx.swiperefreshlayout)

// Moshi
implementation("com.squareup.moshi:moshi:1.14.0")
implementation(libs.moshi)
// Gson
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
implementation(libs.converter.gson)

// Dot Indicator
implementation("com.tbuonomo:dotsindicator:4.3")
implementation(libs.dotsindicator)

// Glide
implementation("com.github.bumptech.glide:glide:4.14.2")
annotationProcessor("com.github.bumptech.glide:compiler:4.14.2")
implementation(libs.glide)
annotationProcessor(libs.compiler)

implementation("com.google.android.material:material:1.9.0-alpha01")
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
implementation(libs.material)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
}

kapt {
correctErrorTypes = true
}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package org.cazait.cazait_android
package org.cazait

import android.app.Application
import androidx.appcompat.app.AppCompatDelegate
import dagger.hilt.android.HiltAndroidApp

@HiltAndroidApp
class CaZaItApplication: Application() {
class CaZaItApplication : Application() {
override fun onCreate() {
super.onCreate()
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.cazait.cazait_android
package org.cazait

import androidx.datastore.preferences.core.booleanPreferencesKey
import androidx.datastore.preferences.core.longPreferencesKey
Expand All @@ -15,4 +15,4 @@ val EMAIL = stringPreferencesKey("email")
val USER_ID = longPreferencesKey("user_id")
val ACCESS_TOKEN = stringPreferencesKey("access_token")
val REFRESH_TOKEN = stringPreferencesKey("refresh_token")
val LOGIN_CHECK = booleanPreferencesKey("login_check")
val LOGIN_CHECK = booleanPreferencesKey("login_check")
7 changes: 0 additions & 7 deletions app/src/main/java/org/cazait/cazait_android/data/Resource.kt

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

24 changes: 0 additions & 24 deletions app/src/main/java/org/cazait/cazait_android/di/DataModule.kt

This file was deleted.

Loading

0 comments on commit 678f099

Please sign in to comment.