Project Setup

Gaining Access

The Lucra Android SDK is publicly hosted on Github https://github.com/Lucra-Sports/lucra-android-sdkarrow-up-right. Due to this, you will need a Github Personal Access Token (PAT) to pull maven artifacts via Gradle at build time.

Select "Classic" with the packages:read permissions and name it "Lucra Token". Once a token is generated, copy this and continue onto the next section, Installation

Installation

With the generated PAT, reference it it in the root level build.gradle.kts, where you'll specify the Github Maven repository to pull Lucra artifacts from. Be sure to include the other repositories as well.

Note: It is not recommended to check-in your PAT into your repository, use the gradle.properties or local.properties approach to reference your PAT at build time, for both your private build machines and any pipelines that require this dependency at build time

In your app/build.gradle.kts specify the artifacts to use in your project

Now, sync and run your project to determine if the PAT was correct and the artifacts are fetched correctly.

Build Requirements

Desurgaring

Some of the code we use requires core library desurgaring, you will need to specify this in your app/build.gradle.kts Read more about desurgaring herearrow-up-right

Auth0 Compliance (if not already using Auth0)

We use Auth0 for auth, if your app doesn't use it already, add the following to your app's default config.

Android Manifest requirements

The following manifest permissions, features, receivers and services are required to use Lucra

Proguard Requirements

Once this is successfully completed, move onto Module Integration

Last updated