Skip to content

Commit

Permalink
add : 서버통신 추가 #7
Browse files Browse the repository at this point in the history
  • Loading branch information
SeonHwan-Kim committed May 6, 2023
1 parent 4672bfb commit dff4f0d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
12 changes: 12 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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")
}
10 changes: 6 additions & 4 deletions 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:name=".SoptApplication"
android:allowBackup="true"
Expand All @@ -11,16 +13,16 @@
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/Theme.GOSOPTAndroid"
android:usesCleartextTraffic="true"
tools:targetApi="31">
<activity
android:name=".presentation.signup.SignUpActivity"
android:exported="false"
android:screenOrientation="portrait"/>
android:screenOrientation="portrait" />
<activity
android:name=".presentation.login.LoginActivity"
android:exported="true"
android:screenOrientation="portrait"
>
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand All @@ -30,7 +32,7 @@
<activity
android:name=".presentation.main.MainActivity"
android:exported="false"
android:screenOrientation="portrait"/>
android:screenOrientation="portrait" />
</application>

</manifest>

0 comments on commit dff4f0d

Please sign in to comment.