Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add zip archives to templates #2813

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions experimental/templates/README.md
Original file line number Diff line number Diff line change
@@ -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)
- [desktop-template](archives/desktop-template.zip)
- [web-template](archives/web-template.zip)
pjBooms marked this conversation as resolved.
Show resolved Hide resolved
Binary file not shown.
Binary file not shown.
Binary file added experimental/templates/archives/web-template.zip
Binary file not shown.
4 changes: 3 additions & 1 deletion experimental/templates/desktop-template/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Compose Desktop Application
# Compose Desktop Application

You may download this template as a [zip file](../archives/desktop-template.zip).
pjBooms marked this conversation as resolved.
Show resolved Hide resolved

- `./gradlew run` - run application
- `./gradlew package` - package native distribution into `build/compose/binaries`
5 changes: 5 additions & 0 deletions experimental/templates/desktop-template/cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
rm -rf .idea
./gradlew clean
rm -rf .gradle
rm -rf build
14 changes: 14 additions & 0 deletions experimental/templates/make-archives.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions experimental/templates/multiplatform-template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
pjBooms marked this conversation as resolved.
Show resolved Hide resolved

## Desktop
This template contains `desktopApp` run configuration that you can use to run the desktop target in Android Studio or Intellij IDEA.

Expand Down
1 change: 1 addition & 0 deletions experimental/templates/multiplatform-template/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion experimental/templates/web-template/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Compose Web Application
# Compose Web Application

You may download this template as a [zip file](../archives/web-template.zip).
pjBooms marked this conversation as resolved.
Show resolved Hide resolved

- `./gradlew jsBrowserRun` - run application in a browser
- `./gradlew jsBrowserProductionWebpack` - produce the output in `build/distributions`
6 changes: 6 additions & 0 deletions experimental/templates/web-template/cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
rm -rf .idea
./gradlew clean
rm -rf .gradle
rm -rf build
rm -rf kotlin-js-store