Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Nyong/week7/nikecompose/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import java.util.Properties

plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.compose)
Expand All @@ -19,6 +21,15 @@ android {
versionName = "1.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

val properties = Properties()
properties.load(rootProject.file("local.properties").inputStream())

buildConfigField(
"String",
"REQRES_API_KEY",
"\"${properties.getProperty("REQRES_API_KEY")}\""
)
}

buildTypes {
Expand All @@ -36,6 +47,7 @@ android {
}
buildFeatures {
compose = true
buildConfig = true
}
}

Expand All @@ -57,4 +69,17 @@ dependencies {
androidTestImplementation(libs.androidx.compose.ui.test.junit4)
debugImplementation(libs.androidx.compose.ui.tooling)
debugImplementation(libs.androidx.compose.ui.test.manifest)
// ViewModel을 Compose에서 사용하기 위한 의존성
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.10.0")

// Retrofit
implementation("com.squareup.retrofit2:retrofit:2.9.0")
implementation("com.squareup.retrofit2:converter-gson:2.9.0")

// OkHttp 로그 확인용
implementation("com.squareup.okhttp3:logging-interceptor:4.12.0")

// Coil: Compose 이미지 로딩용
implementation("io.coil-kt.coil3:coil-compose:3.0.4")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.4")
}
4 changes: 3 additions & 1 deletion Nyong/week7/nikecompose/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.INTERNET" />

<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
Expand All @@ -12,7 +14,7 @@
android:supportsRtl="true"
android:theme="@style/Theme.NikeCompose">
<activity
android:name=".MainActivity"
android:name=".feature.main.MainActivity"
android:exported="true"
android:label="@string/app_name"
android:theme="@style/Theme.NikeCompose">
Expand Down
Loading