Skip to main content
Give us your valuable feedback

It will help us understand how we can serve you better

Give feedback

Development

Installation

Guide for installing Legion to your development

banner-Installation

Prequisites

If you want clone this project or install SDK in your project, please make sure you Already have at least these below:

  • Android Studio: Flamigo version 2022.2.1 or higher
  • Gradle Version: 8.0
  • JDK: Java Development Kit 17 or higher
  • Terminal: If you using Mac or Linux you can use native terminal, but if you using Windows you can use Gitbash or Hyper or another terminal that can run bash scripts
  • Git Client: If you using Mac or Linux you can use embaded git client, but if you using Windows you can use Gitbash
  • Android Version : Android Lollipop 5.1.1 SDK 22 or higher

Install Legion SDK to Your Project

Proxy and Authentication

  1. Open your global gradle.properties directory on with Terminal:

For Windows : C:\Users\<you>\.gradle\gradle.properties

cd C:\Users\<you>\.gradle

For Mac/Linux:

  • /Users/<you>/.gradle/gradle.properties or
  • /home/<you>/.gradle/gradle.properties or
  • ~/.gradle/gradle.properties
cd ~/.gradle
  1. Create global gradle.properties, If you already have it, you can skip this step
touch gradle.properties
  1. Add Credentials to global gradle.properties. Credentials Placeholder : as on how to get the credentials, please fill in following form to gain access for all the necessary things you need, after you receive it you can replace the placeholder ?? with gained credentials.
echo "legion_username=??" >> gradle.properties && echo "legion_password=??" >> gradle.properties
  1. Add Legion Gitlab Registry on Gradle

Gradle Kotlin DSL

dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { setUrl("https://jitpack.io"/) }
maven {
name = "Legion"
setUrl("legion_repository")

Note: Placeholders subject to change are legion_repository, legion_username, and legion_password which you could get by requesting its access via our submission form.

Install or Add Dependency

  1. Add UI Kit Dependency on build.gradle
dependencies {
implementation(platform('com.telkom.legion:android-platform:2.0.0'))
implementation('com.telkom.legion:android-component')
implementation('com.telkom.legion:android-extension')
}

Additional installation if you plan to use Compose to put on the build.gradle

dependencies {
implementation("com.telkom.legion.compose:android-compose-platform:2.0.0")
implementation("com.telkom.legion.compose:android-compose-component:2.0.0")
}
  1. Add Jetifier Support on Project gradle.properties
android.enableJetifier = true;

Run Prototype Project

If you want runing prototype project, We very recomended working git using ssh instead of https

git clone ssh://git@gitlab.playcourt.id:31022/mobileteam/legion-android.git
// Open Legion Project Dir
cd legion-android
// Start Compile APK Prototype
./gradlew assembleDebug