xzk
7c0dcfb8f5
Add option to disable compose resources generation ( #4526 )
...
# Changes
* Add `Never` to `enum class ResourceClassGeneration` to disable the
generation of Res class in the gradle plugin
# Motivation
As the [comment in issue
4229](https://github.com/JetBrains/compose-multiplatform/issues/4229#issuecomment-2008626808 )
said, my team is not in the ecosystem of gradle, but organize the build
steps in bazel. We want to follow the files layout but just disable the
generation task of gradle and handle it by outself.
2 months ago
Konstantin Tskhovrebov
5f67523bc1
[gradle] Remove custom kotlin version from gradle test project.
2 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
}
```
2 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
2 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
e9c11b0a92
Add gradle "8.6" and AGP "7.3.1", "8.2.2" to the gradle plugin integration tests ( #4309 )
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>
3 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
3 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
3 months ago
Konstantin
204a6f57bc
Support three letters locales ( #4394 )
3 months ago
Konstantin
33482890a4
Add gradle "8.6" and AGP "7.3.1", "8.2.2" to the gradle plugin integration tests ( #4309 )
3 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>
3 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
3 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
3 months ago
Konstantin
f833fa9945
Support three letters locales ( #4394 )
3 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 )
4 months ago
Konstantin
2b12d57008
Configure android variants the correct way instead of the hack with 'dependsOn' ( #4264 )
4 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
4 months ago
Konstantin
b8be217dad
Configure explicit dependency on the copyFonts task to fix a build ( #4247 )
4 months ago
Konstantin
84e52986dc
Relocate a bundled KotlinPoet to the internal package
4 months ago
Konstantin
b1e86ade36
Generate initializer functions in the Res file to avoid the MethodTooLargeException ( #4205 )
4 months ago
Konstantin
2b8c35e16c
Support Res class generation in JVM only compose projects ( #4183 )
4 months ago
Konstantin
fbab715c20
Generate Res class if there is no common composeResource dir ( #4176 )
4 months ago
Konstantin
3040ea85bb
Configure android resources after the agp is applied and ignore hidden files in resources
4 months ago
Konstantin
747aab02f3
Introduce top level composeResources dir ( #4127 )
4 months ago
Konstantin
8955e66eac
Introduce a 'composeResources/files' directory for any files. ( #4079 )
...
Introduce a 'composeResources/files' directory for any files.
5 months ago
Konstantin
27915cbc0f
Get environment and select resource by qualifiers ( #4018 )
5 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
6 months ago
Konstantin Tskhovrebov
94bda44b86
Fix ResourcesTest
6 months ago
Konstantin Tskhovrebov
c867c68364
Add support for a dash character and digit on first place in resource names
6 months ago
Konstantin
181bfd1612
Resources gradle plugin ( #3961 )
6 months ago