Development
Installation
Guide for installing Legion to your development
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
- 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
- Create global
gradle.properties
, If you already have it, you can skip this step
touch gradle.properties
- Add Credentials to global `gradle.properties. Credentials Placeholder : as for 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
- Add Legion Gitlab Registry on Gradle
Gradle Version 7
dependencyResolutionManagement {repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)repositories {google()mavenCentral()...maven {name "Legion"url "https://gitlab.playcourt.id/api/v4/projects/17748/packages/maven"
Install or Add Dependency
- Add UI Kit Dependency on build.gradle
dependencies {implementation platform('com.telkom.legion:android-platform:1.41.2')implementation 'com.telkom.legion:android-component'implementation 'com.telkom.legion:android-extension'}
- 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 Dircd legion-android// Start Compile APK Prototype./gradlew assembleDebug