Commit Graph

108 Commits

Author SHA1 Message Date
dima.avdeev
1c5da4c332 change old UIKitInteropView to UIKitView (#2968) 2023-04-04 11:51:52 +03:00
dima.avdeev
2cea802cec ImageViewer delete, edit and share memories (#2957) 2023-04-03 16:21:20 +03:00
dima.avdeev
b87868d75e Workaround for Android emulator camera on some hardware (#2955) 2023-04-03 14:35:27 +03:00
dima.avdeev
327cdac3e5 Update experimental examples to dev1004 (#2954) 2023-04-03 08:38:54 +03:00
dima.avdeev
c024327579 ImageViewer, little change in gps coordinate 2023-04-02 13:11:48 +04:00
dima.avdeev
2d498598c9 ImageViewer material3 -> material (#2943) 2023-03-31 14:11:15 +03: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
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
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
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
Nikita Lipsky
1be0cc105c Arrange samples to the latest multiplatform template (#2835) 2023-03-07 16:26:21 +02: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
Sebastian Aigner
8db88534f9 Fix letter-spacing (override material design defaults back to 0.sp) (#2827) 2023-03-06 00:15:25 +03: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
Nikita Lipsky
205d9c0d6f Add resources component to multiplatform template (#2796) 2023-02-24 18:20:41 +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
Sebastian Aigner
8a635b6f96 ImageViewer: "Memories" view for ImageViewer, Stack-based Navigation, StateFlow-based Image Provider (#2789) 2023-02-23 20:31:15 +03:00
Nikita Lipsky
8ed753b1b9 Add iOS target to multiplatform template (#2788)
+ conform KMM wizard generated project structure and samples
2023-02-23 19:28:25 +02:00
Nikita Lipsky
6a56bdaa55 Copy templates to experimental as is ... (#2786)
... to add iOS target later
2023-02-22 19:38:22 +02:00
dima.avdeev
9e8a138a2f fix typo ChatViewController (#2768) 2023-02-20 18:54:52 +03:00
Sebastian Aigner
e34f9c93da Move examples to V2 Source Set Layout (#2765) 2023-02-20 11:00:19 +03:00
dima.avdeev
a1cb760b7c Compose inside SwiftUI example (#2755) 2023-02-19 20:03:59 +03:00
Nikita Lipsky
0d0c9f64d3 ImageViewer: use painterResource from resource library. (#2761) 2023-02-17 16:04:07 +02:00
Sebastian Aigner
0dfba6086b Visual refresh for experimental Image Viewer (#2748)
* Design changes; move to material3

* Use animations to move between different images

* More design changes, rounded corners and animations

* Introduce square gallery view, start with granularizing state management

* Introduce square gallery view, start with granularizing state management

* Make PreviewImage not depend on the whole gallery state

* Move in initialization logic from composition into launched effect

* Highlight currently selected image

* Hoist state for FullscreenImage TopAppBar
Move from Custom Implementation to Material App Bar, use color scheme from main page
Extract hardcoded colors to ImageViewerColors

* Provide floating action buttons with nicer colors

* Provide keyboard events via SharedFlow (remove passing around MutableState in the composable hierarchy as it may potentially violate UDF)
Commonize IOScope initialization

* Provide German translation in shared R-strings

* Move from immutable data classes to Compose-aware State Holders.

* Fix gradlew formatting issue?

* Regenerate gradle wrapper after Android Studio autoformatting debacle

* Resolve rememberCoroutineScope issue

* Provide mock name for remaining picture in repo

* Restore TEAM_ID in project.pbxproj

* Use emptyFlow as default to simplify nullability handling for external events

* Remove extraneous newline and unnecessary print statement

* Provide German translation in XML format
Consistently rename title to "My Memories"

* Remove commented-out code, cleanup rendundant modifiers
Make Title Bar use callbacks instead of accessing ViewModel directly
Add toggle & icon for list and grid view
2023-02-17 15:38:50 +02:00
Nikita Lipsky
de0a081c12 minesweeper: use painterResource from resource library. (#2760) 2023-02-17 15:27:37 +02:00
Nikita Lipsky
266253564a visual-effects experimental sample: use XML Vector Drawable for Compose logo and painterResource from resources library. (#2759) 2023-02-17 15:27:15 +02:00
Nikita Lipsky
50def5feb8 Use painterResource from resource library for widgets-galley. (#2757) 2023-02-17 14:50:28 +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
Nikita Lipsky
fe3284aeb5 expemintal samples: add forgotten isStatic=true to cocoapods.framework configuration (#2634) 2023-01-13 22:05:29 +02:00
Nikita Lipsky
e3382dba2a Rename xcode projects to iosApp and remove ios run configurations (#2629) 2023-01-13 11:02:00 +02:00
Nikita Lipsky
e30aaf6371 Move chat-mpp to KMM project structure (#2620) 2023-01-10 15:33:31 +02:00
Nikita Lipsky
23e6c6ba4b Move Minesweeper to KMM project structure and load resources the same way for all platforms (#2619) 2023-01-10 12:38:34 +02:00
Lee Taehoon
d6ff80c062 Imageviewer Bitmap Filter for uikit (#2575) 2022-12-26 11:34:19 +03:00
Nikita Lipsky
55d97d0091 Move visual-effects sample to KMM structure and add Android/iOS targets (#2573)
* Put all samples to one with a simple navigation

* Move desktop dependencies to main.kt and Wave settings panel to a separate class

* Use common resource API instead of desktop only for RotatingWords

* Move project to KMM structure and add iOS/Android target

* Change year for Happy New Year!

* Correct README.md
2022-12-23 14:07:01 +02:00
dima.avdeev
327fa12651 fix imageviewer uikit (#2574) 2022-12-23 14:18:34 +03:00