Konstantin Tskhovrebov
ef8cd58cfe
[gradle] Temporary revert of gradle changes.
...
Waiting a new dev version of the library
8 months ago
Chanjung Kim
877fbcc2b0
Fallback to `other` pluralization when the right one not found
8 months ago
Chanjung Kim
7f3db17c1c
Rename properties of GeneratePluralRuleListsTask
8 months ago
Konstantin Tskhovrebov
bb419dd1e5
[resources] Add autogenerated plural rules under git tracking
8 months ago
Konstantin Tskhovrebov
b7e3059283
[gradle] Refactor resource parser and update test data.
8 months ago
Chanjung Kim
5df675ef35
Add pluralization condition optimization
8 months ago
Chanjung Kim
95f7314f62
Share PluralRuleList with languages with the same rule
8 months ago
Chanjung Kim
700393edf2
Rename QuantityStringResource to PluralStringResource for consistency
8 months ago
Chanjung Kim
864237e89c
Remove redundant comments
8 months ago
Chanjung Kim
b341df41e2
Add more tests for pluralization
8 months ago
Chanjung Kim
6570cd3e08
Parse without using String.split
8 months ago
Chanjung Kim
d0eea88e2b
Add unit tests for pluralization rules
8 months ago
Chanjung Kim
c2ca9488e5
Fix LDML range parsing
8 months ago
Chanjung Kim
7413a2249e
Determine PluralCategory by current environment
9 months ago
Chanjung Kim
656872aadb
Generate Kotlin arrays containing pluralization rules during build
9 months ago
Chanjung Kim
a9904faf64
Copy plurals.xml from Unicode CLDR
9 months ago
Chanjung Kim
5a3a9747ac
feat: Add QuantityStringResource and pluralStringResource
9 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
}
```
9 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
9 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.
9 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.
9 months ago
Igor Demin
9ac23ae93e
Compose 1.6.1 examples ( #4480 )
9 months ago
Igor Demin
8d17f4e7c2
Update CHANGELOG.md (1.6.1) ( #4477 )
...
Co-authored-by: Ivan Matkov <ivan.matkov@jetbrains.com>
9 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
9 months ago
Igor Demin
399e482d3b
Merge remote-tracking branch 'origin/release/1.6.1'
9 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
9 months ago
Pavel Shishkin
3de2f3bfbe
update compose compiler version to 1.5.10.1 ( #4474 )
...
Fixes https://github.com/JetBrains/compose-multiplatform/issues/4455
9 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