-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3c31305
commit 68c38cb
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# android-QMobileDataStore | ||
|
||
|
||
[![Language](http://img.shields.io/badge/language-kotlin-purple.svg?style=flat)](https://developer.android.com/kotlin) | ||
[![Build](https://github.com/4d/android-QMobileDataStore/actions/workflows/build.yml/badge.svg)](https://github.com/4d/android-QMobileDataStore/actions/workflows/build.yml) | ||
|
||
This android package belong to [Android SDK](https://github.com/4d/android-sdk) and it contains all stuff to initialize and populate the [Room](https://developer.android.com/jetpack/androidx/releases/room) database. | ||
|
||
## Build | ||
|
||
To build you can open project with Android Studio or run | ||
|
||
```bash | ||
./gradlew assemble --console=rich | ||
``` | ||
|
||
To check also your development environment you can run instead [`build.sh`](build.sh) | ||
|
||
### Requirements | ||
|
||
By installing [Android Studio](https://developer.android.com/) you could fulfill all requirements, but you could also download them separately. | ||
|
||
#### Java 11 | ||
|
||
You could download it [here](https://www.oracle.com/java/technologies/downloads/) | ||
|
||
💡 Java 11 is embedded in recent Android Studio versions. For instance on macOS you could do | ||
|
||
```bash | ||
export JAVA_HOME="/Applications/Android Studio.app/Contents/jbr/Contents/Home" | ||
``` | ||
|
||
#### Android SDK | ||
|
||
To build you should download Android SDK or use one provided by Android Studio. | ||
|
||
Then `ANDROID_HOME` environnement variable must defined the SDK path. | ||
|
||
```bash | ||
export ANDROID_HOME=<path to sdk> | ||
``` | ||
|
||
Default path when using Android Studio for Android SDK on macOS is `$HOME/Library/Android/sdk` and on linux `$HOME/Android/Sdk` |