Added note on Erlang version
This commit is contained in:
parent
4cb9b92cd3
commit
12ccab42ea
2 changed files with 16 additions and 4 deletions
18
README.md
18
README.md
|
@ -4,16 +4,26 @@ This Android Studio project wraps the [Desktop Sample App](https://github.com/el
|
|||
|
||||
## How to build & run
|
||||
|
||||
1. Install [Android Studio](https://developer.android.com/studio) + NDK.
|
||||
1. Install [Android Studio](https://developer.android.com/studio) + NDK.
|
||||
|
||||
2. Go to "Files -> New -> Project from Version Control" and enter this URL: https://github.com/elixir-desktop/android-example-app/
|
||||
1. Go to "Files -> New -> Project from Version Control" and enter this URL: https://github.com/elixir-desktop/android-example-app/
|
||||
|
||||
3. [Connect your Phone](https://developer.android.com/studio/run/device) to Android Studio
|
||||
1. Update the `run_mix` to activate the correct Erlang/Elixir version during build.
|
||||
|
||||
4. Start the App
|
||||
1. [Connect your Phone](https://developer.android.com/studio/run/device) to Android Studio
|
||||
|
||||
1. Start the App
|
||||
|
||||
## Known todos
|
||||
|
||||
### Update built-in Runtime
|
||||
|
||||
The current runtime that is precompiled and sits in assets/ folder is based on dev branch of OTP currently under
|
||||
https://github.com/diodechain/otp/tree/diode/beta
|
||||
Because the included OTP apps have different versions such as `crypto-5.0.3` you can only compile this project
|
||||
with the very same OTP version. You can probably build it with `kerl`. But I'll update the runtime to a newer stable
|
||||
OTP build soon`(tm)` because all neccesary changes have been merged by the Erlang team already.
|
||||
|
||||
### Initial Startup could be faster
|
||||
|
||||
Running the app for the first time will extract the full Elixir & App runtime at start. On my Phone this takes around 10 seconds. After that a cold app startup takes ~3-4 seconds.
|
||||
|
|
2
run_mix
2
run_mix
|
@ -1,6 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
BASE=`pwd`
|
||||
# Here activate your Erlang/Elixir version, in my case this is using kerl:
|
||||
# . /Users/dominicletz/projects/24.beta/activate
|
||||
export MIX_ENV=prod
|
||||
export MIX_TARGET=android
|
||||
|
||||
|
|
Loading…
Reference in a new issue