Commit fc7e903
authored
Fix
Fixes
https://youtrack.jetbrains.com/issue/CMP-7577/Desktop-runRelease-crash-when-upgrade-to-CMP-1.8.0-alpha02
Fixes
https://youtrack.jetbrains.com/issue/CMP-3818/Update-ProGuard-to-version-7.4-to-support-new-Java-versions
Fixes
https://youtrack.jetbrains.com/issue/CMP-4883/Default-Proguard-rules-cause-release-task-failure-when-using-Material-3-instead-of-2-in-Compose-Desktop
Targeting 1.8.0
The rules was added by testing our current examples. The comprehensive
rules are only possible if we run [all tests with
ProGuard](https://youtrack.jetbrains.com/issue/CMP-3404/Run-all-Compose-tests-with-ProGuard-on).
Also, each rule wasn't investigated thoroughly, in some cases it might a
valid rule, in some cases a ProGuard bug.
The auto integration checks on CI will be added in
https://youtrack.jetbrains.com/issue/CMP-7970/Add-integration-checks-for-all-libraries.
## Testing
`./gradlew runRelease` works in:
- https://kmp.jetbrains.com
- all examples
## Release Notes
### Features - Desktop
- The default ProGuard version is set to 7.7.0
- If there are any new errors in the release build, update [the ProGuard
rules](https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-native-distribution.html#minification-and-obfuscation)
- A usual workaround is to add `-keep class` for the associated with
error class in "Location:"
- If the error contains `androidx.` package, it might a Compose bug,
please report in https://youtrack.jetbrains.com/issues/CMP. The `-keep
class` workaround should also work in this case.
- _(prerelease fix)_ `./gradlew runRelease` doesn't crash with
`java.lang.VerifyError`./gradlew runRelease, update ProGuard to 7.7.0 (#5279)1 parent 70bf5f1 commit fc7e903
File tree
7 files changed
+28
-6
lines changed- examples
- imageviewer/desktopApp
- issues/desktop
- gradle-plugins/compose/src/main
- kotlin/org/jetbrains/compose/desktop/application/dsl
- resources
7 files changed
+28
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
32 | 41 | | |
33 | 42 | | |
34 | 43 | | |
| |||
56 | 65 | | |
57 | 66 | | |
58 | 67 | | |
| 68 | + | |
| 69 | + | |
59 | 70 | | |
0 commit comments