Commit Graph

404 Commits

Author SHA1 Message Date
Igor Demin
d44114d8b9 Compose Multiplatform 1.4.0 docs (#3044) 2023-04-12 16:27:23 +02:00
dima.avdeev
76f000611d Update examples to Compose 1.4.0 (#3042) 2023-04-12 09:18:25 +03:00
dima.avdeev
73171a0f9e ImageViewer fix delete picture crash (#3039) 2023-04-11 19:54:04 +03:00
dima.avdeev
a6e71144b4 ImageViewer desktop MapView (#3022) 2023-04-11 18:49:12 +03:00
dima.avdeev
7c0e8a77b0 ImageViewer, limit scale for full visibility of the target (#3023) 2023-04-10 16:12:16 +03:00
dima.avdeev
52601254ed ImageViewer fix simple warnings and code style issues (#3025) 2023-04-10 15:56:19 +03:00
dima.avdeev
9961674078 ImageViewer, simplify pictures.indexOf(picture) (#3024) 2023-04-10 14:29:20 +03:00
dima.avdeev
de2949c34d ImageViewer Android map with proper scroll (#3020) 2023-04-10 11:35:04 +03:00
dima.avdeev
bb950bc91a ImageViewer, share image with description. (#3012) 2023-04-08 15:46:25 +03:00
dima.avdeev
cc1ad2fe41 hotifx bug with related pictures (#3017) 2023-04-08 13:05:29 +03:00
Nikita Lipsky
1cc767bdfc Imageviewer: update default description (#3010)
* Imageviewer: update default description

* Imageviewer: update again
2023-04-07 23:31:27 +03:00
dima.avdeev
508d265b9d ImageViewer edit description onLongClick (#3009) 2023-04-07 18:07:07 +03:00
dima.avdeev
523368228b ImageViewer, fix Android rotation (#3007) 2023-04-07 17:35:23 +03:00
Nikita Lipsky
1d955a2e6d Remove internal from common public @Composable as it is not required for 1.4.0-rc03 (#3008) 2023-04-07 17:07:46 +03:00
Igor Demin
752540cfcf Fix imageviewer desktop icon path (#3005)
The issue only in this example, in the other places it is correct
2023-04-07 10:47:54 +02:00
Nikita Lipsky
08d5fa3487 Add todo edit dialog to iOS (#3001) 2023-04-06 21:19:15 +03:00
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
2023-04-06 17:47:42 +04:00
Igor Demin
40ae8ec29d ImageViewer - limit zoom by the window/screen size (#2993)
- add zoom field, which is the same across different screen/window sizes

- scale is not the base state now, it is derived from the current zoom and the current screen/window size. it now represents the end scale of the image

- drag amount is still independent of scale/zoom (if we drag by 5 pixels, the image moves by 5 pixels)

- offset is still limited by the area and the current scale

* ImageViewer - limit zoom by the window/screen size

- add zoom field, which is the same across different screen/window sizes

- scale is not the base state now, it is derived from the current zoom and the current screen/window size. it now represents the end scale of the image

- drag amount is still independent of scale/zoom (if we drag by 5 pixels, the image moves by 5 pixels)

- offset is still limited by the area and the current scale
2023-04-06 11:56:30 +02:00
dima.avdeev
a275db2596 ImageViewer Android swipe camera (#2995) 2023-04-06 12:18:52 +03:00
dima.avdeev
968af859c3 ImageViewer Pager and icons (#2982) 2023-04-06 12:13:33 +03:00
dima.avdeev
35ecc36b38 ImageViewer Android return back key (#2996) 2023-04-06 12:03:21 +03:00
Nikita Lipsky
5e7d55fb33 Update README.md for examples (#2990) 2023-04-05 21:35:46 +03:00
Nikita Lipsky
6f13bc35a9 Update README.md for Code Viewer example (#2989) 2023-04-05 20:24:39 +03:00
Igor Demin
50c3a47acd Fix todo example (#2983)
* Fix todo example

* Remove comment

---------

Co-authored-by: Alexander Maryanovsky <msasha@gmail.com>
2023-04-05 19:09:22 +02:00
Vladimir Mazunin
0c8b002ac7 changed app icon for iOS ImageViewer example (#2980) 2023-04-05 21:03:59 +04:00
Nikita Lipsky
f7cdb4e562 Fix xcode projects for icon processing for examples (#2978) 2023-04-05 12:34:43 +03:00
Nikita Lipsky
ee77fda184 Add iOS app icon for Imageviewer (#2977) 2023-04-05 10:00:37 +03:00
Nikita Lipsky
dbf579be86 Fixup for validateExamples.sh 2023-04-05 09:02:32 +03:00
Nikita Lipsky
a8003a0f5d Move experimental/examples to examples (#2976)
* Move experimental/examples to examples

* Change version to 1.4.0-rc01
2023-04-05 08:57:39 +03:00
Ivan Matkov
b3ccc1526f Fix regex for number values (#2962) 2023-04-03 16:34:33 +02: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
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
Alexander Maryanovsky
e30379eb79 Disable validation of todoapp-lite until update to Compose 1.4.0 (#2842) 2023-03-07 20:49:18 +02:00
Alexey Tsvetkov
75addb9224 Add proguard rules for issues example (#2703) 2023-02-06 16:26:10 +01: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
aSemy
8f3beed1fa #2597 use textContent instead of innerText for code snippet content (#2598) 2023-01-30 20:05:56 +01:00
Igor Demin
be0c1c87e1 Release 1.2.2 (#2561)
* Compose 1.2.1-rc01

* Fix Web build for Kotlin 1.7.20

* Use 1.3.2.1-rc02 in Gradle plugin

* Fix Gradle Plugin tests

* Fix Gradle Plugin tests

* Compose 1.2.1-rc03

* Update CHANGELOG.md

* Update CHANGELOG.md

* Compose Compiler 1.3.2.1

* Compose 1.2.1

* Update VERSIONING.md

* Update gradle.properties

* Fix custom JDK tests on Linux

* Remove JVM target version override (#2515)

Previously, we were setting kotlin.jvmTarget version
to 1.8 if it was null or < 1.8.
As an unintended consequence we were also overriding
a version set by the jvmToolchain property.
So while users expected the jvmToolchain property
to set both jdk home & jdk target, we were quietly
overriding jdk target.

At the same time, Kotlin 1.7 sets the minimum
target version to 1.8 anyway, so our override
does not make sense with Kotlin 1.7+.

This commit removes overriding altogether.

Fixes #2511

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update Compose

* Update default ProGuard rules with changes from main branch

* Test Gradle plugin on relevant PRs (#2509)

* Update Gradle used in tooling subprojects

* Update Kotlin in Compose Gradle plugin

* Decrease verbosity of Gradle plugin tests

* Disable mac sign test

* Add workflow to test Gradle plugin

* Fix custom jdk tests on Linux

* Make Compose Gradle plugin build compatible with Configuration cache

* Print tests summary

* Remove unused code

* Refactor tests configuration

* Turn off parallel execution

* Try adding windows runner

* Turn off fail fast

* Fix Windows test issues

#2368

* Adjust default proguard rules

The following rule is needed to fix tests on Windows:
```
-dontwarn org.graalvm.compiler.core.aarch64.AArch64NodeMatchRules_MatchStatementSet*
```

Other rules are just to make builds less noisy.
Kotlin's `*.internal` packages often contain
bytecode, which triggers ProGuard's notes.
However, these notes are not actionable for
most users, so we can ignore notes by default.

#2393
# Conflicts:
#	gradle-plugins/gradle/wrapper/gradle-wrapper.properties

* Improve DSL for setting a custom Compose Plugin (#2527)

* Improve DSL for setting a custom Compose Plugin

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

Readme: https://github.com/JetBrains/compose-jb/pull/2526

1. Add `dependencies: Dependencies` extension that is accessible in `compose { }` block
2. Add `Dependencies.compiler` property that can return versions of Compose compiler used by the plugin:
```
compose {
    kotlinCompilerPlugin.set(dependencies.compiler.forKotlin("1.7.20"))
    //kotlinCompilerPlugin.set(dependencies.compiler.auto) // determined by applied version of Kotlin. It is a default.
}
```

3. Add ability to set arguments for Compose Compiler. Now we can write:
```
compose {
    kotlinCompilerPlugin.set(dependencies.compiler.forKotlin("1.7.20"))
    kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=1.7.21")
}
```

4. Remove checks for different targets

We had a separate check for JS, when we released 1.2.0. It doesn't support Kotlin 1.7.20 at that moment.

It is hard to refactor this feature in the new code, so I removed it. It is not needed now and it had an ugly code. When we will need it again, we'll write it again.

5. Remove the `compose.tests.androidx.compiler.version` property from gradle.properties and remove `defaultAndroidxCompilerEnvironment`

Because they are used only in one test, and it seems there is no reason to use it in another place in the future

* Discussions

* Update ComposeCompilerCompatability.kt (#2557)

* Update CHANGELOG.md

* 1.2.2-rc01

* Update Compose

* Update CHANGELOG.md

* Compose 1.2.2

* Remove shared.podspec

* Remove usages of deprecated Intellij APIs

Co-authored-by: Alexey Tsvetkov <alexey.tsvetkov@jetbrains.com>
Co-authored-by: Alexey Tsvetkov <654232+AlexeyTsvetkov@users.noreply.github.com>
2022-12-15 01:14:26 +01:00
Nikita Lipsky
4987cbdc89 Move CodeViewer to KMM structure + add iOS target (#2544) 2022-12-08 16:20:33 +02:00
dima.avdeev
7fce8df5f7 fix examples with Kotlin Native issue (#2534)
Needs mavenCetral at root build.gradle.kts
2022-12-05 12:51:11 +03:00
Oleksandr Karpovich
064dd2d062 fix a link in web-landing example 2022-11-07 15:47:56 +01:00
Igor Demin
63846c63c0 Compose 1.2.1 (#2453) 2022-11-07 14:46:37 +01:00
Oleksandr Karpovich
04c49a729a Update the links in compose-web landing page (#2451)
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2022-11-07 12:35:54 +01:00
Arkadii Ivanov
d457a520d7 TodoApp. Updated Kotlin to 1.7.10, Compose to 1.2.0, and other libs. (#2191) 2022-10-13 20:26:58 +02:00
Oleksandr Karpovich
5936fd8063 Update compose-web examples and readme about effects (#2395)
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2022-10-12 11:01:32 +02:00
Igor Demin
4ee708c598 Upgrade examples to Compose 1.2.0 2022-10-11 21:20:53 +02:00
Igor Demin
188abdfabd Refactor visual-effects and notepad 2022-10-11 19:54:25 +02:00
dima.avdeev
dcff5b2c83 todoapp android compileSdk = 32 2022-10-11 21:49:27 +04:00
dima.avdeev
09ee6b8bc7 todoapp and experimental to 1.2.0-rc02 2022-10-11 21:36:06 +04:00
Igor Demin
308a1f170d Fix Todo example (#2391)
* Fix Todo example

In 1.1.1 we remove Dispatcher.Main from dependencies, because Compose can be embedded into different platform with their own Dispatcher.Main (IDEA, for example).

Because of that, end applications should include it explicitly if they want to use it.

* Refactor
2022-10-11 19:31:19 +02:00
Igor Demin
eae694ad3d Replace package by packageDistributionForCurrentOS (#2390)
`package` is deprecated
2022-10-11 18:59:20 +02:00