Konstantin
5cc685c1dc
Use regular icons instead of extended to fix build
1 year ago
Konstantin
7505624aa0
Use separate cache dispatchers with limited parallelism ( #3929 )
1 year ago
Konstantin
1be81af584
Dispatch image cache manipulation to the cache dispatcher ( #3921 )
1 year ago
Konstantin
5d1eb9a3f5
Support bitmap/vector images, strings, fonts and raw resource loading.
...
Limitation: for a correct work on the android user is supposed to copy a font file to the android asset directory
1 year ago
dima.avdeev
15e8e2185b
components project, hotfix compose.useMavenLocal property
1 year ago
dima.avdeev
9773115403
Add mavenLocal to components project ( #3906 )
...
We have scripts in compose/README.md
These scripts needs mavenLocal to correcty build local version of all
Compose libraries
1 year ago
Konstantin
2692cb320d
Update Kotlin, dependencies and build scripts ( #3835 )
1 year ago
Oleksandr Karpovich
73802292ce
CfW: Allow web resource routing configuration ( #3852 )
...
This commit changes the default resource routing behaviour:
- It used to search for a file in the root directory (on a domain level)
- After this change, it will search for a file relatively to the current
url segment
Besides that, we add a small configuration to let developers change the
default behaviour when needed.
___
usage examples:
```kotlin
// 1
configureWebResources {
setResourceFactory { path -> urlResource("/myApp1/resources/$path") }
}
// 2
configureWebResources {
setResourcelFactory { path -> urlResource("https://mycdn.com/myApp1/res/$path ") }
}
```
___
This will fix https://github.com/JetBrains/compose-multiplatform/issues/3413 (currently it bothers our users)
1 year ago
Nikolai Rykunov
93a8316226
Remove kotlin.native.cacheKind=none ( #3674 )
1 year ago
Igor Demin
a609db563a
Components. Downgrade to Kotlin 1.8.22 ( #3390 )
...
Dowgrading to Kotlin 1.8 will allow to use `components` in Kotlin 1.8 and Kotlin 1.9 projects (iOS, JS targets). Now it is supported only in Kotlin 1.9 projects.
1 year ago
Igor Demin
9f118d39d2
Components. Fix Its usage must be marked with '@kotlinx.cinterop.ExperimentalForeignApi' ( #3383 )
...
* Components. Fix Its usage must be marked with '@kotlinx.cinterop.ExperimentalForeignApi'
https://teamcity.jetbrains.com/buildConfiguration/JetBrainsPublicProjects_Compose_Publish_2_AllGitHubRelease/4238435?buildTab=dependencies&mode=list&state=failed&type=snapshot&hideProblemsFromDependencies=false&hideTestsFromDependencies=false&expandBuildProblemsSection=true&showLog=4238425_373_267&logFilter=debug&logView=flowAware#4238426
Kotlin 1.9 broke source compatibility for native targets, usePinned is now experimental
* macOs
1 year ago
Igor Demin
46e8549a52
Components. Fix Mismatched @Composable annotation between expect and actual declaration ( #3381 )
...
https://teamcity.jetbrains.com/buildConfiguration/JetBrainsPublicProjects_Compose_Publish_2_AllGitHubRelease/4237900?hideProblemsFromDependencies=false&hideTestsFromDependencies=false&expandBuildChangesSection=true&expandBuildTestsSection=false&expandBuildProblemsSection=true&showLog=4237891_234_144&logFilter=debug&logView=flowAware
There was a mistake in commonMain/AnimatedImage.kt that can be caught in compile-time with Kotlin 1.9
1 year ago
Igor Demin
06bcb1c680
Components. Fix `KotlinSourceSet with name 'androidTest' not found.` on Kotlin 1.9.0 ( #3375 )
...
FAILURE: Build failed with an exception.
* Where:
Build file '/mnt/agent/work/eef8b9c316a53dd6/components/resources/library/build.gradle.kts' line: 66
`androidTest` was deprecated: https://kotlinlang.org/docs/whatsnew18.html#kotlin-multiplatform-a-new-android-source-set-layout
* What went wrong:
KotlinSourceSet with name 'androidTest' not found.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 24s
Process exited with code 1
See https://teamcity.jetbrains.com/buildConfiguration/JetBrainsPublicProjects_Compose_Publish_2_AllGitHubRelease/4237033?buildTab=dependencies&mode=list&state=failed&type=snapshot&hideProblemsFromDependencies=false&hideTestsFromDependencies=false&expandBuildProblemsSection=true#4237024
## Testing
./gradlew resources:library:test
1 year ago
Igor Demin
881b48b89d
Revert "Components. Fix `KotlinSourceSet with name 'androidTest' not found.` on Kotlin 1.9.0"
...
This reverts commit 1d0e8ded91
.
1 year ago
Igor Demin
1d0e8ded91
Components. Fix `KotlinSourceSet with name 'androidTest' not found.` on Kotlin 1.9.0
...
FAILURE: Build failed with an exception.
* Where:
Build file '/mnt/agent/work/eef8b9c316a53dd6/components/resources/library/build.gradle.kts' line: 66
`androidTest` was deprecated: https://kotlinlang.org/docs/whatsnew18.html#kotlin-multiplatform-a-new-android-source-set-layout
* What went wrong:
KotlinSourceSet with name 'androidTest' not found.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 24s
Process exited with code 1
See https://teamcity.jetbrains.com/buildConfiguration/JetBrainsPublicProjects_Compose_Publish_2_AllGitHubRelease/4237033?buildTab=dependencies&mode=list&state=failed&type=snapshot&hideProblemsFromDependencies=false&hideTestsFromDependencies=false&expandBuildProblemsSection=true#4237024
## Testing
./gradlew resources:library:test
1 year ago
Alexey Tsvetkov
16114b2f0f
Simplify resource management for iOS ( #3340 )
...
* Simplify resource management for iOS
Introduces new a new task 'sync<FRAMEWORK_CLASSIFIER>ComposeIosResources',
which collects resources from all source sets, included in iOS targets.
With this change:
* CocoaPods integration does not require any configuration or calling 'pod install' after changing resources.
* Important: existing projects need to remove 'extraSpecAttributes["resources"] = ...' from build scripts, and rerun `./gradlew podInstall` once!
* Without CocoaPods, the resource directory should be added to XCode build phases once.
Resolves #3073
Resolves #3113
Resolves #3066
1 year ago
Igor Demin
bf4130cfab
Compose 1.4.1 docs, examples ( #3287 )
...
* Compose 1.4.1
* Remove compose-integration from replaceVersion.sh
1 year ago
mdigman
62e5f1edad
Add Xml parsing support to js platform ( #3105 )
...
* First pass at adding Xml parsing support to js platform
Likely still need to add tests and samples
* Add JS to Parser Node and Element converter
Mirrors native impl by returning empty strings when content is unavailable
Moves MalformedXMLException out of native code, useful for common case.
* Remove unneeded null checks in Parser
Last commit handled null management
* Add newlines for code linter
* Fix namespaceUri bug
Undo accidental capture of localName
Also remove unneeded null check
* Undo grade.properies change
Had to disable webpack version number property to run sample
* Clean up NodeImpl comments
Corrected description
* Make NodeList impl lazy
Generates only when needed, serves cache after
2 years ago
dima.avdeev
76f000611d
Update examples to Compose 1.4.0 ( #3042 )
2 years ago
dima.avdeev
10526ca300
mavenLocal should be the first
2 years ago
Alexander Maryanovsky
36616f877c
SplitPane improvements and fixes. ( #2886 )
...
* SplitPane improvements and fixes.
- Allow SplitPane to receive exact incoming size constraints
- Correctly abide by constraint on minimum size for "second part"
- Simplify layout code
2 years ago
dima.avdeev
35f0f72253
resources library minSdk 21 ( #2911 )
2 years ago
Oleksandr Karpovich
0b429b6ac9
Update all versions for 1.3.1 + update Changelog ( #2856 )
...
* Add changes for 1.3.1 + update Changelog
Versions:
compose 1.3.1
kotlin 1.8.10
compiler: 1.4.2
* revert version update in experimental examples
* Update CHANGELOG.md
2 years ago
dima.avdeev
08e03e7c04
UIKit samples, change deprecated annotation @UIApplicationMain -> @main ( #2800 )
2 years ago
dima.avdeev
f6c36c3926
fix components project import with IDEA ( #2799 )
2 years ago
Nikita Lipsky
05ee5aef35
Add XML Vector Drawables to MacOS native target. ( #2756 )
2 years ago
Nikita Lipsky
614fe78d71
Add painterResource utility method to resource library. ( #2753 )
...
+ respect density in remembering state for ImageVector
2 years ago
Nikita Lipsky
2dd8d3223f
Support for XML Vector Drawables in resources library. ( #2749 )
...
Support for XML Vector Drawables.
2 years ago
Nikita Lipsky
cc27bb68a6
Revert "Support for XML Vector Drawables."
...
This reverts commit 6060e86cbd
.
2 years ago
Nikita Lipsky
6060e86cbd
Support for XML Vector Drawables.
2 years ago
Oleksandr Karpovich
bc6d42ef44
Update versions: compose - 1.3.0 and kotlin - 1.8.0 ( #2651 )
...
* Update versions in examples
* Add more scripts to validate example on android and k/js
* Add validateExamplesIos.sh
* Update CHANGELOG.md for 1.3.0
* check examples with 1.3.0-rc06
* Update the versions: compose-multiplatform - 1.3.0, kotlin - 1.8.0
* Update ComposeCompilerCompatibility (1.4.0)
* Update web/yarn.lock
2 years ago
dima.avdeev
75f4f1dee4
add mavenLocal to components ( #2516 )
2 years ago
Alexey Tsvetkov
297eeacfc2
Configure repositories for all modules ( #2510 )
2 years ago
dima.avdeev
0807d06e5d
[resources] Missing fixes with Classloader ( #2490 )
2 years ago
dima.avdeev
13d1de302c
[components/resources] add resource("img.png"). rememberImageBitmap() ( #2483 )
2 years ago
Igor Demin
63846c63c0
Compose 1.2.1 ( #2453 )
2 years ago
Igor Demin
4ee708c598
Upgrade examples to Compose 1.2.0
2 years ago
Igor Demin
37e33fba29
Compose 1.2.0-rc02
2 years ago
Igor Demin
7ad4492f43
Migrate to 1.2.0-rc01 ( #2382 )
2 years ago
Igor Demin
5d67a73f80
Update Kotlin version
2 years ago
Igor Demin
9fa322a3ee
Upgrade to 1.2.0-beta02
2 years ago
Igor Demin
a208ecba73
Upgrade to 1.2.0-beta01
2 years ago
Verminskiy Vladislav
d80331834c
Update SplitPaneDSL.kt ( #2196 )
...
It is look likes mistake in documentation for placements first and second component in the horizontal pane
2 years ago
Ilya Ryzhenkov
010576557f
Fix split panel ( #2175 )
...
* Fix ignoring modifier when one of the parts is missing
* Fix ignoring density for min size when measuring
* Fix a copypasta for secondMinSizePx
2 years ago
Ilya Ryzhenkov
7fbbdd8eca
Fix AnimatedImage component ( #2174 )
...
* Fix and optimize image animation for 0 and 1 frames
* Change default frame duration to 10fps to match those of a browser
* Fix zero-size image with ImageBitmap.Blank
2 years ago
Abdelilah El Aissaoui
907b657c89
Docs to AnimatedImage public methods ( #2050 )
...
* Added additional docs to public methods
* Replaced parent with caller
* Updated AnimatedImage docs
* Replaced path with image
3 years ago
Igor Demin
4ff361bd62
Components. AnimatedImage. Fix 'load' function. ( #2043 )
...
Passed to 'load' lambda can change every recomposition (it depends on variables which are captured inside it)
3 years ago
Igor Demin
15f8b0bbd3
Revert Kotlin to 1.6.10
...
Version of Kotlin should be compatible with Compose that is set in gradle.properties
3 years ago
Abdelilah El Aissaoui
96f0d98d27
Added animated image component ( #2015 )
...
* Added animated image component
* Simplified network request
* Resource load is now done in the IO Dispatchers
* Renamed constant to express better its use
* Refactored animated image component to use the default Image component instead of creating our own component
* Added missing keys
* Created new module resources & adapted AnimatedImage to it
3 years ago
Oleksandr Karpovich
e69ac23dbf
Move compose + use kotlin 1.6.21 ( #2025 )
...
* Move compose
* Update kotlin version to 1.6.20
* Move compose + Update kotlin version to 1.6.21
* Move compose to include a fix for compose plugin (kjs specific)
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago