Konstantin
52c4bf3b1f
[example] Migrate the image viewer on the new compose resources ( #4433 )
9 months ago
Konstantin
e8e7afa795
Migrate all samples to the new resources library ( #4386 )
9 months ago
Igor Demin
809a8c7aa2
Compose 1.6.0
9 months ago
dima.avdeev
990fbfdcfe
Update link to setup environment instructions ( #4344 )
...
Update links to new
[instructions](https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-multiplatform-setup.html )
It resolves issue:
- https://github.com/JetBrains/compose-multiplatform/issues/4343
9 months ago
Igor Demin
9c8fc2c910
Compose 1.5.11 examples ( #3968 )
1 year ago
George Shalvashvili
389e3ed711
update ImageViewer build file ( #3956 )
...
As I understood according to
https://kotlinlang.org/docs/whatsnew1920.html#set-up-the-target-hierarchy
those `dependsOn` calls are no longer needed
Tested on iOS, MacOS and Android. It works as before
1 year ago
Konstantin
89f21eb99e
Update resources library in imageViewer sample ( #3931 )
1 year ago
George Shalvashvili
6df5a9c6ed
Update distribution path for ImageViewer ( #3925 )
1 year ago
dima.avdeev
c26ebacaa4
COMPOSE-338 Remove iOS experimental flag in gradle.properties ( #3896 )
...
Because iOS target is in Alpha status, since version 1.5.10 we don't
need flag in gradle properties.
`org.jetbrains.compose.experimental.uikit.enabled=true`
https://youtrack.jetbrains.com/issue/COMPOSE-338/remove-iOS-experimental-flag-after-1.5.10-release
1 year ago
Nikolai Rykunov
726b98d661
Support 1.5.10 ( #3682 )
...
Co-authored-by: dima.avdeev <dima.avdeev@jetbrains.com>
Co-authored-by: Oleksandr Karpovich <a.n.karpovich@gmail.com>
1 year ago
dima.avdeev
e14a99a517
Update Compose version to 1.5.2 ( #3746 )
1 year ago
Igor Demin
021b099e1c
Add org.gradle.toolchains.foojay-resolver-convention to the examples ( #3666 )
...
According to https://developer.android.com/build/jdks we should:
1. [use JDK 17 for API 34](https://developer.android.com/build/jdks#compileSdk )
2. [use toolchain](https://developer.android.com/build/jdks#toolchain ):
```
We recommend that you always specify the Java toolchain, and either ensure that the specified JDK is installed, or add a toolchain resolver to your build.
```
As we don't want to force people to have JDK 17 on their machine, we apply toolchain resolver that is recommended by Gradle:
```
id("org.gradle.toolchains.foojay-resolver-convention") version("0.4.0")
```
## Test
1. Remove JDK 17 from the computer, remove `jvmToolchain(17)`
2. Run `./gradlew assembleDebug`
3. It should fail with:
```
> Could not create task ':androidApp:compileDebugJavaWithJavac'.
> Failed to calculate the value of task ':androidApp:compileDebugJavaWithJavac' property 'javaCompiler'.
> No matching toolchains found for requested specification: {languageVersion=17, vendor=any, implementation=vendor-specific} for WINDOWS on x86_64.
> No locally installed toolchains match and toolchain download repositories have not been configured.
```
4. restore `jvmToolchain(17)`
5. Run `./gradlew assembleDebug` again
6. It should succeed
## Issues
Fixes https://github.com/JetBrains/compose-multiplatform/issues/3615
1 year ago
dima.avdeev
a013d73a67
iOS examples. Returned the ContentView back to how it was ( #3633 )
1 year ago
Oleksandr Karpovich
fbd99c05cb
Support/1.5.1 ( #3631 )
...
* Update versions to CM 1.5.1 and kotlin 1.9.10
* Add explicit dependencies on compose.ui and compose.foundation in examples/chat/jsApp
* Update CHANGELOG.md
* fix typo
* Add Dependencies for 1.5.1 Changelog
1 year ago
dima.avdeev
255c36a0ad
iOS Simplify Swift code in examples ( #3609 )
...
* COMPOSE-351, iOS Simplify Swift code in examples
- change indent from tabs to spaces
- simplify and inline SwiftUI ContentView structure
https://youtrack.jetbrains.com/issue/COMPOSE-351/remove-redundant-struct-ContentView
Co-authored-by: Ivan Matkov <ivan.matkov@jetbrains.com>
1 year ago
Igor Demin
39d9473070
Compose 1.5.0
1 year ago
Igor Demin
0215dd9551
Update Android projects ( #3566 )
...
- Update Gradle to 8.2.1 (for non-Android project as well)
- Update AGP to 8.0.2
- add jvmToolchain for Android projects (it is required now)
- removed targetSdk from shared modules (it is deprecated for com.android.library projects)
- move "package" from manifset to "namespace " in Gradle (required by AGP)
- rename android to androidTarget (android is deprecated in latest Kotlin)
- update Android dependencies versions
I checked - Android/iOS/web still work. HTML/IDE projects also work after updating Gradle.
Works in the latest stable IDEA and Android Studio
updated templates:
https://github.com/JetBrains/compose-multiplatform-ios-android-template/pull/21
https://github.com/JetBrains/compose-multiplatform-template/pull/19
https://github.com/JetBrains/compose-multiplatform-desktop-template/pull/8
https://github.com/JetBrains/compose-multiplatform-html-library-template/pull/3
1 year ago
Igor Demin
53e3674118
1.5.0 Changelog and updated examples ( #3556 )
...
The changelog is merged from the prerelease versions:
https://github.com/JetBrains/compose-multiplatform/releases/tag/v1.5.0-beta01
https://github.com/JetBrains/compose-multiplatform/releases/tag/v1.5.0-beta02
I will change versions to 1.5.0 in a separate PR later
1 year ago
Rob X
494c686293
ImageViewer, Android camera ( #3487 )
...
* The camera should stop working after leaving CameraView on Android.
* Update examples/imageviewer/shared/src/androidMain/kotlin/example/imageviewer/view/CameraView.android.kt
1 year ago
Alexey Tsvetkov
f60497a95b
Convert examples from cocoapods to regular frameworks ( #3529 )
1 year ago
Alexander Maryanovsky
60a0cdc0cb
Add a scrollbar to the SquaresGalleryView on the desktop ( #3520 )
1 year ago
Alexander Maryanovsky
8c724096fd
Add a unit test to the imageviewer example. ( #3527 )
...
* Add a unit test to the imageviewer example.
* Fix android build of imageviewer
1 year ago
dima.avdeev
83d2b54e35
Fix iOS ImageViewer example with Compose 1.4.3 and Kotlin 1.9.0 ( #3502 )
1 year ago
Alexey Tsvetkov
fa2df40e11
Replace warnings with errors ( #3496 )
1 year ago
Igor Demin
43a4086ba4
Migrate examples to 1.4.3 ( #3410 )
...
[Changelog](https://github.com/JetBrains/compose-multiplatform/releases/tag/v1.4.3 )
Changed templates:
bbf71f754c
ba91acf5d6
5204842894
36d1554dee
1 year ago
Ivan Matkov
c09b344c03
Adopt ImageViewer to Compose 1.5.0-dev1114 and Kotlin 1.9.0 ( #3400 )
...
* ImageViewer. Add WindowsInsets.ime and update resources
* Update gradle properties
* Fix HorizontalPager usage
* Add ExperimentalForeignApi annotation
---------
Co-authored-by: dima.avdeev <dima.avdeev@jetbrains.com>
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
dima.avdeev
b08134e73d
ImageViewer coroutines:1.7.1
2 years ago
dima.avdeev
4be0706e9a
ImageViewer coroutines:1.7.0
2 years ago
dima.avdeev
164c787449
ImageViewer fix lint error
2 years ago
Oleksandr Karpovich
047f2e15aa
Add coroutines dependency in commonMain instead of iosMain ( #3080 )
...
* Add coroutines dependency in commonMain instead of iosMain
* Update examples/imageviewer/shared/build.gradle.kts
Co-authored-by: dima.avdeev <99798741+dima-avdeev-jb@users.noreply.github.com>
---------
Co-authored-by: dima.avdeev <99798741+dima-avdeev-jb@users.noreply.github.com>
2 years ago
dima.avdeev
cbdb0eb693
ImageViewer, iOS coroutines-core:1.7.0-RC
2 years ago
dima.avdeev
3fdac4299c
ImageViewer, iOS camera modifier
2 years ago
Igor Demin
7bf253b207
Update gradle wrappers ( #3050 )
...
- update to the latest version
- add +x permission to avoid"access denied" on unix systems
2 years ago
dima.avdeev
76f000611d
Update examples to Compose 1.4.0 ( #3042 )
2 years ago
dima.avdeev
73171a0f9e
ImageViewer fix delete picture crash ( #3039 )
2 years ago
dima.avdeev
a6e71144b4
ImageViewer desktop MapView ( #3022 )
2 years ago
dima.avdeev
7c0e8a77b0
ImageViewer, limit scale for full visibility of the target ( #3023 )
2 years ago
dima.avdeev
52601254ed
ImageViewer fix simple warnings and code style issues ( #3025 )
2 years ago
dima.avdeev
9961674078
ImageViewer, simplify pictures.indexOf(picture) ( #3024 )
2 years ago
dima.avdeev
de2949c34d
ImageViewer Android map with proper scroll ( #3020 )
2 years ago
dima.avdeev
bb950bc91a
ImageViewer, share image with description. ( #3012 )
2 years ago
dima.avdeev
cc1ad2fe41
hotifx bug with related pictures ( #3017 )
2 years ago
Nikita Lipsky
1cc767bdfc
Imageviewer: update default description ( #3010 )
...
* Imageviewer: update default description
* Imageviewer: update again
2 years ago
dima.avdeev
508d265b9d
ImageViewer edit description onLongClick ( #3009 )
2 years ago
dima.avdeev
523368228b
ImageViewer, fix Android rotation ( #3007 )
2 years ago
Nikita Lipsky
1d955a2e6d
Remove internal from common public @Composable as it is not required for 1.4.0-rc03 ( #3008 )
2 years ago
Igor Demin
752540cfcf
Fix imageviewer desktop icon path ( #3005 )
...
The issue only in this example, in the other places it is correct
2 years ago
Vladimir Mazunin
4ca7aa1be9
iOS ImageViewer: changed icon for a newer version ( #2998 )
...
* ios image viewer: changed icon for a newer version
* ios image viewer: renamed icon
2 years ago