Skip to content

Commit afe9bba

Browse files
authored
Merge pull request #94 from bitfunk/feature/bump-dependencies
Bump dependencies
2 parents d7407c0 + ba7e746 commit afe9bba

File tree

87 files changed

+2262
-1389
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+2262
-1389
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ build-cache/
2727

2828
# Others
2929
captures/
30-
kotlin-js-store
3130

3231
## OS X Finder
3332
.DS_Store

CHANGELOG.md

+19-15
Original file line numberDiff line numberDiff line change
@@ -37,37 +37,41 @@ See [changeset](https://github.com/wmontwe/blueprint-mobile-kmp/compare/v1.0.0..
3737
### Bumped
3838

3939
- Android target API 31 -> 33
40-
- Gradle 7.2 -> 7.5
41-
- Android Gradle Plugin 7.1.0 -> 7.3.1
40+
- Gradle 7.2 -> 8.0.1
41+
- Android Gradle Plugin 7.1.0 -> 7.4.1
4242
- Jetpack Compose 1.0.5 -> 1.3.1
43-
- Jetpack Compose Compiler 1.0.5 -> 1.3.2
44-
- Jetbrains Compose 1.0.1 -> 1.2.1
45-
- AndroidX AppCompat 1.4.2 -> 1.5.1
43+
- Jetpack Compose Compiler 1.0.5 -> 1.4.0
44+
- Jetbrains Compose 1.0.1 -> 1.3.0
45+
- AndroidX AppCompat 1.4.2 -> 1.6.1
4646
- AndroidX CoreKtx 1.7.0 -> 1.9.0
4747
- AndroidX Activity Compose 1.4.0 -> 1.6.1
4848
- AndroidX Test 1.4.0 -> 1.5.0
4949
- AndroidX Test Orchestrator 1.4.1 -> 1.4.2
50-
- AndroidX Test Junit Ktx 1.1.3 -> 1.1.4
51-
- AndroidX Test Espresso 3.4.0 -> 3.5.0
52-
- Accompanist 0.20.3 -> 0.27.1
53-
- Material 1.6.0-alpha01 -> 1.7.0
54-
- Kotlin 1.6.10 -> 1.7.20
50+
- AndroidX Test Junit Ktx 1.1.3 -> 1.1.5
51+
- AndroidX Test Espresso 3.4.0 -> 3.5.1
52+
- Accompanist 0.20.3 -> 0.28.1
53+
- Material 1.6.0-alpha01 -> 1.8.0
54+
- Kotlin 1.6.10 -> 1.8.0
5555
- Kotlin Coroutines 1.6.0 -> 1.6.4
5656
- AndroidX Compose UI 1.1.1 -> 1.2.1
5757
- Kakaocup Compose 0.0.6 -> 0.2.0
5858
- Material Compose 1.1.0-rc03 -> 1.3.1
59-
- Material3 Compose 1.0.0-alpha04 -> 1.0.0-alpha14
60-
- SqlDelight 1.5.3 -> 1.5.4
59+
- Material3 Compose 1.0.0-alpha04 -> 1.0.1
60+
- SqlDelight 1.5.3 -> 1.5.5
6161
- Decompose 0.5.2 -> 0.8.0
6262
- Ktor 1.6.2 -> 2.1.3
63-
- Koin 3.1.4 -> 3.3.1
63+
- Koin 3.1.4 -> 3.3.3
6464
- Kotlin Serialization 1.2.2 -> 1.4.1
6565
- Robolectric 4.5.1 -> 4.9
6666
- Coil Compose 1.3.2 -> 2.2.2
6767
- Android Desugar 1.0.9 -> 1.2.2
68-
- Bitfunk Versioning 0.1.1 -> 0.1.2
69-
- KakaoCup Compose 0.2.0 -> 0.2.1
68+
- Bitfunk Versioning 0.1.1 -> 0.2.0
69+
- KakaoCup Compose 0.2.0 -> 0.2.2
7070
- MkDocs 2.4.0 -> 3.0.0
71+
- Bitfunk Quality 0.1.1 -> 0.2.0
72+
- Version Update 0.44.0 -> 0.45.0
73+
- JUnit Jupiter 5.9.1 -> 5.9.2
74+
- Android Desugar 1.2.2 -> 2.0.2
7175

7276
### Deprecated
7377

Dangerfile.df.kts

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,23 +66,23 @@ danger(args) {
6666
"\nrelease/1.2(.3)(/prepare-1.2.3)\n" +
6767
"\nfeature/(ISSUE-123)/add|change|remove|fix|bump|security-feature-title\n" +
6868
"\n\n" +
69-
"\n Current name: $branchName"
69+
"\n Current name: $branchName",
7070
)
7171
}
7272

7373
if (isFeatureBranch) {
7474
if (!isFeatureTitle) {
7575
fail(
7676
"Title is not following our pattern:\n" +
77-
"\n[issue_id](optional) Add|Change|Remove|Fix|Bump|Security {Feature title}"
77+
"\n[issue_id](optional) Add|Change|Remove|Fix|Bump|Security {Feature title}",
7878
)
7979
}
8080
}
8181

8282
if (isReleaseBranch) {
8383
if (!isReleaseTitle) {
8484
fail(
85-
"Title is not following our pattern: Prepare Release major.minor.patch (1.2.0)"
85+
"Title is not following our pattern: Prepare Release major.minor.patch (1.2.0)",
8686
)
8787
}
8888
}

app-android/src/main/kotlin/eu/upwolf/mobile/blueprint/android/MainActivity.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class MainActivity : ComponentActivity() {
4646

4747
private fun createRootComponent(componentContext: ComponentContext): RootComponentContract.Component {
4848
return RootComponent(
49-
componentContext = componentContext
49+
componentContext = componentContext,
5050
)
5151
}
5252
}

app-android/src/main/kotlin/eu/upwolf/mobile/blueprint/android/ui/MainApp.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import eu.upwolf.mobile.blueprint.common.ui.theme.AppThemeMain
2525

2626
@Composable
2727
fun MainApp(
28-
content: @Composable () -> Unit
28+
content: @Composable () -> Unit,
2929
) {
3030
ProvideWindowInsets(windowInsetsAnimationsEnabled = true) {
3131
AppThemeMain {

app-android/src/main/kotlin/eu/upwolf/mobile/blueprint/android/ui/component/counter/CounterComponent.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fun CounterUi(counter: Counter) {
3131

3232
Column {
3333
Text(
34-
text = state.count.toString()
34+
text = state.count.toString(),
3535
)
3636

3737
Button(onClick = counter::increment) {

app-android/src/main/kotlin/eu/upwolf/mobile/blueprint/android/ui/component/main/MainComponent.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import com.arkivanov.decompose.ComponentContext
2222

2323
class MainComponent(
2424
componentContext: ComponentContext,
25-
private val onBottomBarItem: () -> Unit
25+
private val onBottomBarItem: () -> Unit,
2626
) : MainContract, ComponentContext by componentContext {
2727

2828
override fun onBottomBarItemClicked() {

app-android/src/main/kotlin/eu/upwolf/mobile/blueprint/android/ui/component/main/MainContent.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ import androidx.compose.ui.Modifier
2828
@Composable
2929
fun MainContent(
3030
main: MainContract,
31-
modifier: Modifier = Modifier
31+
modifier: Modifier = Modifier,
3232
) {
3333
Box(
3434
modifier = modifier,
35-
contentAlignment = Alignment.Center
35+
contentAlignment = Alignment.Center,
3636
) {
3737
Button(
38-
onClick = main::onBottomBarItemClicked
38+
onClick = main::onBottomBarItemClicked,
3939
) {
4040
Text(text = "Go to Feature1")
4141
}

app-android/src/main/kotlin/eu/upwolf/mobile/blueprint/android/ui/reuse/AppScaffold.kt

+7-7
Original file line numberDiff line numberDiff line change
@@ -35,37 +35,37 @@ import eu.upwolf.mobile.blueprint.common.ui.theme.AppTheme
3535
@OptIn(ExperimentalMaterial3Api::class)
3636
@Composable
3737
fun AppScaffold(
38-
content: @Composable (PaddingValues) -> Unit
38+
content: @Composable (PaddingValues) -> Unit,
3939
) {
4040
// val navController = rememberNavController()
4141

4242
Scaffold(
4343
topBar = {
4444
TopAppBar(
4545
contentPadding = rememberInsetsPaddingValues(
46-
insets = LocalWindowInsets.current.statusBars
46+
insets = LocalWindowInsets.current.statusBars,
4747
),
4848
backgroundColor = AppTheme.colorScheme.primary,
4949
title = {
5050
Text(
5151
text = stringResource(id = R.string.app_name),
52-
color = AppTheme.colorScheme.onPrimary
52+
color = AppTheme.colorScheme.onPrimary,
5353
)
54-
}
54+
},
5555
)
5656
},
57-
content = content
57+
content = content,
5858
)
5959
}
6060

6161
@Preview(
6262
name = "Light preview",
63-
showBackground = true
63+
showBackground = true,
6464
)
6565
@Preview(
6666
name = "Dark preview",
6767
showBackground = true,
68-
uiMode = Configuration.UI_MODE_NIGHT_YES
68+
uiMode = Configuration.UI_MODE_NIGHT_YES,
6969
)
7070
@Composable
7171
fun DefaultPreview() {

app-android/src/main/res/mipmap-anydpi-v26/ic_launcher.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
33
<background android:drawable="@color/ic_launcher_background"/>
44
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
5-
</adaptive-icon>
5+
<monochrome android:drawable="@drawable/ic_launcher_foreground"/>
6+
</adaptive-icon>

app-android/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
33
<background android:drawable="@color/ic_launcher_background"/>
44
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
5-
</adaptive-icon>
5+
<monochrome android:drawable="@drawable/ic_launcher_foreground"/>
6+
</adaptive-icon>

app-desktop/src/desktopMain/kotlin/eu/upwolf/mobile/blueprint/desktop/Main.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fun main() {
4444
Window(
4545
onCloseRequest = ::exitApplication,
4646
title = "Blueprint",
47-
state = windowState
47+
state = windowState,
4848
) {
4949
MainApp {
5050
RootContent(root)
@@ -56,6 +56,6 @@ fun main() {
5656

5757
private fun createRootComponent(componentContext: ComponentContext): RootComponentContract.Component {
5858
return RootComponent(
59-
componentContext = componentContext
59+
componentContext = componentContext,
6060
)
6161
}

app-desktop/src/desktopMain/kotlin/eu/upwolf/mobile/blueprint/desktop/ui/DesignSystem.kt

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,26 +41,26 @@ fun DesignSystem() {
4141
val isDarkState = remember { mutableStateOf(false) }
4242

4343
AppThemeMain(
44-
darkTheme = isDarkState.value
44+
darkTheme = isDarkState.value,
4545
) {
4646
AppSurface(
47-
modifier = Modifier.fillMaxSize()
47+
modifier = Modifier.fillMaxSize(),
4848
) {
4949
Column(
5050
modifier = Modifier
5151
.padding(AppTheme.dimension.spacingDouble),
52-
horizontalAlignment = Alignment.CenterHorizontally
52+
horizontalAlignment = Alignment.CenterHorizontally,
5353
) {
5454
HeadlineLarge(if (isDarkState.value) "Theme is Dark" else "Theme is Light")
5555

5656
Spacer(
57-
modifier = Modifier.height(AppTheme.dimension.spacingDouble)
57+
modifier = Modifier.height(AppTheme.dimension.spacingDouble),
5858
)
5959

6060
ThemeSwitch(isDarkState.value) { isDarkState.value = !isDarkState.value }
6161

6262
Spacer(
63-
modifier = Modifier.height(AppTheme.dimension.spacingDouble)
63+
modifier = Modifier.height(AppTheme.dimension.spacingDouble),
6464
)
6565

6666
ThemeOverview()

app-desktop/src/desktopMain/kotlin/eu/upwolf/mobile/blueprint/desktop/ui/MainApp.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import androidx.compose.runtime.Composable
2424
@Preview
2525
@Composable
2626
fun MainApp(
27-
content: @Composable () -> Unit
27+
content: @Composable () -> Unit,
2828
) {
2929
content()
3030
}

build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ reportConfig {
7272
coverageReportSourceDirs.set(
7373
listOf(
7474
"$projectDir/plugin-development/build/reports/jacoco/testCodeCoverageReport",
75-
"$projectDir/plugins/build/reports/jacoco/testCodeCoverageReport"
76-
)
75+
"$projectDir/plugins/build/reports/jacoco/testCodeCoverageReport",
76+
),
7777
)
7878
}
7979

common/database/build.gradle.kts

+6-8
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,13 @@ kotlin {
4242
implementation(libs.sqldelight.androidDriver)
4343
}
4444
}
45-
androidTest {
46-
dependencies {
47-
implementation(libs.sqldelight.sqliteDriver)
48-
}
45+
val androidUnitTest = maybeCreate("androidUnitTest")
46+
androidUnitTest.dependencies {
47+
implementation(libs.sqldelight.sqliteDriver)
4948
}
50-
androidAndroidTest {
51-
dependencies {
52-
implementation(libs.sqldelight.androidDriver)
53-
}
49+
val androidInstrumentedTest = maybeCreate("androidInstrumentedTest")
50+
androidInstrumentedTest.dependencies {
51+
implementation(libs.sqldelight.androidDriver)
5452
}
5553

5654
jvmMain {

common/database/src/androidMain/kotlin/eu/upwolf/mobile/blueprint/common/database/CommonDriverFactory.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ import com.squareup.sqldelight.android.AndroidSqliteDriver
2323
import com.squareup.sqldelight.db.SqlDriver
2424

2525
actual class CommonDriverFactory(
26-
private val context: Context
26+
private val context: Context,
2727
) : CommonDatabaseContract.DriverFactory {
2828

2929
actual override suspend fun createDriver(schema: SqlDriver.Schema): SqlDriver {
3030
return AndroidSqliteDriver(
3131
schema = schema,
3232
context = context,
33-
name = CommonDatabaseContract.DATABASE_NAME
33+
name = CommonDatabaseContract.DATABASE_NAME,
3434
)
3535
}
3636
}

common/database/src/commonMain/kotlin/eu/upwolf/mobile/blueprint/common/database/CommonDatabase.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import com.squareup.sqldelight.db.SqlDriver
2424
// - add logger
2525
// - add background dispatcher
2626
class CommonDatabase(
27-
private val driverProvider: suspend (SqlDriver.Schema) -> SqlDriver
27+
private val driverProvider: suspend (SqlDriver.Schema) -> SqlDriver,
2828
) : CommonDatabaseContract {
2929

3030
private var database: CommonSqlDatabase? = null

common/database/src/iosTest/kotlin/eu/upwolf/mobile/blueprint/common/database/CommonTestDriverFactory.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ actual object CommonTestDriverFactory : CommonDatabaseContract.DriverFactory {
2525
actual override suspend fun createDriver(schema: SqlDriver.Schema): SqlDriver {
2626
return NativeSqliteDriver(
2727
schema = schema,
28-
name = CommonDatabaseContract.DATABASE_NAME
28+
name = CommonDatabaseContract.DATABASE_NAME,
2929
)
3030
}
3131
}

common/ui/foundation/src/androidMain/kotlin/eu/upwolf/mobile/blueprint/common/ui/foundation/painter/AndroidCompositionLocals.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ internal val LocalImageVectorCache = staticCompositionLocalOf<ImageVectorCache>
4343

4444
@Composable
4545
fun ProvideImageVectorCache(
46-
content: @Composable () -> Unit
46+
content: @Composable () -> Unit,
4747
) {
4848
val context = LocalContext.current
4949
var configuration by remember {
5050
mutableStateOf(
5151
context.resources.configuration,
52-
neverEqualPolicy()
52+
neverEqualPolicy(),
5353
)
5454
}
5555
val imageVectorCache = obtainImageVectorCache(context, configuration)
5656
CompositionLocalProvider(
57-
LocalImageVectorCache provides imageVectorCache
57+
LocalImageVectorCache provides imageVectorCache,
5858
) {
5959
content()
6060
}
@@ -64,7 +64,7 @@ fun ProvideImageVectorCache(
6464
@Composable
6565
private fun obtainImageVectorCache(
6666
context: Context,
67-
configuration: Configuration?
67+
configuration: Configuration?,
6868
): ImageVectorCache {
6969
val imageVectorCache = remember { ImageVectorCache() }
7070
var currentConfiguration = remember { configuration }

common/ui/foundation/src/androidMain/kotlin/eu/upwolf/mobile/blueprint/common/ui/foundation/painter/AndroidVectorResources.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ internal object AndroidVectorResources {
2828
android.R.attr.autoMirrored,
2929
android.R.attr.tintMode,
3030
android.R.attr.viewportWidth,
31-
android.R.attr.viewportHeight
31+
android.R.attr.viewportHeight,
3232
)
3333
val STYLEABLE_VECTOR_DRAWABLE_VIEWPORT_HEIGHT = 8
3434
val STYLEABLE_VECTOR_DRAWABLE_VIEWPORT_WIDTH = 7
@@ -42,7 +42,7 @@ internal object AndroidVectorResources {
4242
android.R.attr.scaleY,
4343
android.R.attr.rotation,
4444
android.R.attr.translateX,
45-
android.R.attr.translateY
45+
android.R.attr.translateY,
4646
)
4747
val STYLEABLE_VECTOR_DRAWABLE_GROUP_NAME = 0
4848
val STYLEABLE_VECTOR_DRAWABLE_GROUP_PIVOT_X = 1
@@ -69,7 +69,7 @@ internal object AndroidVectorResources {
6969
android.R.attr.strokeAlpha,
7070
android.R.attr.fillAlpha,
7171
// android.R.attr.fillType is in API level 24+ use hardcoded value to extract the attribute if it exists
72-
0x101051E
72+
0x101051E,
7373
)
7474
val STYLEABLE_VECTOR_DRAWABLE_PATH_FILL_ALPHA = 12
7575
val STYLEABLE_VECTOR_DRAWABLE_PATH_FILL_COLOR = 1

0 commit comments

Comments
 (0)