Chanjung Kim
7f3db17c1c
Rename properties of GeneratePluralRuleListsTask
10 months ago
Konstantin Tskhovrebov
bb419dd1e5
[resources] Add autogenerated plural rules under git tracking
10 months ago
Konstantin Tskhovrebov
b7e3059283
[gradle] Refactor resource parser and update test data.
10 months ago
Chanjung Kim
5df675ef35
Add pluralization condition optimization
10 months ago
Chanjung Kim
95f7314f62
Share PluralRuleList with languages with the same rule
10 months ago
Chanjung Kim
700393edf2
Rename QuantityStringResource to PluralStringResource for consistency
10 months ago
Chanjung Kim
864237e89c
Remove redundant comments
10 months ago
Chanjung Kim
b341df41e2
Add more tests for pluralization
10 months ago
Chanjung Kim
6570cd3e08
Parse without using String.split
10 months ago
Chanjung Kim
d0eea88e2b
Add unit tests for pluralization rules
10 months ago
Chanjung Kim
c2ca9488e5
Fix LDML range parsing
10 months ago
Chanjung Kim
7413a2249e
Determine PluralCategory by current environment
10 months ago
Chanjung Kim
656872aadb
Generate Kotlin arrays containing pluralization rules during build
10 months ago
Chanjung Kim
a9904faf64
Copy plurals.xml from Unicode CLDR
10 months ago
Chanjung Kim
5a3a9747ac
feat: Add QuantityStringResource and pluralStringResource
10 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
}
```
10 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
10 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.
10 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.
10 months ago
Igor Demin
9ac23ae93e
Compose 1.6.1 examples ( #4480 )
10 months ago
Igor Demin
8d17f4e7c2
Update CHANGELOG.md (1.6.1) ( #4477 )
...
Co-authored-by: Ivan Matkov <ivan.matkov@jetbrains.com>
10 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
10 months ago
Igor Demin
399e482d3b
Merge remote-tracking branch 'origin/release/1.6.1'
10 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
10 months ago
Pavel Shishkin
3de2f3bfbe
update compose compiler version to 1.5.10.1 ( #4474 )
...
Fixes https://github.com/JetBrains/compose-multiplatform/issues/4455
10 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
10 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`
10 months ago
Ivan Matkov
de432c9291
[1.6.0 CHANGELOG] Add info about known Popup shadows limitation ( #4465 )
...
Related to #4460
10 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)
10 months ago
Pavel Shishkin
1f9664c068
Merge branch 'release/1.6.1'
10 months ago
Shishkin Pavel
730e368de7
update compiler version to 1.5.10 ( #4452 )
10 months ago
Konstantin
52c4bf3b1f
[example] Migrate the image viewer on the new compose resources ( #4433 )
10 months ago
Igor Demin
71e0c92673
Merge remote-tracking branch 'origin/release/1.6.1'
10 months ago
Konstantin Tskhovrebov
70aa35bfb5
[gradle] Disable parallel tests run for gradle tests
10 months ago
Konstantin Tskhovrebov
ea9d432245
[gradle] Run gradle tests in parallel but not concurrently
...
otherwise it kills CI agents
10 months ago
Konstantin Tskhovrebov
9e753b033b
[gradle] Run gradle tests in parallel
10 months ago
Igor Demin
75be9d1c65
Merge remote-tracking branch 'origin/release/1.6.1'
10 months ago
Konstantin Tskhovrebov
eabd836b35
[ci] Update android cmd tools to latest and platform to 34 in the docker for gradle tests
10 months ago
Konstantin Tskhovrebov
f6c81307b8
[gradle] Disable parallel tests run for gradle tests
10 months ago
Konstantin Tskhovrebov
f07e220f72
[gradle] Run gradle tests in parallel but not concurrently
...
otherwise it kills CI agents
10 months ago
Konstantin Tskhovrebov
5244b8a866
[gradle] Run gradle tests in parallel
10 months ago
Konstantin Tskhovrebov
c3c7ba3ccb
[ci] Update android cmd tools to latest and platform to 34 in the docker for gradle tests
10 months ago
Igor Demin
02026d20c8
Merge remote-tracking branch 'origin/release/1.6.1'
10 months ago
Konstantin Tskhovrebov
376cdb42d4
Revert "[gradle] Add a flag to fix build on TeamCity with configuration caches enabled"
...
This reverts commit 5e0e03bef2
.
10 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.
10 months ago
Konstantin
e9c11b0a92
Add gradle "8.6" and AGP "7.3.1", "8.2.2" to the gradle plugin integration tests ( #4309 )
10 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>
10 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
10 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
10 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
10 months ago