Emoji Search
============

This is a mobile app demo of Zipline. It has two modules:

 * **presenters** is a Kotlin/Multiplatform library that searches a set of emoji images.
 * **android** is an Android application that downloads the presenters JavaScript and displays
   it.


Serving presenters.js
---------------------

Run this:

```
../gradlew emoji-search:presenters:jsBrowserProductionRun --info
```

This will compile Kotlin/JS and serve it at [[http://localhost:8080/presenters.js]]. The server will
run until you CTRL+C the process.


Running Emoji-Search
--------------------

Run this:

```
../gradlew emoji-search:android:installDebug
```

This Android app assumes it's running in an emulator and will attempt to fetch JavaScript from the
devserver running on the host machine (10.0.2.2). It will crash if that server is not reachable.


Live Edits
----------

Make changes to `RealEmojiSearchPresenter`, then CTRL+C the devserver and start it again. When it's
ready, relaunch the Android application.


Emoji Search
============

This is a mobile app demo of Zipline. It has two modules:

 * **presenters** is a Kotlin/Multiplatform library that searches a set of emoji images.
 * **android** is an Android application that downloads the presenters JavaScript and displays
   it.


Serving presenters.js
---------------------

Run this:

```
./gradlew -p samples emoji-search:presenters:jsBrowserProductionRun --info
```

This will compile Kotlin/JS and serve it at [[http://localhost:8080/presenters.js]]. The server will
run until you CTRL+C the process.


Running Emoji-Search
--------------------

Run this:

```
./gradlew -p samples emoji-search:android:installDebug
```

This Android app assumes it's running in an emulator and will attempt to fetch JavaScript from the
devserver running on the host machine (10.0.2.2). It will crash if that server is not reachable.


Live Edits
----------

Make changes to `RealEmojiSearchPresenter`, then CTRL+C the devserver and start it again. When it's
ready, relaunch the Android application.


Change sample commands to assume running from root dir
Change sample commands to assume running from root dir
