Skip to content

Commit

Permalink
📝 error clear
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdcksdn committed Jul 11, 2024
1 parent 54cf2bc commit b899f9d
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 6 deletions.
1 change: 1 addition & 0 deletions core/data/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ dependencies {
implementation(project(":core:network"))

implementation(libs.kotlinx.serialization.json)
implementation(libs.okhttp.logging)
}
2 changes: 1 addition & 1 deletion core/model/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ plugins {
}

dependencies {
implementation(libs.okhttp.logging)
implementation(libs.okhttp)
}
1 change: 0 additions & 1 deletion core/network/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ dependencies {
implementation(libs.okhttp.logging)
implementation(libs.retrofit.core)
implementation(libs.retrofit.kotlin.serialization)
implementation(libs.retrofit.gson.converter)
implementation(libs.retrofit.moshi.converter)
implementation(libs.moshi)
kapt(libs.retrofit.moshi.codegen)
Expand Down
2 changes: 2 additions & 0 deletions core/network/src/main/java/com/msg/network/api/SchoolAPI.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import com.msg.network.request.school.PostSchoolRequest
import com.msg.network.response.school.GetSchoolListResponse
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.Multipart
import retrofit2.http.POST

interface SchoolAPI {
Expand All @@ -13,6 +14,7 @@ interface SchoolAPI {
@GET("school/name")
suspend fun getSchoolName(): List<String>

@Multipart
@POST("school")
suspend fun postSchool(
@Body body: PostSchoolRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import dagger.hilt.components.SingletonComponent
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import retrofit2.converter.moshi.MoshiConverterFactory
import retrofit2.create
import java.util.concurrent.TimeUnit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,11 @@ private fun LectureDetailScreenPre() {
lectureStatus = LectureStatus.OPEN,
essentialComplete = true,
headCount = 0,
isRegistered = false
isRegistered = false,
locationX = "",
locationY = "",
address = "",
locationDetails = ""
),
onBackClicked = {},
onApplicationClicked = {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,11 @@ class LectureViewModel @Inject constructor(
isRegistered = true,
lecturer = "",
credit = 0,
essentialComplete = false
essentialComplete = false,
locationX = "",
locationY = "",
address = "",
locationDetails = ""
)
)
private set
Expand Down Expand Up @@ -338,7 +342,9 @@ class LectureViewModel @Inject constructor(
lectureType = lectureType,
credit = credit,
maxRegisteredUser = maxRegisteredUser,
essentialComplete = essentialComplete
essentialComplete = essentialComplete,
address = "",
locationDetails = ""
)
).onSuccess {
it.catch { remoteError ->
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ kotlinx-coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-cor
kotlinx-datetime = { group = "org.jetbrains.kotlinx", name = "kotlinx-datetime", version.ref = "kotlinxDateTime" }
kotlinx-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "kotlinxSerializationJson" }
lint-api = { group = "com.android.tools.lint", name = "lint-api", version.ref = "lint" }
okhttp = { group = "com.squareup.okhttp3", name = "okhttp", version.ref = "okhttp"}
okhttp-logging = { group = "com.squareup.okhttp3", name = "logging-interceptor", version.ref = "okhttp" }
protobuf-kotlin-lite = { group = "com.google.protobuf", name = "protobuf-kotlin-lite", version.ref = "protobuf" }
protobuf-protoc = { group = "com.google.protobuf", name = "protoc", version.ref = "protobuf" }
Expand Down

0 comments on commit b899f9d

Please sign in to comment.