tree: 383c8a819a69baf7585e51fc33937e9d38e0f122 [search]
  1. src/
  2. via-included-build/
  3. via-maven-local/
  4. README.md
samples/README.md

Onboarding Integration Samples

Gradle

Building

Building requires some non-standard gradle options:

cd android_onboarding
export ANDROID_HOME="$HOME/Android/Sdk" # Or wherever your android SDK is located.
export GRADLE_OPTS="-Xmx4096m -XX:MaxMetaspaceSize=1024m -XX:+HeapDumpOnOutOfMemoryError" # or -Dorg.gradle.jvmargs="-Xmx4096m -XX:MaxMetaspaceSize=1024m -XX:+HeapDumpOnOutOfMemoryError" cli option

# This is to be executed from inside android_onboarding directory
gradle :setupcompat:publishToMavenLocal publishToMavenLocal

Projects

We provide two sample projects integrating with onboarding libraries via gradle.

Published artifacts via-maven-local

This project assumes onboarding libraries are published to maven local (or your internal) maven repository beforehand and pulls them in as precompiled binaries.

To publish to maven local, execute gradle :setupcompat:publishToMavenLocal publishToMavenLocal in android_onboarding directory.

Included gradle builds via-included-build

This project includes onboarding libraries as included gradle build. This means that the onboarding dependencies will be compiled on demand along with your project modules.