Skip to content

Commit 1d45390

Browse files
committed
release (1.2.2) hotfix for ios target
1 parent a1fc754 commit 1d45390

File tree

5 files changed

+25
-16
lines changed

5 files changed

+25
-16
lines changed

docs/Essentials/Material 3/usage.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,27 @@ fun App() = ViewModelProvider({ app() }) {
1919

2020
## Change Themes
2121

22-
By default, `ThemeState` is initialized with pre-defined dark and light themes in the `design` module. To edit these themes:
22+
By default, `ThemeState` is initialized with pre-defined dark and light themes in the `presentation` module. To edit these themes:
2323

2424
1. Visit the [Material 3 Theme Builder](https://m3.material.io/theme-builder#/custom).
2525
2. Customize the desired color theme.
2626
3. Click on the **Export** button and confirm exporting as **Jetpack Compose (Theme.kt)**.
27-
4. Paste the exported files (**Theme.kt** and **Color.kt**) into the package `shared.presentation.theme` of the `design` module and update their package declaration accordingly.
28-
5. In the `Theme.kt` file add the following snippet:
27+
4. Paste the exported files (**Theme.kt** and **Color.kt**) into the package `shared.presentation.theme.m3` of the `presentation` module and update their package declaration accordingly.
28+
5. In the `Themes.kt` file add the following snippet:
2929
```kotlin
30-
val LightTheme = AppTheme(
31-
dark = false,
32-
id = "material_3_light",
33-
colorScheme = LightColors
34-
)
35-
36-
val DarkTheme = AppTheme(
37-
dark = true,
38-
id = "material_3_dark",
39-
colorScheme = DarkColors
40-
)
30+
object Themes {
31+
val Light = Theme(
32+
dark = false,
33+
id = "material_3_light",
34+
colorScheme = lightScheme
35+
)
36+
37+
val Dark = Theme(
38+
dark = true,
39+
id = "material_3_dark",
40+
colorScheme = darkScheme
41+
)
42+
}
4143
```
4244

43-
The themes can be declared directly in the app module. However, if you plan to use feature modules, it might be beneficial to declare the theme in the `design` module.
45+
The themes can be declared directly in the app module. However, if you plan to use feature modules, it might be beneficial to declare the theme in the `presentation` module.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# About
2+
3+
Includes showcases with all selected features in the project. These showcases are displayed as the initial app screen and must be manually removed when no longer necessary.

docs/Guides/README.md/overview.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# About
2+
3+
Includes a README.md file in the root of the generated template, along with additional documentation for all included features.

processor/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apply from: "${project.rootDir}/gradle/kotlin/processor.gradle"
22

33
group = 'com.kotlitecture.kotli'
4-
version = '1.2.1'
4+
version = '1.2.2'

template/shared/presentation/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ kotlin {
7474
}
7575
jsMain.get().dependsOn(skikoMain) // {platform.js}
7676
jvmMain.get().dependsOn(skikoMain) // {platform.jvm}
77+
nativeMain.get().dependsOn(skikoMain) // {platform.ios}
7778
}
7879
}
7980

0 commit comments

Comments
 (0)