Skip to content

Commit

Permalink
merge: 내 프로필 화면 수정
Browse files Browse the repository at this point in the history
* feat(MyProfileScreenUiState): 한 줄 소개가 비어있으면 소개말이 없다는 표시 추가

* chore(build.gradle.kts): 빌드 실패 문제 해결
  • Loading branch information
ki960213 authored Aug 2, 2023
1 parent 69f1f4a commit d804e91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 23 deletions.
24 changes: 2 additions & 22 deletions android/2023-emmsale/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties
import com.google.firebase.crashlytics.buildtools.gradle.CrashlyticsExtension

plugins {
id("org.jetbrains.kotlin.android")
id("com.android.application") version "8.0.2"
id("com.google.gms.google-services")
kotlin("plugin.serialization") version "1.8.21"
id("kotlin-kapt")
id("com.google.firebase.crashlytics")
}

android {
Expand All @@ -31,13 +33,6 @@ android {
buildConfig = true
}
buildTypes {
getByName("debug") {
isMinifyEnabled = true
configure<CrashlyticsExtension> {
mappingFileUploadEnabled = false
}
}

getByName("release") {
isMinifyEnabled = false
proguardFiles(
Expand Down Expand Up @@ -67,21 +62,6 @@ android {
events.addAll(arrayOf(org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED, org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED, org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED))
}
}
flavorDimensions += "environment"
productFlavors {
create("staging") {
dimension = "environment"
configure<CrashlyticsExtension> {
mappingFileUploadEnabled = false
}
}
create("prod") {
dimension = "environment"
configure<CrashlyticsExtension> {
mappingFileUploadEnabled = true
}
}
}
}

fun getApiKey(propertyKey: String): String {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ data class MyProfileScreenUiState(
val isNotLogin: Boolean = false,
) {
companion object {
private const val BLANK_DESCRIPTION_SUBSTITUTION = "소개말이 없습니다."

val Loading = MyProfileScreenUiState(
isLoading = true,
isError = false,
Expand All @@ -39,7 +41,7 @@ data class MyProfileScreenUiState(
errorMessage = "",
memberId = member.id,
memberName = member.name,
description = member.description,
description = member.description.ifBlank { BLANK_DESCRIPTION_SUBSTITUTION },
memberImageUrl = member.imageUrl,
jobs = member.getActivities(ActivityType.JOB).map(ActivityUiState::from),
educations = member.getActivities(ActivityType.EDUCATION)
Expand Down

0 comments on commit d804e91

Please sign in to comment.