Skip to content

Commit

Permalink
v1.0.5 released!
Browse files Browse the repository at this point in the history
  • Loading branch information
gunyu1019 committed May 11, 2022
1 parent 506a903 commit 1335c97
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
20 changes: 20 additions & 0 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
@@ -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"
}
8 changes: 2 additions & 6 deletions app/src/main/java/kr/yhs/traffic/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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())
Expand All @@ -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)
}

0 comments on commit 1335c97

Please sign in to comment.