Commit Graph

69 Commits

Author SHA1 Message Date
dima.avdeev
10526ca300 mavenLocal should be the first 2023-03-27 19:41:11 +04:00
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
2023-03-23 16:47:53 +02:00
dima.avdeev
35f0f72253 resources library minSdk 21 (#2911) 2023-03-23 14:52:21 +03:00
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
2023-03-10 09:53:41 +01:00
dima.avdeev
08e03e7c04 UIKit samples, change deprecated annotation @UIApplicationMain -> @main (#2800) 2023-02-27 13:02:30 +03:00
dima.avdeev
f6c36c3926 fix components project import with IDEA (#2799) 2023-02-25 21:46:49 +03:00
Nikita Lipsky
05ee5aef35 Add XML Vector Drawables to MacOS native target. (#2756) 2023-02-16 20:28:21 +02:00
Nikita Lipsky
614fe78d71 Add painterResource utility method to resource library. (#2753)
+ respect density in remembering state for ImageVector
2023-02-16 19:38:19 +02:00
Nikita Lipsky
2dd8d3223f Support for XML Vector Drawables in resources library. (#2749)
Support for XML Vector Drawables.
2023-02-15 16:32:54 +02:00
Nikita Lipsky
cc27bb68a6 Revert "Support for XML Vector Drawables."
This reverts commit 6060e86cbd.
2023-02-14 21:32:56 +02:00
Nikita Lipsky
6060e86cbd Support for XML Vector Drawables. 2023-02-14 21:22:03 +02:00
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
2023-01-30 21:02:23 +01:00
dima.avdeev
75f4f1dee4 add mavenLocal to components (#2516) 2022-11-29 16:24:53 +03:00
Alexey Tsvetkov
297eeacfc2 Configure repositories for all modules (#2510) 2022-11-28 13:28:21 +01:00
dima.avdeev
0807d06e5d [resources] Missing fixes with Classloader (#2490) 2022-11-22 21:55:53 +03:00
dima.avdeev
13d1de302c [components/resources] add resource("img.png"). rememberImageBitmap() (#2483) 2022-11-22 15:52:48 +03:00
Igor Demin
63846c63c0 Compose 1.2.1 (#2453) 2022-11-07 14:46:37 +01:00
Igor Demin
4ee708c598 Upgrade examples to Compose 1.2.0 2022-10-11 21:20:53 +02:00
Igor Demin
37e33fba29 Compose 1.2.0-rc02 2022-10-11 17:49:48 +02:00
Igor Demin
7ad4492f43 Migrate to 1.2.0-rc01 (#2382) 2022-10-10 16:40:04 +02:00
Igor Demin
5d67a73f80 Update Kotlin version 2022-10-03 01:56:58 +02:00
Igor Demin
9fa322a3ee Upgrade to 1.2.0-beta02 2022-10-03 01:51:23 +02:00
Igor Demin
a208ecba73 Upgrade to 1.2.0-beta01 2022-09-30 19:26:10 +02:00
Verminskiy Vladislav
d80331834c Update SplitPaneDSL.kt (#2196)
It is look likes mistake in documentation for placements first and second component in the  horizontal pane
2022-07-23 15:14:07 +04:00
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
2022-07-07 19:10:04 +02:00
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
2022-07-07 18:53:33 +02:00
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
2022-05-05 15:30:03 +03:00
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)
2022-04-29 16:46:48 +03:00
Igor Demin
15f8b0bbd3 Revert Kotlin to 1.6.10
Version of Kotlin should be compatible with Compose that is set in gradle.properties
2022-04-29 16:33:55 +04:00
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
2022-04-29 13:57:15 +03:00
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>
2022-04-20 15:33:01 +02:00
Igor Demin
713f687b02 SplitPane. Remove material dependency (#1979)
SplitPane by design, shouldn't have default visual representation, because it mostly depends on the design system (material, material3, etc)

Fixes https://github.com/JetBrains/compose-jb/issues/1975

RelNote:
SplitPane no longer depends on compose.material. Now, by default, SplitPane has invisible 0px splitter, not 1px black/white splitter as it was before. If you want to preserve the previous behaviour, specify a splitter explicitly:
```
HorizontalSplitPane(splitterState) {
    splitter {
        visiblePart {
            Box(
                Modifier
                    .height(1.dp)
                    .fillMaxHeight()
                    .background(MaterialTheme.colors.background)
            )
        }
    }
}
```
2022-04-11 11:47:45 +03:00
Nikolay Igotti
4af260d36a Move to 1.1.0 (#1882)
Co-authored-by: Roman Sedaikin <roman.sedaikin@jetbrains.com>
Co-authored-by: Igor Demin <igordmn@gmail.com>
2022-02-25 20:48:49 +03:00
Alexey Tsvetkov
f3a403b321 Additional CI fixes (#1696)
* Fix components script compilation

* Add script to run Gradle with Compose properties set up

It's useful for running a single task in
the included Compose build.

* Set default JVM target to 11 if it is lower

* Update Compose submodule
2022-01-14 20:19:53 +03:00
Alexey Tsvetkov
8ff2a324b6 More CI fixes (#1649)
* Update Kotlin in SplitPane component

* Use skiko-awt-* artifacts instead of skiko-jvm-*
2021-12-30 09:32:56 +03:00
Alexey Tsvetkov
11918f3e8a Fix MPP CI issues (#1645)
* Fix compilation of SplitPane

* Fix Gradle tests
2021-12-30 09:29:25 +03:00
Alexey Tsvetkov
8e335c9d21 Switch main components build to Gradle 7.3.3 (#1643)
Using one version of Gradle improves build
performance and dev experience by
reusing Gradle daemons, using less storage
& copying for Gradle cache, etc
2021-12-30 09:26:37 +03:00
Oleksandr Karpovich
e902beeece release 1.0.1-rc2 with 1.6.10 (#1590)
* move to kotlin 1.6.10-RC and corresponding compose commit

* Update path to the karma plugin we are patching

* Add ExperimentalComposeWebStyleApi

what worries me that this actually shows that there are some cases where without any changes apart version compiler people will have to worry about such annotations

* update kotlin version in templates to adopt 1.6.10-RC

* web: move ComposableWithNullableTypeParameter.kt to passing test cases

* update kotlin version in other places

* update imageviewer example: add OptIn for experimental API

* move compose

* move to kotlin 1.6.10 and corresponding compose

* move to kotlin 1.6.10 and corresponding compose

* move to 1.0.1-rc2

* move to 1.0.1-rc2 (todoapp)

Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
Co-authored-by: Shagen Ogandzhanian <shagen.ogandzhanian@jetbrains.com>
2021-12-14 15:19:20 +01:00
Igor Demin
dbd0a21949 Modify replace.sh for replacing Compose version (#1511)
Remove:
```
__LATEST_COMPOSE_RELEASE_VERSION__
__KOTLIN_COMPOSE_VERSION__
System.getenv("COMPOSE_TEMPLATE_COMPOSE_VERSION")
```

They pollute templates/examples.

Now, all paths where we need to change the version are hardcoded in the script.

Usage:
```
./replace.sh 1.0.0-rc6
```

This script is planned to run on CI

In the future I will add support for changing Kotlin version
2021-12-08 10:32:18 +03:00
Igor Demin
559e9364f1 Move examples to 1.0.0 (#1524) 2021-12-01 20:23:48 +03:00
Igor Demin
21473b13f1 Move to 1.0.0-rc12 (#1518)
* Move build_from_cli

* Migrate to 1.0.0-rc12

* Comment about LWJGL

* Update Tutorials
2021-12-01 15:37:02 +03:00
Nikolay Igotti
4589805fc0 Use 1.0.0-beta1 in components 2021-10-25 10:38:03 +03:00
Igor Demin
b9b9e3438b Move cef and videoplayer to experimental folder (#1277)
Only experimental/components/settings.gradle.kts is copied with changes, the rest is copied without changes
2021-10-19 19:00:34 +03:00
akurasov
064e3ed3d4 updating components and tutorials to latest Compose API 2021-10-07 17:58:25 +03:00
Igor Demin
5db79e49b6 Fix components compilation 2021-09-28 11:10:34 +03:00
Igor Demin
eb7d618042 Fix components compilation 2021-09-28 10:54:00 +03:00
Igor Demin
6fe8be049d Miggrate to 1.0.0-alpha4-build362 (#1205) 2021-09-28 10:38:21 +03:00
Nikolay Igotti
86bf3115b5 Sync/2021 09 27 (#1203) 2021-09-27 18:03:34 +03:00
Igor Demin
a8bc62c519 Migrate to 1.0.0-alpha4-build328 2021-08-27 23:29:58 +03:00
Igor Demin
c9a7b15e86 Migrate to Kotlin 1.5.30 2021-08-27 20:40:51 +03:00