From 630ec0aa29f5a7031be952a934a9108942e37b80 Mon Sep 17 00:00:00 2001 From: Son Myeongji Date: Wed, 13 Mar 2024 23:17:02 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=EB=84=A4=ED=8A=B8=EC=9B=8C=ED=81=AC?= =?UTF-8?q?=20url=20=EB=B0=8F=20=EB=B3=B4=EC=95=88=20=EC=9D=B4=EC=8A=88=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/AndroidManifest.xml | 3 ++- .../android/youdongknowme/standard/network/RetrofitObject.kt | 5 +++-- app/src/main/res/xml/network_security_config.xml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 7f853ad1..5e12f254 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -16,7 +16,8 @@ android:networkSecurityConfig="@xml/network_security_config" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" - android:theme="@style/Theme.YouDongKnowMe"> + android:theme="@style/Theme.YouDongKnowMe" + android:usesCleartextTraffic="true"> diff --git a/app/src/main/java/com/dongyang/android/youdongknowme/standard/network/RetrofitObject.kt b/app/src/main/java/com/dongyang/android/youdongknowme/standard/network/RetrofitObject.kt index df08bc90..14c55a4c 100644 --- a/app/src/main/java/com/dongyang/android/youdongknowme/standard/network/RetrofitObject.kt +++ b/app/src/main/java/com/dongyang/android/youdongknowme/standard/network/RetrofitObject.kt @@ -13,13 +13,14 @@ object RetrofitObject { fun getNetwork(): Retrofit { - val baseUrl = "https://triphub.kr/" + val baseUrl = "http://43.200.194.238:8080/" val baseInterceptor = Interceptor { chain -> val request = chain.request().newBuilder() val originalHttpUrl = chain.request().url - val url = originalHttpUrl.newBuilder().addQueryParameter("api_key", BuildConfig.API_KEY).build() + val url = originalHttpUrl.newBuilder().addQueryParameter("api_key", BuildConfig.API_KEY) + .build() request.url(url) chain.proceed(request.build()) } diff --git a/app/src/main/res/xml/network_security_config.xml b/app/src/main/res/xml/network_security_config.xml index 861ebcf4..8e1b53be 100644 --- a/app/src/main/res/xml/network_security_config.xml +++ b/app/src/main/res/xml/network_security_config.xml @@ -1,6 +1,6 @@ - 3.38.118.184 + 43.200.194.238