Skip to content

Commit

Permalink
style : 추가 파일에 대한 spotlessApply (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
KDW03 committed Oct 22, 2023
1 parent b1426fa commit d23bc69
Show file tree
Hide file tree
Showing 13 changed files with 114 additions and 15 deletions.
6 changes: 0 additions & 6 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,13 @@ android {
isMinifyEnabled = true
applicationIdSuffix = DoBuildType.RELEASE.applicationIdSuffix
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
// To publish on the Play store a private signing key is required, but to allow anyone
// who clones the code to sign and run the release variant, use the debug signing key.
// TODO: Abstract the signing configuration to a separate file to avoid hardcoding this.
signingConfig = signingConfigs.getByName("debug")
manifestPlaceholders["appName"] = "Mineme"
}
create("benchmark") {
// Enable all the optimizations from release build through initWith(release).
initWith(release)
matchingFallbacks.add("release")
// Debug key signing is available to everyone.
signingConfig = signingConfigs.getByName("debug")
// Only use benchmark proguard rules
proguardFiles("benchmark-rules.pro")
isMinifyEnabled = true
applicationIdSuffix = DoBuildType.BENCHMARK.applicationIdSuffix
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/najudoryeong/mineme/DoApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ class DoApplication : Application(), ImageLoaderFactory {
super.onCreate()
}
override fun newImageLoader(): ImageLoader = imageLoader.get()
}
}
15 changes: 15 additions & 0 deletions app/src/main/res/drawable/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2023 KDW03
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector
android:height="108dp"
android:width="108dp"
Expand Down
16 changes: 16 additions & 0 deletions app/src/main/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2023 KDW03
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
Expand Down
15 changes: 15 additions & 0 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2023 KDW03
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
Expand Down
15 changes: 15 additions & 0 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2023 KDW03
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ class OfflineFirstStoryResourceRepository @Inject constructor(
override fun getCalendarStory(year: String, month: String): Flow<StoryCalendarResource> = flow {
emit(network.getCalendarStory(year, month).asDomainModel())
}.flowOn(ioDispatcher)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package com.najudoryeong.mineme.core.designsystem.component

import androidx.annotation.StringRes
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.size
import androidx.compose.material3.CenterAlignedTopAppBar
import androidx.compose.material3.ExperimentalMaterial3Api
Expand Down Expand Up @@ -54,7 +53,7 @@ fun DoTopAppBar(
CenterAlignedTopAppBar(
title = { Text(text = stringResource(id = titleRes)) },
navigationIcon = {
IconButton(modifier = Modifier.size(60.dp),onClick = onNavigationClick) {
IconButton(modifier = Modifier.size(60.dp), onClick = onNavigationClick) {
Icon(
modifier = Modifier.testTag("Story:ChangeView"),
painter = painterResource(id = navigationIcon),
Expand Down
16 changes: 16 additions & 0 deletions core/designsystem/src/main/res/drawable/app_main_image.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2023 KDW03
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="100dp"
android:height="100dp"
Expand Down
16 changes: 16 additions & 0 deletions core/designsystem/src/main/res/drawable/top_region.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2023 KDW03
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector android:height="60dp" android:viewportHeight="38"
android:viewportWidth="65" android:width="102.63158dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#F9F9F9"
Expand Down
16 changes: 16 additions & 0 deletions core/designsystem/src/main/res/drawable/top_story.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2023 KDW03
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector android:height="60dp" android:viewportHeight="38"
android:viewportWidth="65" android:width="102.63158dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#F9F9F9"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package com.najudoryeong.mineme.core.network.di
import android.content.Context
import coil.ImageLoader
import coil.decode.SvgDecoder
import coil.memory.MemoryCache
import coil.util.DebugLogger
import com.najudoryeong.mineme.core.network.BuildConfig
import com.najudoryeong.mineme.core.network.fake.FakeAssetManager
Expand Down Expand Up @@ -57,7 +56,7 @@ object NetworkModule {
.dispatcher(
Dispatcher().apply {
maxRequestsPerHost = 12
}
},
).addInterceptor(
HttpLoggingInterceptor()
.apply {
Expand All @@ -84,4 +83,3 @@ object NetworkModule {
}
.build()
}

Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ fun RegionStoriesGrid(
stories: List<StoryWithRegion>,
onStoryClick: (Int) -> Unit,
) {

val allPosts = remember { mutableStateOf(emptyList<Pair<Post, StoryWithRegion>>()) }

val screenWidth = LocalConfiguration.current.screenWidthDp.dp
Expand Down Expand Up @@ -399,7 +398,7 @@ fun YearMonthPicker(
.padding(top = 16.dp)
.testTag("Story:DatePicker"),

) {
) {
Text(
text = "$selectedYear / $selectedMonth",
style = MaterialTheme.typography.titleLarge,
Expand Down

0 comments on commit d23bc69

Please sign in to comment.