Alexey Tsvetkov
8b6b4ae3e6
Revert enabling caching for Kotlin 1.9.0 ( #3511 )
...
We tried to enable the compiler cache, when
Kotlin/Native 1.9.0 is used.
Prior to Kotlin 1.9.0, the caching could not
be used with Compose, because code generation would fail.
With Kotlin 1.9.0, code generation succeeds, but generated debug symbols cause issues with dsymutil during xcode build.
For more details, see https://youtrack.jetbrains.com/issue/KT-61270
This change partially reverts https://github.com/JetBrains/compose-multiplatform/pull/3477 and https://github.com/JetBrains/compose-multiplatform/pull/3496
Now, we always set `kotlin.native.cacheKind=none` in
Compose Multiplatform Gradle plugin for all
versions of Kotlin until KT-61270 is fixed.
Also, explicit cache kind error becomes a warning again.
1 year ago
Oleksandr Karpovich
ef04feee54
Update ComposeCompilerCompatibility.kt ( #3509 )
...
It updates the default version of compose compiler plugin for kotlin 1.9.0
For now it's 1.5.1-rc01 version. For a stable release, we'll build a stable 1.5.1 compose compiler plugin.
1 year ago
Oleksandr Karpovich
91a7dcb0f6
Fix composable test build.gradle.kts ( #3506 )
1 year ago
dima.avdeev
83d2b54e35
Fix iOS ImageViewer example with Compose 1.4.3 and Kotlin 1.9.0 ( #3502 )
1 year ago
Alexey Tsvetkov
72cccc66bc
Rename compose.ios.resources.sync flag ( #3498 )
1 year ago
Alexey Tsvetkov
fa2df40e11
Replace warnings with errors ( #3496 )
1 year ago
Alexey Tsvetkov
6127a29700
Merge branch 'master' into support/1.5.0
1 year ago
Igor Demin
6d88ec2220
1.5.0-beta02 Changelog ( #3483 )
1 year ago
Alexey Tsvetkov
950d5a991c
Manage Kotlin native cache kind automatically based on Kotlin version ( #3477 )
...
Set Kotlin/Native cache kind based on Kotlin version
Resolves #2046
Resolves #2386
1 year ago
Alexey Tsvetkov
44376fdf85
Turn off Compose resources sync when third party resources plugins ar… ( #3469 )
...
* Turn off Compose resources sync when third party resources plugins are used
* Fix Gradle 7.x test kit check
1 year ago
Oleksandr Karpovich
e888495386
Handle ClassCastException for ComposeMultiplatformBuildService in Compose Gradle plugin ( #3467 )
...
* Handle ClassCastException for ComposeMultiplatformBuildService in Compose Gradle plugin
ClassCastException might occur when our gradle plugin was loaded more than once. See https://github.com/JetBrains/compose-multiplatform/issues/3459
We throw another exception with a bit more clear message.
* Update gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposeCompilerKotlinSupportPlugin.kt
1 year ago
Oleksandr Karpovich
1d6752b912
add a test for composable getter in expect/actual val getter ( #3456 )
1 year ago
Alexey Tsvetkov
1dc5839ed7
Raise error when Homebrew JDK is used for packaging ( #3451 )
...
Resolves #3107
1 year ago
Oleksandr Karpovich
3add7ce9da
Add runtimeSaveable to Dependencies in compose gradle plugin ( #3449 )
1 year ago
Alexey Tsvetkov
d9767c34a2
Set icon on EDT ( #3452 )
1 year ago
Sebastian Aigner
563575a866
Update Navigation tutorial to refer to Awesome List ( #3441 )
...
Remove third-party specific samples
1 year ago
Oleksandr Karpovich
a947c5efcc
Disable signature clash checks for web targets ( #3445 )
...
Compose compiler plugin produces symbols with identical signatures. k/jvm and k/native do not check for clashes, while k/js does. We disable the checker in our gradle plugin, so our users do not need to add extra workaround on their side.
1 year ago
Qinglin
1ae72a8647
Fix typo in tutorials/Navigation README.md ( #3419 )
...
Correct minor grammatical errors and fix some misspellings.
1 year ago
Oleksandr Karpovich
77a070ae45
Update build.gradle.kts ( #3425 )
1 year ago
Egor Tolstoy
cb468adf96
Added performance issue template ( #3415 )
...
* Added performance issue template
* Added FPS mention
1 year ago
Igor Demin
d39136935a
1.5.0-beta01 CHANGELOG ( #3407 )
1 year ago
Igor Demin
43a4086ba4
Migrate examples to 1.4.3 ( #3410 )
...
[Changelog](https://github.com/JetBrains/compose-multiplatform/releases/tag/v1.4.3 )
Changed templates:
bbf71f754c
ba91acf5d6
5204842894
36d1554dee
1 year ago
Alexey Tsvetkov
b67dde7295
Add pro guard optimize flag ( #3408 )
...
* Add DSL flag to control ProGuard's optimizations
#3387
* Update default ProGuard version
* Revert ProGuard default version to 7.2.2.
1 year ago
Igor Demin
a6cdfd8b71
Update CHANGELOG.md
1 year ago
Igor Demin
946a185bf0
Update CHANGELOG.md
1 year ago
Igor Demin
5e71a953ef
Widgets gallery: fix for mismatched @Composable annotation (desktop) ( #3409 )
...
Folloup after https://github.com/JetBrains/compose-multiplatform/pull/3402
1 year ago
Nikita Lipsky
02caf437db
Widgets gallery: fix for mismatched @Composable annotation ( #3402 )
...
* Widgets gallery: fix for mismatched @Composable annotation
* Widgets gallery: remove isSystemInDarkTheme expect function
1 year ago
Igor Demin
9438837cc1
ImageViewer. Reenable build on CI ( #3385 )
...
The CI checks was disabled in https://github.com/JetBrains/compose-multiplatform/pull/3384 . Reenable them in support/1.5.0, which will be merged after the 1.5.0 release.
1 year ago
Ivan Matkov
c09b344c03
Adopt ImageViewer to Compose 1.5.0-dev1114 and Kotlin 1.9.0 ( #3400 )
...
* ImageViewer. Add WindowsInsets.ime and update resources
* Update gradle properties
* Fix HorizontalPager usage
* Add ExperimentalForeignApi annotation
---------
Co-authored-by: dima.avdeev <dima.avdeev@jetbrains.com>
1 year ago
Igor Demin
a609db563a
Components. Downgrade to Kotlin 1.8.22 ( #3390 )
...
Dowgrading to Kotlin 1.8 will allow to use `components` in Kotlin 1.8 and Kotlin 1.9 projects (iOS, JS targets). Now it is supported only in Kotlin 1.9 projects.
1 year ago
Igor Demin
336ba2c7a1
Disable image viewer checks on CI ( #3384 )
...
Because:
1. it uses experimental API, that was changed int 1.5.0-beta03 after 1.4.0
2. we have a policy to use only release versions in the examples
Temporarily, will made a fix in support/1.5.0 branch
1 year ago
Igor Demin
9f118d39d2
Components. Fix Its usage must be marked with '@kotlinx.cinterop.ExperimentalForeignApi' ( #3383 )
...
* Components. Fix Its usage must be marked with '@kotlinx.cinterop.ExperimentalForeignApi'
https://teamcity.jetbrains.com/buildConfiguration/JetBrainsPublicProjects_Compose_Publish_2_AllGitHubRelease/4238435?buildTab=dependencies&mode=list&state=failed&type=snapshot&hideProblemsFromDependencies=false&hideTestsFromDependencies=false&expandBuildProblemsSection=true&showLog=4238425_373_267&logFilter=debug&logView=flowAware#4238426
Kotlin 1.9 broke source compatibility for native targets, usePinned is now experimental
* macOs
1 year ago
Igor Demin
46e8549a52
Components. Fix Mismatched @Composable annotation between expect and actual declaration ( #3381 )
...
https://teamcity.jetbrains.com/buildConfiguration/JetBrainsPublicProjects_Compose_Publish_2_AllGitHubRelease/4237900?hideProblemsFromDependencies=false&hideTestsFromDependencies=false&expandBuildChangesSection=true&expandBuildTestsSection=false&expandBuildProblemsSection=true&showLog=4237891_234_144&logFilter=debug&logView=flowAware
There was a mistake in commonMain/AnimatedImage.kt that can be caught in compile-time with Kotlin 1.9
1 year ago
Oleksandr Karpovich
f70d82f649
Hardcode 1.8.21 as kotlin version in compose.html to make new version compatible with older kotlin ( #3380 )
...
* Hardcode 1.8.21 as kotlin version in compose.html to make new version compatible with older kotlin
* keep the old property name for kotlin version - 'kotlin.version'
1 year ago
Oleksandr Karpovich
47b19a6ec0
Add kotlin 1.8.22 to compose compiler comaptibility ( #3379 )
1 year ago
Nikita Lipsky
d55962dd5e
Add commonTest source set ( #3378 )
...
- for GameControllerTest to be able to run
+ add linker options for ability to run it on iOS simulator
1 year ago
Oleksandr Karpovich
eda9a69b8d
Update yarn.lock in compose.html ( #3377 )
1 year ago
Oleksandr Karpovich
de2f4f8d28
Fix compose.html with 1.9.0 ( #3376 )
...
* Fix compose.html build with 1.9.0 by exposing some dependencies with `api(...)`
* Temp disable integration tests in compose.html
1 year ago
Igor Demin
06bcb1c680
Components. Fix `KotlinSourceSet with name 'androidTest' not found.` on Kotlin 1.9.0 ( #3375 )
...
FAILURE: Build failed with an exception.
* Where:
Build file '/mnt/agent/work/eef8b9c316a53dd6/components/resources/library/build.gradle.kts' line: 66
`androidTest` was deprecated: https://kotlinlang.org/docs/whatsnew18.html#kotlin-multiplatform-a-new-android-source-set-layout
* What went wrong:
KotlinSourceSet with name 'androidTest' not found.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 24s
Process exited with code 1
See https://teamcity.jetbrains.com/buildConfiguration/JetBrainsPublicProjects_Compose_Publish_2_AllGitHubRelease/4237033?buildTab=dependencies&mode=list&state=failed&type=snapshot&hideProblemsFromDependencies=false&hideTestsFromDependencies=false&expandBuildProblemsSection=true#4237024
## Testing
./gradlew resources:library:test
1 year ago
Igor Demin
17ba8f3a57
Revert "Revert "Add explicit dependencies on modules to make it build with kotlin 1.9.0 ( #3374 )""
...
This reverts commit 09bfeab4ea
.
1 year ago
Igor Demin
09bfeab4ea
Revert "Add explicit dependencies on modules to make it build with kotlin 1.9.0 ( #3374 )"
...
This reverts commit a2cd678c82
.
1 year ago
Igor Demin
881b48b89d
Revert "Components. Fix `KotlinSourceSet with name 'androidTest' not found.` on Kotlin 1.9.0"
...
This reverts commit 1d0e8ded91
.
1 year ago
Igor Demin
1d0e8ded91
Components. Fix `KotlinSourceSet with name 'androidTest' not found.` on Kotlin 1.9.0
...
FAILURE: Build failed with an exception.
* Where:
Build file '/mnt/agent/work/eef8b9c316a53dd6/components/resources/library/build.gradle.kts' line: 66
`androidTest` was deprecated: https://kotlinlang.org/docs/whatsnew18.html#kotlin-multiplatform-a-new-android-source-set-layout
* What went wrong:
KotlinSourceSet with name 'androidTest' not found.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 24s
Process exited with code 1
See https://teamcity.jetbrains.com/buildConfiguration/JetBrainsPublicProjects_Compose_Publish_2_AllGitHubRelease/4237033?buildTab=dependencies&mode=list&state=failed&type=snapshot&hideProblemsFromDependencies=false&hideTestsFromDependencies=false&expandBuildProblemsSection=true#4237024
## Testing
./gradlew resources:library:test
1 year ago
Oleksandr Karpovich
a2cd678c82
Add explicit dependencies on modules to make it build with kotlin 1.9.0 ( #3374 )
...
* Add explicit dependencies on modules to make it build with kotlin 1.9.0
* Fix typo
1 year ago
Oleksandr Karpovich
c918154efe
Update kotlin version in gradle plugin tests ( #3372 )
...
kotlin - 1.9.0, compose compiler plugin - 1.5.0
1 year ago
Oleksandr Karpovich
f28d438ad0
Update ComposeCompilerCompatibility ( #3371 )
...
add kotlin 1.9.0 -> compose compiler 1.5.0
1 year ago
Alexey Tsvetkov
16114b2f0f
Simplify resource management for iOS ( #3340 )
...
* Simplify resource management for iOS
Introduces new a new task 'sync<FRAMEWORK_CLASSIFIER>ComposeIosResources',
which collects resources from all source sets, included in iOS targets.
With this change:
* CocoaPods integration does not require any configuration or calling 'pod install' after changing resources.
* Important: existing projects need to remove 'extraSpecAttributes["resources"] = ...' from build scripts, and rerun `./gradlew podInstall` once!
* Without CocoaPods, the resource directory should be added to XCode build phases once.
Resolves #3073
Resolves #3113
Resolves #3066
1 year ago
Nikita Lipsky
1346feea5a
Compose benchmarks that run in attended mode for comparison JVM and K/N ( #3297 )
1 year ago
Oleksandr Karpovich
54f03178fd
Add info about Compose Multiplatform Compiler compatibility with kotlin ( #3315 )
...
* Add info about Compose Multiplatform Compiler compatibility with kotlin
* fix typo
* copy editing
1 year ago
Oleksandr Karpovich
f563664166
Add a warning for a user who sets `compose.kotlinCompilerPlugin` to `androidx.compose.compiler.compiler` ( #3313 )
...
* Add a warning for a user who sets `compose.kotlinCompilerPlugin` to `android.compose.compiler.compiler`
The warning will show up only when a multiplatform project contains at least one of the non-jvm targets: k/js, k/native or k/wasm
* fix typo
* PR review
* Refactor to BuildService
* fix typo
1 year ago