Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
e-marchand authored May 10, 2023
1 parent 3c31305 commit 68c38cb
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions README.md
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`

0 comments on commit 68c38cb

Please sign in to comment.