Development
Installation
Guide for installing Legion to your development
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
Open your global
gradle.properties
directory on with Terminal:For Windows :
C:\Users\<you>\.gradle\gradle.properties
cd C:\Users\<you>\.gradleFor Mac/Linux :
/Users/<you>/.gradle/gradle.properties
or/home/<you>/.gradle/gradle.properties
or~/.gradle/gradle.properties
cd ~/.gradle
Create global
gradle.properties
, If you already have it, you can skip this steptouch gradle.properties
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
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
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'}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'
Do you have feedback?
Please let us know to make it better