diff --git a/experimental/templates/README.md b/experimental/templates/README.md new file mode 100644 index 00000000000..74661144dd3 --- /dev/null +++ b/experimental/templates/README.md @@ -0,0 +1,8 @@ +# Compose Multiplatform Templates + +There are three template projects available: multiplatform, desktop and web. +You may download them as a zip archive: + +- [multiplatform-template](archives/multiplatform-template.zip?raw=true) +- [desktop-template](archives/desktop-template.zip?raw=true) +- [web-template](archives/web-template.zip?raw=true) diff --git a/experimental/templates/archives/desktop-template.zip b/experimental/templates/archives/desktop-template.zip new file mode 100644 index 00000000000..78d5086ad3a Binary files /dev/null and b/experimental/templates/archives/desktop-template.zip differ diff --git a/experimental/templates/archives/multiplatform-template.zip b/experimental/templates/archives/multiplatform-template.zip new file mode 100644 index 00000000000..1d0228976fc Binary files /dev/null and b/experimental/templates/archives/multiplatform-template.zip differ diff --git a/experimental/templates/archives/web-template.zip b/experimental/templates/archives/web-template.zip new file mode 100644 index 00000000000..994d300ad7f Binary files /dev/null and b/experimental/templates/archives/web-template.zip differ diff --git a/experimental/templates/desktop-template/README.md b/experimental/templates/desktop-template/README.md index fd40023b914..1abc5012fcf 100644 --- a/experimental/templates/desktop-template/README.md +++ b/experimental/templates/desktop-template/README.md @@ -1,4 +1,6 @@ -Compose Desktop Application +# Compose Desktop Application + +You may download this template as a [zip file](../archives/desktop-template.zip?raw=true). - `./gradlew run` - run application - `./gradlew package` - package native distribution into `build/compose/binaries` diff --git a/experimental/templates/desktop-template/cleanup.sh b/experimental/templates/desktop-template/cleanup.sh new file mode 100755 index 00000000000..c9d7f6de44e --- /dev/null +++ b/experimental/templates/desktop-template/cleanup.sh @@ -0,0 +1,5 @@ +#!/bin/sh +rm -rf .idea +./gradlew clean +rm -rf .gradle +rm -rf build diff --git a/experimental/templates/make-archives.sh b/experimental/templates/make-archives.sh new file mode 100755 index 00000000000..c7be838eb1f --- /dev/null +++ b/experimental/templates/make-archives.sh @@ -0,0 +1,14 @@ +#!/bin/sh +rm archives/* +pushd multiplatform-template +./cleanup.sh +zip -r ../archives/multiplatform-template.zip . -x local.properties +popd +pushd desktop-template +./cleanup.sh +zip -r ../archives/desktop-template.zip . -x local.properties +popd +pushd web-template +./cleanup.sh +zip -r ../archives/web-template.zip . -x local.properties +popd diff --git a/experimental/templates/multiplatform-template/README.md b/experimental/templates/multiplatform-template/README.md index 6989d74f1aa..a0224651e63 100644 --- a/experimental/templates/multiplatform-template/README.md +++ b/experimental/templates/multiplatform-template/README.md @@ -3,6 +3,8 @@ Сan run on desktop, Android and iOS. Note that iOS target is experimental so far. +You may download this template as a [zip file](../archives/multiplatform-template.zip?raw=true). + ## Desktop This template contains `desktopApp` run configuration that you can use to run the desktop target in Android Studio or Intellij IDEA. diff --git a/experimental/templates/multiplatform-template/cleanup.sh b/experimental/templates/multiplatform-template/cleanup.sh index 62f9391b867..1f2b03b4fba 100755 --- a/experimental/templates/multiplatform-template/cleanup.sh +++ b/experimental/templates/multiplatform-template/cleanup.sh @@ -5,6 +5,7 @@ rm -rf .gradle rm -rf build rm -rf */build rm -rf iosApp/iosApp.xcworkspace +rm iosApp/Podfile.lock rm -rf iosApp/Pods rm -rf iosApp/iosApp.xcodeproj/project.xcworkspace rm -rf iosApp/iosApp.xcodeproj/xcuserdata diff --git a/experimental/templates/web-template/README.md b/experimental/templates/web-template/README.md index fcd77188f52..b97d91b7fc0 100644 --- a/experimental/templates/web-template/README.md +++ b/experimental/templates/web-template/README.md @@ -1,4 +1,6 @@ -Compose Web Application +# Compose Web Application + +You may download this template as a [zip file](../archives/web-template.zip?raw=true). - `./gradlew jsBrowserRun` - run application in a browser - `./gradlew jsBrowserProductionWebpack` - produce the output in `build/distributions` \ No newline at end of file diff --git a/experimental/templates/web-template/cleanup.sh b/experimental/templates/web-template/cleanup.sh new file mode 100755 index 00000000000..127a16a02f8 --- /dev/null +++ b/experimental/templates/web-template/cleanup.sh @@ -0,0 +1,6 @@ +#!/bin/sh +rm -rf .idea +./gradlew clean +rm -rf .gradle +rm -rf build +rm -rf kotlin-js-store