Konstantin
8fc3dd2f75
Pack all resources to assets on the android target. ( #4965 )
...
The PR changes the android resources packaging. Now all resources are
packed to the android assets (not only fonts). It unblocks usage android
URIs to the resources in a WebView or other external resource consumers.
Additionally the PR fixes Android Studio Compose Previews work with
multiplatform resources:
![](https://private-user-images.githubusercontent.com/3532155/341182790-ef26b667-ad0d-4efd-b7f9-23cff92ab49d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4Nzg0MTgsIm5iZiI6MTcxODg3ODExOCwicGF0aCI6Ii8zNTMyMTU1LzM0MTE4Mjc5MC1lZjI2YjY2Ny1hZDBkLTRlZmQtYjdmOS0yM2NmZjkyYWI0OWQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjBUMTAwODM4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTY1MzdhMTAxMjNmZDRhMDA4ZjdjODBjYzg3M2MyNDg0ZTA5OWFkZGZkZjk1ZDUwOWFkZDk3MmQ2YjIzNzJiYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.xgUAr_2--ZHo6txhdAANRbe8ju2SQ5EACvK96gaGJnY )
For a backward compatibility the resources library tries to read
resources in java resources if assets were not found.
Fixes https://github.com/JetBrains/compose-multiplatform/issues/4877
Fixes https://github.com/JetBrains/compose-multiplatform/issues/4503
Fixes https://github.com/JetBrains/compose-multiplatform/issues/4932
Fixes https://github.com/JetBrains/compose-multiplatform/issues/4476
## Release Notes
### Features - Resources
- Android Studio Preview works with Compose Multiplatform resources now
- Compose Multiplatform resources are stored in the android assets now.
This fixes such cases as a rendering resource files in WebViews or Media
Players
5 months ago
Konstantin
e45e03aa1c
[resources] Add binary compatibility validator and API dump to the resources library ( #4888 )
...
Add binary compatibility validator and API dump to the resources
library.
6 months ago
Konstantin
2692cb320d
Update Kotlin, dependencies and build scripts ( #3835 )
1 year ago
dima.avdeev
10526ca300
mavenLocal should be the first
2 years ago
dima.avdeev
75f4f1dee4
add mavenLocal to components ( #2516 )
2 years ago
Alexey Tsvetkov
297eeacfc2
Configure repositories for all modules ( #2510 )
2 years ago
dima.avdeev
13d1de302c
[components/resources] add resource("img.png"). rememberImageBitmap() ( #2483 )
2 years ago
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
3 years ago
Alexey Tsvetkov
11918f3e8a
Fix MPP CI issues ( #1645 )
...
* Fix compilation of SplitPane
* Fix Gradle tests
3 years ago
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
3 years ago
Nikolay Igotti
86bf3115b5
Sync/2021 09 27 ( #1203 )
3 years ago
Igor Demin
c9a7b15e86
Migrate to Kotlin 1.5.30
3 years ago
Igor Demin
581b5f0b0a
Update Compose + Migrate to 0.5.0-build262 / Kotlin 1.5.21 ( #916 )
3 years ago
Igor Demin
854de3681c
Publish components ( #829 )
3 years ago
Nikolay Igotti
0dc9bf0104
Move to 0.4.0
4 years ago
Nikolay Igotti
e817408595
Use 0.4.0-rc2 in examples ( #720 )
4 years ago
Nikolay Igotti
bf4f7051a2
Move to Kotlin 1.5.10 and Compose 0.4.0-rc1
4 years ago
Nikolay Igotti
38f4cfa33e
Move to 0.4.0-build209
4 years ago
Nikolay Igotti
7bdb87f20b
Move to Compose 0.4.0-build208 and Kotlin 1.5.0
4 years ago
Alexey Tsvetkov
8c8b4147ab
Update to 0.4.0-build182 and get rid of jcenter
...
The build `0.4.0-build182` upgrades
`kotlinx-collections-immutable` library
(which is used by the compose runtime) to 0.3.4,
which was published to maven central,
so most usages of sunsetting jcenter repo
can be removed now.
Resolves #557
4 years ago
Nikolay Igotti
76e3f45f8b
Move to Kotlin 1.4.32 and 0.4.0-build180
4 years ago
Nikolay Igotti
2f7f05babd
Move to 0.3.2.
4 years ago
Nikolay Igotti
1999f58e75
Move to build 0.3.1.
4 years ago
LAP2
901406269a
Add split pane ( #355 )
...
Components. SplitPane
4 years ago
Nikolay Igotti
2fa3dcde04
Custom components template. ( #206 )
4 years ago
Igor Demin
541a14cc92
Templates. Migrate to 0.3.0-build135
4 years ago
Nikolay Igotti
84163e7499
Move to 0.2.0-build132
4 years ago
Nikolay Igotti
18afa24fe0
Move to 0.2.0-build128
4 years ago
Alexey Tsvetkov
c105e3a8eb
Change marker comment for Compose version
...
The verb `update` in `__UPDATE_COMPOSE_VERSION_MARKER__`
could be read as an instruction to update the plugin,
which might be confusing for users.
I suggest renaming the marker to more neutral
`__LATEST_COMPOSE_RELEASE_VERSION__`
4 years ago
Nikolay Igotti
aa2a8740ca
Update to 0.1.0-build113
4 years ago
Igor Demin
3b583678c7
Migrate to Compose 0.1.0-m1-build62
4 years ago
Alexey Tsvetkov
314f5af47f
Update all examples with Compose Application DSL
4 years ago
Nikolay Igotti
eb8c7fdd44
Move tutorials and templates to m1-build57.
4 years ago
Igor Demin
3b13944daf
Fix multiplatform projects in IDEA / Android Studio
...
Fixes:
- https://github.com/JetBrains/compose-jb/issues/21
We need to move buildscript from settings.gradle.kts to build.gradle.kts
See also https://youtrack.jetbrains.com/issue/KT-36331
- https://github.com/JetBrains/compose-jb/issues/22
kotlin("jvm") plugin doesn't work well with MPP modules.
To fix this issue we need to use kotlin("multiplatform") even if we targeting single platform.
See also https://youtrack.jetbrains.com/issue/KT-42823
4 years ago
Igor Demin
e0faea47db
New repo
4 years ago
Igor Demin
d8bda230ae
Move mpp-template to multiplatform-template
4 years ago
Igor Demin
f63d1ce6b8
App templates
4 years ago
Nikolay Igotti
f201961e31
Example Image Viewer.
4 years ago
Nikolay Igotti
4dc4f597d5
Add issues.
4 years ago