-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Chore] migrate build.gradle.kts & lib.version.toml (#194)
* chore: migrate build.gradle.kts & lib.version.toml * chore: toml use kebab-case
- Loading branch information
Showing
9 changed files
with
256 additions
and
147 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
import java.util.Properties | ||
|
||
plugins { | ||
id("com.android.application") | ||
id("org.jetbrains.kotlin.android") | ||
id("kotlin-parcelize") | ||
id("com.google.gms.google-services") | ||
id("com.google.firebase.crashlytics") | ||
id("kotlin-android") | ||
id("kotlin-kapt") | ||
id("dagger.hilt.android.plugin") | ||
} | ||
|
||
android { | ||
namespace = "com.eatssu.android" | ||
compileSdk = 34 | ||
|
||
defaultConfig { | ||
applicationId = "com.eatssu.android" | ||
minSdk = 23 | ||
targetSdk = 34 | ||
versionCode = 17 | ||
versionName = "1.1.14" | ||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
} | ||
|
||
buildFeatures { | ||
buildConfig = true | ||
viewBinding = true | ||
dataBinding = true | ||
} | ||
|
||
buildTypes { | ||
release { | ||
val p = Properties() | ||
p.load(project.rootProject.file("local.properties").reader()) | ||
|
||
val baseUrl: String = p.getProperty("PROD_BASE_URL") | ||
buildConfigField("String", "BASE_URL", baseUrl) | ||
|
||
val kakaoKey: String = p.getProperty("KAKAO_NATIVE_APP_KEY") | ||
buildConfigField("String", "KAKAO_NATIVE_APP_KEY", "\"$kakaoKey\"") | ||
manifestPlaceholders["KAKAO_NATIVE_APP_KEY"] = kakaoKey | ||
|
||
isMinifyEnabled = false | ||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") | ||
|
||
} | ||
|
||
debug { | ||
val p = Properties() | ||
p.load(project.rootProject.file("local.properties").reader()) | ||
|
||
val baseUrl: String = p.getProperty("DEV_BASE_URL") | ||
buildConfigField("String", "BASE_URL", baseUrl) | ||
|
||
val kakaoKey: String = p.getProperty("KAKAO_NATIVE_APP_KEY") | ||
buildConfigField("String", "KAKAO_NATIVE_APP_KEY", "\"$kakaoKey\"") | ||
manifestPlaceholders["KAKAO_NATIVE_APP_KEY"] = kakaoKey | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
|
||
kotlinOptions { | ||
jvmTarget = "17" | ||
} | ||
|
||
splits { | ||
abi { | ||
isEnable = true | ||
reset() | ||
isUniversalApk = true | ||
} | ||
} | ||
|
||
lint { | ||
abortOnError = false | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(libs.androidx.core.ktx) | ||
implementation(libs.androidx.appcompat) | ||
implementation(libs.material) | ||
implementation(libs.constraintlayout) | ||
implementation(libs.threetenabp) | ||
implementation(libs.material.calendarview) | ||
implementation(libs.recyclerview) | ||
implementation(libs.transport.runtime) | ||
implementation(libs.activity) | ||
implementation(libs.fragment) | ||
|
||
// Testing libraries | ||
testImplementation(libs.junit) | ||
androidTestImplementation(libs.androidx.test.ext.junit) | ||
androidTestImplementation(libs.espresso.core) | ||
|
||
//retrofit2: 서버통신 | ||
implementation(libs.retrofit) | ||
implementation(libs.converter.gson) | ||
|
||
// Gson for JSON parsing | ||
implementation(libs.gson) | ||
|
||
//OkHttp: 통신 로그 확인하기 위함 | ||
implementation(libs.okhttp) | ||
implementation(libs.okhttp.logging.interceptor) | ||
|
||
//glide: 사진 업로드 | ||
implementation(libs.glide) | ||
kapt(libs.glide.compiler) | ||
|
||
//compressor: 이미지 압축 | ||
implementation(libs.compressor) | ||
|
||
// Coroutines for concurrency | ||
implementation(libs.coroutines) | ||
implementation(libs.coroutines.core) | ||
implementation(libs.lifecycle.runtime) | ||
|
||
// Kakao login SDK | ||
implementation(libs.kakao.login) | ||
|
||
// Hilt for Dependency Injection | ||
implementation(libs.hilt) | ||
kapt(libs.hilt.compiler) | ||
|
||
// ViewModel and LiveData | ||
implementation(libs.lifecycle.viewmodel) | ||
implementation(libs.lifecycle.livedata) | ||
|
||
// Firebase | ||
implementation(libs.play.services.base) | ||
implementation(libs.firebase.config) | ||
implementation(platform(libs.firebase.bom)) | ||
implementation(libs.firebase.analytics) | ||
implementation(libs.firebase.crashlytics) | ||
|
||
|
||
// Timber for logging | ||
implementation(libs.timber) | ||
} | ||
|
||
kapt { | ||
correctErrorTypes = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
plugins { | ||
alias(libs.plugins.android.application) apply false | ||
alias(libs.plugins.android.library) apply false | ||
alias(libs.plugins.kotlin.android) apply false | ||
alias(libs.plugins.google.services) apply false | ||
alias(libs.plugins.firebase.crashlytics) apply false | ||
alias(libs.plugins.hilt.android) apply false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.