Skip to main content

Development

Installation

Guide for installing Legion to your development

banner-Installation

Prequisites

Already have at least these below:

  • Android Studio: BumbleBee version 2021.1.1 Patch 2 or higher
  • JDK: Java Development Kit 11 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

Installation

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 for how to get the credentials, please fill in following This link request to gain access for all the necessary things you need, after you receive it you can replace the placeholder ?? with gained credentials.

    echo "nexus_username=??" >> gradle.properties && echo "nexus_password=??" >> gradle.properties

  1. Add Telkom Repository Nexus on Gradle

    Gradle Version 7

    dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
    google()
    mavenCentral()
    ...
    maven {
    url "https://nexus.playcourt.id/repository/dev/"
    credentials {

    Gradle Version 6 or below

    allprojects {
    repositories {
    google()
    mavenCentral()
    ...
    maven {
    url "https://nexus.playcourt.id/repository/dev/"
    credentials {
    username project.properties["nexus_username"] ?: "developer"

Install or Add Dependency

  1. Add UI Kit Dependency on build.gradle

    dependencies {
    implementation platform('com.telkom.legion:android-platform:1.23.7')
    implementation 'com.telkom.legion:android-component'
    implementation 'com.telkom.legion:android-extension'
    }

  2. Add Jetifier Support on Project gradle.properties

    android.enableJetifier = true;

Adding the themes

With our intention to simplify, make both designer and developer product development seamless, some tribes have their team already provided, following are the currently available tribes for installation. Just copy paste in your build.gradle

Tribe Agree


  • implementation 'com.telkom.legion:android-theme-agr:0.2.0'

  • implementation 'com.telkom.legion:android-theme-aqf:0.2.0'

  • implementation 'com.telkom.legion:android-theme-agl:0.2.0'



Tribe EWZ


  • implementation 'com.telkom.legion:android-theme-mtn:0.2.0'