Commit Graph

1752 Commits

Author SHA1 Message Date
dima.avdeev
a2c30ffa89 update submodule compose/frameworks/support to latest jb-main 2023-04-01 23:53:54 +04:00
Igor Demin
3ea177c71d Update Compose 2023-04-01 08:49:16 +02:00
Igor Demin
0e151c17c3 Update Compose 2023-03-31 19:53:34 +02:00
Oleksandr Karpovich
02bf0d0569 Update compose-web Dockerfile (#2942)
Update jdk version to 17
2023-03-31 14:33:27 +02:00
dima.avdeev
2d498598c9 ImageViewer material3 -> material (#2943) 2023-03-31 14:11:15 +03:00
dima.avdeev
45fa56eb76 clean compose/frameworks/support IDE files and temp files (#2949) 2023-03-31 11:14:43 +03:00
Nikolay Rykunov
5d3bfa2385 Update compose-multiplatform-core submodule after build script fixes 2023-03-30 19:50:07 +02:00
Nikolai Rykunov
6c01fceb32 Update compose-multiplatform-core submodule after Compose 1.4 merge (#2941) 2023-03-30 16:44:27 +02:00
Igor Demin
fb63908b5c Add multitouch to ImageViewer (#2935)
The code of `ScalableImage` is exactly the same as [here](https://github.com/JetBrains/compose-multiplatform-core/pull/459/files#diff-2df227d37a7fcdb885f4fd1a715c0efd94b8e206d446d553d69a456f83e284f6R19):

1. The initial size of an image is chosen by the area size (phone/windows size)

2. We can zoom using pinch-to-zoom (with taking centroid of touches into account)

3. We can zoom using mouse scroll (also, taking the mouse position into account). On touchpad/macOS it also works great.

4. The code of the old `ScalableState` and `ScalableImage` was complete rewritten.

5. The zoom is not limited by phone/window dimensions, we can zoom out
2023-03-30 11:03:32 +02:00
Ivan Matkov
23472c1ee1 ImageViewer example: Implement storing metadata on Android (#2938)
* Avoid scaling code duplication

* Move AndroidImageStorage into separate package

* Implement storing metadata on Android

* Move file extensions to separate class
2023-03-30 09:06:56 +02:00
dima.avdeev
89b73aa6ff ImageViewer sample, map API key instructions (#2937) 2023-03-29 15:07:29 +03:00
dima.avdeev
cbada1099f Add some features to sample (#2934) 2023-03-29 13:13:32 +03:00
dima.avdeev
9bceb4c873 update submodule compose/frameworks/support to latest jb-main 2023-03-29 03:18:59 +04:00
dima.avdeev
10526ca300 mavenLocal should be the first 2023-03-27 19:41:11 +04:00
Ivan Matkov
48288ea145 Fix selection in codeviewer example (#2898)
* Fix selection in codeviewer example

* Limit line count on view layer

* Fix last line ending

* Fix missing last empty line in file

* Refactor reading file

* Add extra endPosition condition

* Polish removing line endings
2023-03-24 10:14:46 +01: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
Igor Demin
f5b9dfc91d Update README.md 2023-03-17 15:05:48 +01:00
Sebastian Aigner
bd345cdbe0 Remove mavenLocal (#2884) 2023-03-15 14:28:03 +03:00
Vladimir Mazunin
b94ae4178e Image Viewer Camera (#2864) 2023-03-15 08:51:30 +03:00
dima.avdeev
88a8b6e56b update submodule compose/frameworks/support to latest jb-main 2023-03-13 14:07:13 +04: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
31823c50b6 imageviewer, device rotation 2023-03-10 10:25:14 +04:00
dima.avdeev
ad78a2495a update compose/frameworks/support to latest jb-main 2023-03-09 23:14:35 +04:00
Sebastian Aigner
2f9e886ea6 ImageViewer: Visual improvements (#2851) 2023-03-09 21:44:55 +03:00
Nikita Lipsky
21f74f92df Remove experimental templates, update READMEs with templates new locations (#2847)
+ replace "compose-jb" occurrences with "compose-multiplatform"
2023-03-09 11:40:36 +02:00
dima.avdeev
4cf574cc34 add UIKit MKMapView to ImageViewer (#2841) 2023-03-08 20:33:18 +03:00
dima.avdeev
aff9f0d285 fix todoapp-lite iOS (#2844) 2023-03-07 22:28:34 +03:00
Alexander Maryanovsky
e30379eb79 Disable validation of todoapp-lite until update to Compose 1.4.0 (#2842) 2023-03-07 20:49:18 +02:00
Nikita Lipsky
1be0cc105c Arrange samples to the latest multiplatform template (#2835) 2023-03-07 16:26:21 +02:00
dima.avdeev
b62ee1bd9a update submodule compose/frameworks/support to latest jb-main 2023-03-07 16:25:57 +04:00
dima.avdeev
bb461a6f65 Update enhancement.md 2023-03-07 11:34:31 +03:00
dima.avdeev
9cd9d0fe12 Update bug_report.md 2023-03-07 11:32:28 +03:00
Sebastian Aigner
364a916740 Various improvements for multiplatform template README (#2834) 2023-03-06 18:39:39 +03:00
dima.avdeev
3e610c5fdd ImageViewer notch (#2822) 2023-03-06 14:27:53 +03:00
Oleksandr Karpovich
294479d737 Add composable-test-cases project to check JB compose compiler for all targets (#2751)
* Add composable-test-cases project to check JB compose compiler for all targets

* Add README.MD

* Update README.MD

* Update README.MD

* Update CollectionOfComposablesTests

* Add a fun interface test case

* Add class constructors test cases

* Add anonymous objects test cases

* Add lambdas test cases

* Disable mingwX64 target for CI runs

* Update README.MD

* uncomment the getter in `val Project.isInIdea`

* Simplify GlobalSnapshotManager

Apparently some tests get stuck (timeout 60s) in jvm when running on CI. Every time it's a different test.

* add a partially failing test cases

`rememberAnonymousObj` fails with k/js, but works with other targets.

* try workaround tests timeout on CI

close the Channel in the end of a test

* Introduce fun RecompositionObserver.waitUntilChangesApplied

* Try runTest with UnconfinedTestDispatcher()

* remove Dispatchers.Default usage for recomposer

* revert "remove Dispatchers.Default usage for recomposer"

* pass test coroutine context to Recomposer

* add value class test cases

* add "same-module all-private" value class test case

* add a test case for value class with non-primitive property type

* value class: add a composable with a default value test case

* Update Readme
2023-03-06 11:05:34 +01:00
Sebastian Aigner
8db88534f9 Fix letter-spacing (override material design defaults back to 0.sp) (#2827) 2023-03-06 00:15:25 +03:00
dima.avdeev
5b1ce09372 fix runSwing launch from README 2023-03-04 20:34:32 +04:00
Ivan Matkov
fe7adf5666 Remove golden submodule (#2824)
* Remove golden submodule

* Update androidx submodule
2023-03-03 15:37:05 +01:00
Nikita Lipsky
f96b436d87 Wrap Compose baked UIViewController into SwiftUI instead of UIKit. (#2782)
- fixes also top bar appearance
- removed constant offset workaround as a result
2023-03-02 23:30:26 +03:00
Sebastian Aigner
2588c599ee First steps in implementing redesigned UI (#2817)
Co-authored-by: Sebastian.Aigner <Sebastian.Aigner@de-unit-1151.fritz.box>
2023-03-02 23:19:36 +03:00
Nikita Lipsky
02461457b7 Experimental multiplatform template fixup 2023-02-28 12:07:19 +02:00
Nikita Lipsky
fbd7b2be63 Correct README.md for experimental multiplatform template (#2795) 2023-02-28 12:04:37 +02: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
205d9c0d6f Add resources component to multiplatform template (#2796) 2023-02-24 18:20:41 +02:00
Nikita Lipsky
2cd92eed5c Add resources library to dependencies declared by compose gradle plugin (#2793)
* Add resources library to compose dependencies declared by compose gradle plugin

* Move resources component to CommonComponentsDependencies
2023-02-24 14:37:23 +02:00
Nikita Lipsky
5f08bfca16 Introduce Config.xсconfig (#2792)
- move APP_NAME (application name), BUNDLE_ID (bundle identifier) to Config.xcconfig

- add cleanup.sh script
2023-02-23 21:27:38 +02:00
Nikita Lipsky
c998ec50fc Revert "Introduce Config.xconfig"
This reverts commit e9009fe9bb.
2023-02-23 20:57:01 +02:00
Nikita Lipsky
e9009fe9bb Introduce Config.xconfig
- move APP_NAME (application name), BUNDLE_ID (bundle identifier) to Config.xcconfig

- add cleanup.sh script
2023-02-23 20:54:56 +02:00