Konstantin
0d0e133e86
[gradle] Add DSL to configure compose resources ( #4482 )
...
Example:
```kotlin
compose.resources {
publicResClass = true
packageOfResClass = "me.sample.library.resources"
generateResClass = auto
}
```
3 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
3 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
3 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>
4 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
4 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
4 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
4 months ago
Konstantin
204a6f57bc
Support three letters locales ( #4394 )
4 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>
4 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
4 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
4 months ago
Konstantin
ca3ae45516
[resources] Init resource accessors lazily and in external function to avoid MethodTooLargeException ( #4404 )
...
fixes https://github.com/JetBrains/compose-multiplatform/issues/4194
4 months ago
Konstantin
f833fa9945
Support three letters locales ( #4394 )
4 months ago
Konstantin
55cc437465
Fix import android flavors with compose resources ( #4319 )
...
fixes https://github.com/JetBrains/compose-multiplatform/issues/4318
4 months ago
Konstantin
8f2fa296fe
Fix import android flavors with compose resources ( #4319 )
...
fixes https://github.com/JetBrains/compose-multiplatform/issues/4318
4 months ago
Konstantin
cc0e18474a
Fix resource accessors compilation when there are huge number of resource files. ( #4294 )
...
Instead of object properties there are being generated extension
properties in different files.
fixes https://github.com/JetBrains/compose-multiplatform/issues/4285
4 months ago
Konstantin
a73f8fa7c9
Fix resource accessors compilation when there are huge number of resource files. ( #4294 )
...
Instead of object properties there are being generated extension
properties in different files.
fixes https://github.com/JetBrains/compose-multiplatform/issues/4285
4 months ago
Konstantin
fbf5dbe20f
Fix fonts duplication in android app. ( #4284 )
4 months ago
Konstantin
a0601c3024
Register all hierarchical compose resources in android compilation ( #4274 )
5 months ago
Konstantin
2b12d57008
Configure android variants the correct way instead of the hack with 'dependsOn' ( #4264 )
5 months ago
Konstantin
8ee7531c42
Clean code-gen directory if there was deleted a dependency on the res library ( #4257 )
...
fixes https://github.com/JetBrains/compose-multiplatform/issues/4242
5 months ago
Konstantin
d6b8681b22
Don't make resource IDs lowercased ( #4253 )
5 months ago
Konstantin
b8be217dad
Configure explicit dependency on the copyFonts task to fix a build ( #4247 )
5 months ago
Konstantin
a6b8b50423
Add a type name to the resource initializers ( #4240 )
...
to avoid "Overload resolution ambiguity" for different resources with a
same name
https://github.com/JetBrains/compose-multiplatform/issues/4237
5 months ago
Konstantin
b1e86ade36
Generate initializer functions in the Res file to avoid the MethodTooLargeException ( #4205 )
5 months ago
Konstantin Tskhovrebov
ee26bf8bee
Use "project.findProperty" instead of "providers.valueOrNull" to fix sub-module gradle properties for res class generation
5 months ago
Konstantin
2e354eba3a
Support compose resources for ios tests ( #4185 )
5 months ago
Konstantin
2b8c35e16c
Support Res class generation in JVM only compose projects ( #4183 )
5 months ago
Konstantin
fbab715c20
Generate Res class if there is no common composeResource dir ( #4176 )
5 months ago
Konstantin
3040ea85bb
Configure android resources after the agp is applied and ignore hidden files in resources
5 months ago
Konstantin
c31c761e09
Mark all resources public API as experimental. ( #4146 )
...
And all public but only for generated code API as @InternalResourceApi
5 months ago
Konstantin
747aab02f3
Introduce top level composeResources dir ( #4127 )
5 months ago
Konstantin
8955e66eac
Introduce a 'composeResources/files' directory for any files. ( #4079 )
...
Introduce a 'composeResources/files' directory for any files.
6 months ago
Konstantin
27915cbc0f
Get environment and select resource by qualifiers ( #4018 )
6 months ago
Konstantin Tskhovrebov
dfaeced984
Handle a case when a module group name is empty in Gradle Plugin.
...
And change error reporting to warning for unknown resource type
7 months ago
Konstantin Tskhovrebov
c867c68364
Add support for a dash character and digit on first place in resource names
7 months ago
Konstantin
181bfd1612
Resources gradle plugin ( #3961 )
7 months ago