Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ If you are targeting Android, you need to install the dependencies with Gradle:
$ bundle && rake android:gradle:install
```

NOTE: The Android app API version defaults to version `"23"`.
To overwrite it set the environment variable `ANDROID_APP_API_VERSION` to the desired version for example:

```
echo 'export ANDROID_APP_API_VERSION="28"' >> ~/.zshrc
```

### Projects

#### Flow projects
Expand Down
2 changes: 1 addition & 1 deletion lib/android.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
require 'motion-gradle'

Motion::Project::App.setup do |app|
app.api_version = '23' unless Motion::Project::Config.starter?
app.api_version = ENV['ANDROID_APP_API_VERSION'] ||= '23' unless Motion::Project::Config.starter?
app.build_dir = 'build/android'
app.assets_dirs << 'resources'
app.resources_dirs = []
Expand Down