Skip to content

Commit 98465c3

Browse files
authored
Merge pull request #213 from mash-up-kr/fix/minuk/212-spotless
[Fix] Spotless 미적용 부분 적용하기
2 parents 9c74a2b + a98ef76 commit 98465c3

File tree

22 files changed

+51
-42
lines changed

22 files changed

+51
-42
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package com.mashup.constant.log
22

3-
const val KEY_PLACE = "place" // log가 발생한 화면
3+
const val KEY_PLACE = "place" // log가 발생한 화면

app/src/main/java/com/mashup/constant/log/UserActionLogs.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ const val LOG_QR_TIME_FAIL = "qr_time_fail"
3131
const val LOG_QR_WRONG = "qr_wrong"
3232

3333
const val LOG_DELETE_SUCCESS_USER = "delete_user_success"
34-

app/src/main/java/com/mashup/data/repository/FirebaseRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ class FirebaseRepository @Inject constructor() {
1515
it.cancel()
1616
}
1717
}
18-
}
18+
}

app/src/main/java/com/mashup/data/repository/MemberRepository.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import com.mashup.core.model.Platform
44
import com.mashup.data.dto.AccessResponse
55
import com.mashup.data.dto.LoginRequest
66
import com.mashup.data.dto.MemberInfoResponse
7+
import com.mashup.data.dto.PushNotificationRequest
78
import com.mashup.data.dto.SignUpRequest
89
import com.mashup.data.dto.TokenResponse
910
import com.mashup.data.dto.ValidResponse
10-
import com.mashup.data.dto.PushNotificationRequest
1111
import com.mashup.network.Response
1212
import com.mashup.network.dao.MemberDao
1313
import javax.inject.Inject
@@ -18,7 +18,7 @@ class MemberRepository @Inject constructor(
1818
suspend fun login(
1919
identification: String,
2020
password: String,
21-
fcmToken: String,
21+
fcmToken: String
2222
): Response<AccessResponse> {
2323
return memberDao.postLogin(
2424
LoginRequest(

app/src/main/java/com/mashup/network/dao/MemberDao.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import com.mashup.core.model.Platform
44
import com.mashup.data.dto.AccessResponse
55
import com.mashup.data.dto.LoginRequest
66
import com.mashup.data.dto.MemberInfoResponse
7+
import com.mashup.data.dto.PushNotificationRequest
78
import com.mashup.data.dto.SignUpRequest
89
import com.mashup.data.dto.TokenResponse
910
import com.mashup.data.dto.ValidResponse
10-
import com.mashup.data.dto.PushNotificationRequest
1111
import com.mashup.network.Response
1212
import retrofit2.http.Body
1313
import retrofit2.http.DELETE

app/src/main/java/com/mashup/ui/login/LoginType.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ enum class LoginType {
44
REGISTER,
55
LOGIN,
66
AUTO
7-
}
7+
}

app/src/main/java/com/mashup/ui/model/SNSModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import androidx.annotation.StringRes
66
data class SNSModel(
77
@StringRes val name: Int,
88
@DrawableRes val iconRes: Int,
9-
val link: String,
9+
val link: String
1010
)

app/src/main/java/com/mashup/ui/setting/SettingActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class SettingActivity : BaseActivity<ActivitySettingBinding>() {
4646
val userPreference by viewModel.userPreference.collectAsState(
4747
initial = UserPreference.getDefaultInstance()
4848
)
49-
49+
5050
SettingScreen(
5151
modifier = Modifier.fillMaxSize(),
5252
onLogout = this::onClickLogoutButton,

app/src/main/java/com/mashup/ui/setting/SettingViewModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import javax.inject.Inject
1111
@HiltViewModel
1212
class SettingViewModel @Inject constructor(
1313
private val userPreferenceRepository: UserPreferenceRepository,
14-
private val memberRepository: MemberRepository,
14+
private val memberRepository: MemberRepository
1515
) : BaseViewModel() {
1616
val userPreference = userPreferenceRepository.getUserPreference()
1717

@@ -32,4 +32,4 @@ class SettingViewModel @Inject constructor(
3232

3333
override fun handleErrorCode(code: String) {
3434
}
35-
}
35+
}

app/src/main/java/com/mashup/ui/webview/WebViewActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class WebViewActivity : BaseActivity<ActivityWebViewBinding>() {
8080
}
8181
}
8282
}
83-
},
83+
}
8484
)
8585

8686
BackHandler(enabled = true) {

app/src/main/java/com/mashup/ui/widget/MashUpButton.kt

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ import androidx.compose.foundation.Canvas
1111
import androidx.compose.foundation.background
1212
import androidx.compose.foundation.clickable
1313
import androidx.compose.foundation.interaction.MutableInteractionSource
14-
import androidx.compose.foundation.layout.*
14+
import androidx.compose.foundation.layout.Arrangement
15+
import androidx.compose.foundation.layout.Box
16+
import androidx.compose.foundation.layout.Column
17+
import androidx.compose.foundation.layout.Row
18+
import androidx.compose.foundation.layout.fillMaxSize
19+
import androidx.compose.foundation.layout.fillMaxWidth
20+
import androidx.compose.foundation.layout.height
21+
import androidx.compose.foundation.layout.padding
22+
import androidx.compose.foundation.layout.size
1523
import androidx.compose.foundation.shape.RoundedCornerShape
1624
import androidx.compose.material.Text
1725
import androidx.compose.runtime.Composable
@@ -29,7 +37,10 @@ import androidx.compose.ui.graphics.drawscope.Stroke
2937
import androidx.compose.ui.tooling.preview.Preview
3038
import androidx.compose.ui.unit.Dp
3139
import androidx.compose.ui.unit.dp
32-
import com.mashup.core.ui.colors.*
40+
import com.mashup.core.ui.colors.Brand300
41+
import com.mashup.core.ui.colors.Brand500
42+
import com.mashup.core.ui.colors.Gray100
43+
import com.mashup.core.ui.colors.Gray600
3344
import com.mashup.core.ui.theme.MashUpTheme
3445
import com.mashup.core.ui.typography.Body1
3546

@@ -46,7 +57,7 @@ fun MashUpButton(
4657
text: String,
4758
onClick: () -> Unit,
4859
isEnabled: Boolean = true,
49-
showLoading: Boolean = false,
60+
showLoading: Boolean = false
5061
) {
5162
Box(
5263
modifier = modifier
@@ -58,18 +69,18 @@ fun MashUpButton(
5869
indication = null,
5970
interactionSource = remember { MutableInteractionSource() },
6071
enabled = isEnabled,
61-
onClick = onClick,
72+
onClick = onClick
6273
),
6374
contentAlignment = Alignment.Center
6475
) {
6576
Row(
6677
horizontalArrangement = Arrangement.Center,
67-
verticalAlignment = Alignment.CenterVertically,
78+
verticalAlignment = Alignment.CenterVertically
6879
) {
6980
AnimatedVisibility(
7081
visible = showLoading,
7182
enter = fadeIn(),
72-
exit = fadeOut(),
83+
exit = fadeOut()
7384
) {
7485
ButtonCircularProgressbar(
7586
modifier = Modifier
@@ -94,7 +105,7 @@ fun ButtonCircularProgressbar(
94105
progressBarWidth: Dp = 3.dp,
95106
progressBarColor: Color = Color(0xFFFFFFFF),
96107
backgroundProgressBarColor: Color = Color(0x80FFFFFF),
97-
progressDuration: Int = 500,
108+
progressDuration: Int = 500
98109
) {
99110
val infiniteTransition = rememberInfiniteTransition()
100111
val angle by infiniteTransition.animateFloat(
@@ -163,14 +174,14 @@ fun PrevMashUpButton() {
163174
modifier = Modifier.padding(16.dp),
164175
buttonStyle = ButtonStyle.PRIMARY,
165176
text = "다음",
166-
onClick = {},
177+
onClick = {}
167178
)
168179

169180
MashUpButton(
170181
modifier = Modifier.padding(16.dp),
171182
buttonStyle = ButtonStyle.DEFAULT,
172183
text = "다음",
173-
onClick = {},
184+
onClick = {}
174185
)
175186

176187
MashUpButton(

app/src/main/java/com/mashup/util/MashUpFirebaseMessagingService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import androidx.core.app.NotificationManagerCompat
1515
import com.google.firebase.messaging.FirebaseMessagingService
1616
import com.google.firebase.messaging.RemoteMessage
1717
import com.mashup.BuildConfig
18-
import dagger.hilt.android.AndroidEntryPoint
1918
import com.mashup.R
19+
import dagger.hilt.android.AndroidEntryPoint
2020
import com.mashup.ui.splash.SplashActivity
2121
import java.net.URL
2222

core/datastore/src/main/java/com/mashup/datastore/data/repository/AppPreferenceRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ class AppPreferenceRepository @Inject constructor(
2020
)
2121
}
2222
}
23-
}
23+
}

core/datastore/src/main/java/com/mashup/datastore/data/repository/UserPreferenceRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ class UserPreferenceRepository @Inject constructor(
5555
UserPreference.getDefaultInstance()
5656
}
5757
}
58-
}
58+
}

core/datastore/src/main/java/com/mashup/datastore/data/source/AppPreferenceSerializer.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class AppPreferenceSerializer : Serializer<AppPreference> {
1717
override suspend fun readFrom(input: InputStream): AppPreference =
1818
try {
1919
Json.decodeFromString(
20-
AppPreference.serializer(), input.readBytes().decodeToString()
20+
AppPreference.serializer(),
21+
input.readBytes().decodeToString()
2122
)
2223
} catch (serialization: SerializationException) {
2324
throw CorruptionException("Unable to read UserPreference", serialization)
@@ -31,4 +32,4 @@ class AppPreferenceSerializer : Serializer<AppPreference> {
3132
)
3233
}
3334
}
34-
}
35+
}

core/datastore/src/main/java/com/mashup/datastore/data/source/UserPreferenceSerializer.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class UserPreferenceSerializer : Serializer<UserPreference> {
1717
override suspend fun readFrom(input: InputStream): UserPreference =
1818
try {
1919
Json.decodeFromString(
20-
UserPreference.serializer(), input.readBytes().decodeToString()
20+
UserPreference.serializer(),
21+
input.readBytes().decodeToString()
2122
)
2223
} catch (serialization: SerializationException) {
2324
throw CorruptionException("Unable to read UserPreference", serialization)
@@ -31,4 +32,4 @@ class UserPreferenceSerializer : Serializer<UserPreference> {
3132
)
3233
}
3334
}
34-
}
35+
}

core/datastore/src/main/java/com/mashup/datastore/di/DataStoreModule.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class DataStoreModule {
2727
@Provides
2828
@Singleton
2929
fun providesUserPreferencesDataStore(
30-
@ApplicationContext context: Context,
30+
@ApplicationContext context: Context
3131
): DataStore<UserPreference> {
3232
return DataStoreFactory.create(
3333
serializer = UserPreferenceSerializer()
@@ -39,12 +39,12 @@ class DataStoreModule {
3939
@Provides
4040
@Singleton
4141
fun providesAppPreferencesDataStore(
42-
@ApplicationContext context: Context,
42+
@ApplicationContext context: Context
4343
): DataStore<AppPreference> {
4444
return DataStoreFactory.create(
4545
serializer = AppPreferenceSerializer()
4646
) {
4747
File("${context.cacheDir.path}/$PATH_PB_APP")
4848
}
4949
}
50-
}
50+
}

core/model/src/main/java/com/mashup/core/model/data/local/AppPreference.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ data class AppPreference(
1111
isShowCoachMarkInScheduleList = true
1212
)
1313
}
14-
}
14+
}

core/model/src/main/java/com/mashup/core/model/data/local/UserPreference.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ data class UserPreference(
2020
pushNotificationAgreed = true
2121
)
2222
}
23-
}
23+
}

core/ui/src/main/java/com/mashup/core/ui/widget/MashUpSwitch.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fun MashUpSwitch(
2828
modifier: Modifier = Modifier,
2929
checked: Boolean,
3030
onCheckedChange: ((Boolean) -> Unit),
31-
enabled: Boolean = true,
31+
enabled: Boolean = true
3232
) {
3333
val trackBackgroundColor by animateColorAsState(
3434
targetValue = if (checked) Brand500 else Color(0xFFD9D9D9)
@@ -65,7 +65,7 @@ fun MashUpSwitch(
6565
) {
6666
drawRoundRect(
6767
color = trackBackgroundColor,
68-
cornerRadius = CornerRadius(x = 12.dp.toPx(), y = 12.dp.toPx()),
68+
cornerRadius = CornerRadius(x = 12.dp.toPx(), y = 12.dp.toPx())
6969
)
7070

7171
drawCircle(
@@ -87,4 +87,4 @@ fun SwitchCheckedPrev() {
8787
checked = state,
8888
onCheckedChange = { isChecked -> state = isChecked }
8989
)
90-
}
90+
}

feature/setting/src/main/java/com/mashup/feature/menu/SettingMenuItem.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fun RightArrowSettingItem(
6767
) {
6868
Box(
6969
modifier = modifier
70-
.clickable(onClick = onClickItem),
70+
.clickable(onClick = onClickItem)
7171
) {
7272
Row(
7373
verticalAlignment = Alignment.CenterVertically
@@ -120,7 +120,7 @@ fun FcmToggleSettingItem(
120120
) {
121121
Row(
122122
modifier = Modifier.padding(end = 20.dp),
123-
verticalAlignment = Alignment.CenterVertically,
123+
verticalAlignment = Alignment.CenterVertically
124124
) {
125125
Text(
126126
modifier = Modifier
@@ -134,7 +134,7 @@ fun FcmToggleSettingItem(
134134

135135
MashUpSwitch(
136136
checked = checked,
137-
onCheckedChange = onCheckedChange,
137+
onCheckedChange = onCheckedChange
138138
)
139139
}
140140
Text(
@@ -144,7 +144,6 @@ fun FcmToggleSettingItem(
144144
color = colorResource(id = descriptionRes),
145145
style = Body4
146146
)
147-
148147
}
149148
Divider(
150149
modifier = modifier
@@ -198,6 +197,5 @@ fun FcmToggleSettingItemPrev() {
198197
checked = true
199198
)
200199
}
201-
202200
}
203201
}

feature/setting/src/main/java/com/mashup/feature/menu/SettingMenuList.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ fun SettingMenuList(
2222
onDeleteUser: () -> Unit,
2323
modifier: Modifier = Modifier
2424
) {
25-
2625
Column(modifier = modifier) {
2726
FcmToggleSettingItem(
2827
title = stringResource(id = R.string.mash_up_alarm_title),

0 commit comments

Comments
 (0)