From dff4f0d3274a8652324a64e8a17f4a16445a5562 Mon Sep 17 00:00:00 2001 From: SeonHwan-Kim Date: Sat, 6 May 2023 22:45:36 +0900 Subject: [PATCH] =?UTF-8?q?add=20:=20=EC=84=9C=EB=B2=84=ED=86=B5=EC=8B=A0?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80=20#7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 12 ++++++++++++ app/src/main/AndroidManifest.xml | 10 ++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 76066e7..373b5e5 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,6 +2,7 @@ plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' id 'kotlin-parcelize' + id 'org.jetbrains.kotlin.plugin.serialization' version '1.7.21' } android { @@ -59,4 +60,15 @@ dependencies { // ViewModel 생성함수를 편하게 사용하고 싶다면? implementation "androidx.fragment:fragment-ktx:1.5.7" implementation "androidx.activity:activity-ktx:1.7.1" + + // 서버 통신 + implementation 'com.squareup.retrofit2:retrofit:2.9.0' + implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1' + implementation 'com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:0.8.0' + // define a BOM and its version + implementation(platform("com.squareup.okhttp3:okhttp-bom:4.10.0")) + + // define any required OkHttp artifacts without version (BOM을 위에 명시했으니, 밑의 버전들은 BOM에 맞게 적용됩니다.) + implementation("com.squareup.okhttp3:okhttp") + implementation("com.squareup.okhttp3:logging-interceptor") } \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 7f65109..cd94e79 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -2,6 +2,8 @@ + + + android:screenOrientation="portrait" /> + android:screenOrientation="portrait"> @@ -30,7 +32,7 @@ + android:screenOrientation="portrait" /> \ No newline at end of file