Skip to content

Commit

Permalink
Update codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski committed May 19, 2024
1 parent b306cbd commit 2a0ccae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
8 changes: 0 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ commonConfig {

allprojects {
pluginManager.withPlugin("kotlin") { plugin ->
def kotlinVersion = KotlinPluginWrapperKt.getKotlinPluginVersion(project)
configurations.matching { it.name != "detekt" }.configureEach {
resolutionStrategy.eachDependency {
if (requested.group == 'org.jetbrains.kotlin' && requested.name.startsWith("kotlin")) {
useVersion kotlinVersion
}
}
}
kotlin {
jvmToolchain(libs.versions.java.compilation.get().toInteger())
}
Expand Down
2 changes: 2 additions & 0 deletions sample/app/src/main/kotlin/se/premex/gross/OssArtifactView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ fun AssetsOssView() {

when (val state = uiState.value) {
State.Loading -> LoadingView(stringResource(id = R.string.loading))

is State.Failed -> ErrorView(stringResource(id = R.string.error), state.errorMessage)

is State.Success -> {
Column {
Text(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ fun GrossTheme(
}

darkTheme -> DarkColorScheme

else -> LightColorScheme
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ internal fun <T> checkLoadedArtifacts(artifacts: List<T>, isViewPager2Dependency
@Suppress("KotlinConstantConditions")
when (BuildConfig.BUILD_TYPE) {
"release" -> assertThat(viewPagers).isEmpty()

"debug" -> assertThat(viewPagers.single().toString()).isEqualTo(
Artifact(
groupId = "androidx.viewpager2",
Expand Down

0 comments on commit 2a0ccae

Please sign in to comment.