Konstantin Tskhovrebov
5f67523bc1
[gradle] Remove custom kotlin version from gradle test project.
8 months ago
Pavel Shishkin
7d20ee38f2
Merge 'update compose compiler 1.5.11-k2-Beta5'
8 months ago
Pavel Shishkin
8fa2e40fa5
update compose compiler version for k2.0.0-Beta5 ( #4529 )
8 months ago
Konstantin Tskhovrebov
635b1939e7
[gradle] Use @InputFiles instead of @InputDirectory to avoid crash when the dir doesn't exist
8 months ago
Konstantin
0d0e133e86
[gradle] Add DSL to configure compose resources ( #4482 )
...
Example:
```kotlin
compose.resources {
publicResClass = true
packageOfResClass = "me.sample.library.resources"
generateResClass = auto
}
```
8 months ago
Konstantin
c43b64d43a
[resources] Fix android fonts in APKs ( #4509 )
...
Steps to reproduce:
1) Add a 'font-en' directory with a font to an android app with compose
resources
2) build the app with `assembleDebug` and check that a corresponding dir
is presented in the final APK
3) rename a qualifier of the dir to `font-de`
4) re-build the app with the same command `assembleDebug`
Expected: the new APK will contain the new font dir
Actual: the new APK doesn't have the new font dir but has old one
'font-en'
The PR fixes that
8 months ago
Konstantin
6f3eb08488
[resources] Fix readResourceBytes function on Android if font is located under qualified directory ( #4512 )
...
Fix the problem when users try to read a font bytes under a qualified
directory.
8 months ago
Konstantin
ad9c898651
[resources] Use first of preferred locales instead of a current on iOS ( #4507 )
...
There is a bug on iOS:
```
NSLocale.currentLocale() -> 'en-US'
NSLocale.preferredLanguages().first().let { NSLocale(it as String) } -> 'ru'
```
An equal result was expected!
the first method was used in a non-compose code and another one in the
compose code.
The PR fixes behavior in a non-compose environment.
8 months ago
Igor Demin
9ac23ae93e
Compose 1.6.1 examples ( #4480 )
8 months ago
Igor Demin
8d17f4e7c2
Update CHANGELOG.md (1.6.1) ( #4477 )
...
Co-authored-by: Ivan Matkov <ivan.matkov@jetbrains.com>
8 months ago
Konstantin
629cd055dc
Support multimodule projects and libraries publication with compose resources ( #4454 )
...
- integrate KGP resource API
- packaging final resources to iOS and JS/Wasm applications
- integration tests of publication and multi module support
- info logging of supported Gradle and KGP versions
### requirements
- Kotlin Gradle Plugin >= 2.0.0-Beta05
- Gradle >= 7.6
8 months ago
Igor Demin
399e482d3b
Merge remote-tracking branch 'origin/release/1.6.1'
8 months ago
Konstantin
e8459e19b4
[resources] Fix regionCode crash on iOS before 17 ( #4473 )
...
The regionCode API
```
NSLocale.currentLocale().regionCode
```
was published in iOS 17:
https://developer.apple.com/documentation/foundation/nslocale/4172868-regioncode?language=objc
to make it works on all iOS versions we have to use:
```
NSLocale.currentLocale().objectForKey(NSLocaleCountryCode) as? String
```
fixes https://github.com/JetBrains/compose-multiplatform/issues/4469
8 months ago
Pavel Shishkin
3de2f3bfbe
update compose compiler version to 1.5.10.1 ( #4474 )
...
Fixes https://github.com/JetBrains/compose-multiplatform/issues/4455
8 months ago
Konstantin
e7f1a6cc20
[resources] Fix regionCode crash on iOS before 17 ( #4473 )
...
The regionCode API
```
NSLocale.currentLocale().regionCode
```
was published in iOS 17:
https://developer.apple.com/documentation/foundation/nslocale/4172868-regioncode?language=objc
to make it works on all iOS versions we have to use:
```
NSLocale.currentLocale().objectForKey(NSLocaleCountryCode) as? String
```
fixes https://github.com/JetBrains/compose-multiplatform/issues/4469
9 months ago
Luca Spinazzola
4c238f5ff8
update macOS readResourceBytes to use composeResources ( #4458 )
...
Loading resources in the demo is broken without updating this to use
`composeResources`
9 months ago
Ivan Matkov
de432c9291
[1.6.0 CHANGELOG] Add info about known Popup shadows limitation ( #4465 )
...
Related to #4460
9 months ago
Igor Demin
59e37e305f
Imageviewer. Fix compilation of Android target ( #4467 )
...
Fix regression after
https://github.com/JetBrains/compose-multiplatform/pull/4433
`./gradlew compileReleaseKotlinAndroid` in `imageviewer` fails with:
```
* What went wrong:
Execution failed for task ':shared:compileReleaseKotlinAndroid'.
> Inconsistent JVM-target compatibility detected for tasks 'compileReleaseJavaWithJavac' (1.8) and 'compileReleaseKotlinAndroid' (17).
```
(JAVA_HOME points to JDK 17)
9 months ago
Pavel Shishkin
1f9664c068
Merge branch 'release/1.6.1'
9 months ago
Shishkin Pavel
730e368de7
update compiler version to 1.5.10 ( #4452 )
9 months ago
Konstantin
52c4bf3b1f
[example] Migrate the image viewer on the new compose resources ( #4433 )
9 months ago
Igor Demin
71e0c92673
Merge remote-tracking branch 'origin/release/1.6.1'
9 months ago
Konstantin Tskhovrebov
70aa35bfb5
[gradle] Disable parallel tests run for gradle tests
9 months ago
Konstantin Tskhovrebov
ea9d432245
[gradle] Run gradle tests in parallel but not concurrently
...
otherwise it kills CI agents
9 months ago
Konstantin Tskhovrebov
9e753b033b
[gradle] Run gradle tests in parallel
9 months ago
Igor Demin
75be9d1c65
Merge remote-tracking branch 'origin/release/1.6.1'
9 months ago
Konstantin Tskhovrebov
eabd836b35
[ci] Update android cmd tools to latest and platform to 34 in the docker for gradle tests
9 months ago
Konstantin Tskhovrebov
f6c81307b8
[gradle] Disable parallel tests run for gradle tests
9 months ago
Konstantin Tskhovrebov
f07e220f72
[gradle] Run gradle tests in parallel but not concurrently
...
otherwise it kills CI agents
9 months ago
Konstantin Tskhovrebov
5244b8a866
[gradle] Run gradle tests in parallel
9 months ago
Konstantin Tskhovrebov
c3c7ba3ccb
[ci] Update android cmd tools to latest and platform to 34 in the docker for gradle tests
9 months ago
Igor Demin
02026d20c8
Merge remote-tracking branch 'origin/release/1.6.1'
9 months ago
Konstantin Tskhovrebov
376cdb42d4
Revert "[gradle] Add a flag to fix build on TeamCity with configuration caches enabled"
...
This reverts commit 5e0e03bef2
.
9 months ago
Konstantin Tskhovrebov
16fe22d172
[gradle] Add a flag to fix build on TeamCity with configuration caches enabled
...
Error was:
> Listener registration 'Gradle.addListener' by build is unsupported.
9 months ago
Konstantin
e9c11b0a92
Add gradle "8.6" and AGP "7.3.1", "8.2.2" to the gradle plugin integration tests ( #4309 )
9 months ago
Konstantin
f683673b7e
Fix package name of generated Res file when project is building for JsTarget ( #4295 ) ( #4300 )
...
Origin: https://github.com/JetBrains/compose-multiplatform/pull/4296
---------
Co-authored-by: Suhaib Roomy <suhaib.roomy@booking.com>
9 months ago
Konstantin
6038d44d5e
[resources] Fix resource packaging in APK when 'build' task is used with AGP 8.2+ ( #4408 )
...
fixes https://github.com/JetBrains/compose-multiplatform/issues/4407
9 months ago
Konstantin
0402c28803
[resources] Fix Res class generation if the library is declared as 'api' ( #4406 )
...
fixes https://github.com/JetBrains/compose-multiplatform/issues/4405
9 months ago
Konstantin
8ad5473ea5
[resources] Init resource accessors lazily and in external function to avoid MethodTooLargeException ( #4404 )
...
fixes https://github.com/JetBrains/compose-multiplatform/issues/4194
9 months ago
Konstantin
204a6f57bc
Support three letters locales ( #4394 )
9 months ago
Igor Demin
0c6904fc79
Merge remote-tracking branch 'origin/release/1.6.1'
...
# Conflicts:
# gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/ResourcesGenerator.kt
# gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/ResourcesSpec.kt
# gradle-plugins/compose/src/test/kotlin/org/jetbrains/compose/test/tests/integration/ResourcesTest.kt
# gradle-plugins/compose/src/test/test-projects/misc/commonResources/expected/Drawable0.kt
# gradle-plugins/compose/src/test/test-projects/misc/commonResources/expected/Font0.kt
# gradle-plugins/compose/src/test/test-projects/misc/commonResources/expected/String0.kt
# gradle-plugins/compose/src/test/test-projects/misc/hugeResources/build.gradle.kts
# gradle-plugins/compose/src/test/test-projects/misc/hugeResources/expected/Drawable0.kt
# gradle-plugins/compose/src/test/test-projects/misc/hugeResources/expected/Drawable1.kt
# gradle-plugins/compose/src/test/test-projects/misc/hugeResources/expected/Drawable2.kt
# gradle-plugins/compose/src/test/test-projects/misc/hugeResources/expected/String0.kt
# gradle-plugins/compose/src/test/test-projects/misc/hugeResources/expected/String1.kt
# gradle-plugins/compose/src/test/test-projects/misc/hugeResources/expected/String2.kt
# gradle-plugins/compose/src/test/test-projects/misc/hugeResources/src/commonMain/kotlin/App.kt
# gradle-plugins/compose/src/test/test-projects/misc/jvmOnlyResources/expected/Drawable0.kt
9 months ago
Konstantin Tskhovrebov
19331a8a02
Revert "[gradle] Add a flag to fix build on TeamCity with configuration caches enabled"
...
This reverts commit 5e0e03bef2
.
9 months ago
Igor Demin
94b3fd9239
Update bug_report.md (remove checkboxes) ( #4426 )
...
- they are represented as tasks
- users don't check them
9 months ago
Konstantin Tskhovrebov
5e0e03bef2
[gradle] Add a flag to fix build on TeamCity with configuration caches enabled
...
Error was:
> Listener registration 'Gradle.addListener' by build is unsupported.
9 months ago
Oleksandr Karpovich
ea161426f2
Remove coroutines version substitution for web targets ( #4369 )
...
All targets (including desktop and ios) now should use coroutines 1.8.0
___
According to COMPOSE-939
9 months ago
Konstantin
33482890a4
Add gradle "8.6" and AGP "7.3.1", "8.2.2" to the gradle plugin integration tests ( #4309 )
9 months ago
Konstantin
2e64180384
Fix package name of generated Res file when project is building for JsTarget ( #4295 ) ( #4300 )
...
Origin: https://github.com/JetBrains/compose-multiplatform/pull/4296
---------
Co-authored-by: Suhaib Roomy <suhaib.roomy@booking.com>
9 months ago
Oleksandr Karpovich
9709609fad
Refactor composable-test-cases to get rid of dependency on compose-multiplatform-gradle-plugin ( #4421 )
...
This is a preparation to move these tests to kotlin project.
Some neccessary parts were copy-pasted from our Compose Multiplatform
gradle plugin.
So `id("org.jetbrains.compose")` is not used anymore
9 months ago
Konstantin
bf8b8ec4a3
[resources] Fix resource packaging in APK when 'build' task is used with AGP 8.2+ ( #4408 )
...
fixes https://github.com/JetBrains/compose-multiplatform/issues/4407
9 months ago
Konstantin
7ce3063911
[resources] Fix Res class generation if the library is declared as 'api' ( #4406 )
...
fixes https://github.com/JetBrains/compose-multiplatform/issues/4405
9 months ago