From 1335c972f526a845114dd8ced096eb375d96b69b Mon Sep 17 00:00:00 2001 From: gunyu1019 Date: Wed, 11 May 2022 19:34:53 +0900 Subject: [PATCH] v1.0.5 released! --- app/build.gradle | 1 - app/release/output-metadata.json | 20 +++++++++++++++++++ .../main/java/kr/yhs/traffic/MainActivity.kt | 8 ++------ 3 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 app/release/output-metadata.json diff --git a/app/build.gradle b/app/build.gradle index 45e4b0a..7bc1b0f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -76,7 +76,6 @@ dependencies { implementation 'com.squareup.retrofit2:retrofit:2.9.0' implementation 'com.squareup.retrofit2:converter-gson:2.9.0' implementation 'com.squareup.retrofit2:converter-scalars:2.9.0' - implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0' // For Testing testImplementation "junit:junit:4.13.2" diff --git a/app/release/output-metadata.json b/app/release/output-metadata.json new file mode 100644 index 0000000..c3d3dbd --- /dev/null +++ b/app/release/output-metadata.json @@ -0,0 +1,20 @@ +{ + "version": 3, + "artifactType": { + "type": "APK", + "kind": "Directory" + }, + "applicationId": "kr.yhs.traffic", + "variantName": "release", + "elements": [ + { + "type": "SINGLE", + "filters": [], + "attributes": [], + "versionCode": 1108, + "versionName": "1.0.5", + "outputFile": "app-release.apk" + } + ], + "elementType": "File" +} \ No newline at end of file diff --git a/app/src/main/java/kr/yhs/traffic/MainActivity.kt b/app/src/main/java/kr/yhs/traffic/MainActivity.kt index 9bd8614..d4cbdb3 100644 --- a/app/src/main/java/kr/yhs/traffic/MainActivity.kt +++ b/app/src/main/java/kr/yhs/traffic/MainActivity.kt @@ -10,7 +10,6 @@ import com.google.android.gms.location.LocationServices import kr.yhs.traffic.module.TrafficClient import kr.yhs.traffic.ui.ComposeApp import okhttp3.OkHttpClient -import okhttp3.logging.HttpLoggingInterceptor import retrofit2.Retrofit import retrofit2.converter.gson.GsonConverterFactory @@ -21,11 +20,7 @@ class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - val logging = HttpLoggingInterceptor() - logging.level = HttpLoggingInterceptor.Level.BODY val httpClient = OkHttpClient.Builder() - httpClient.addInterceptor(logging) - val retrofit = Retrofit.Builder() .baseUrl("https://api.yhs.kr") .addConverterFactory(GsonConverterFactory.create()) @@ -52,5 +47,6 @@ class MainActivity : ComponentActivity() { } } - private fun hasGPS(): Boolean = packageManager.hasSystemFeature(PackageManager.FEATURE_LOCATION_GPS) + private fun hasGPS(): Boolean = + packageManager.hasSystemFeature(PackageManager.FEATURE_LOCATION_GPS) } \ No newline at end of file