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

  • iOS 15+
  • XCode 13+
  • Swift 5.6+

Installation

Step

  1. Go to https://gitlab.playcourt.id/mobileteam/legion-ios
  2. Copy URL Clone with SSH
    steps installation
  3. Open XCode
  4. Open Package Dependencies
    steps installation
  5. Add search copy URL link Gitlab Clone
    steps installation
  6. Add Theme
    steps installation
  7. Legion is Ready to Use !

Theme

Managing Theme of the Package

  1. Click General → Target

    theme
  2. Scroll Down -> Manage Theme

    theme

    Setup

  3. Add Theme to Target → General → Frameworks, Libraries, and Embedded Content

  4. in AppDelegate.swift:

  5. Import selected theme

call LGN.configure()

Instant Handoff

Legion also support project creation based on Figma Design. We called this project “Instant Handoff”, for example you can watch this video

Requirements

  1. Install python3
  2. Install Xcodegen
  3. Install Fastlane
  4. Install ios-sim
  5. Install swift-format
  6. XCode 14.x.x or latest
  7. Install Xcodegen

Getting started

  1. Clone repository:
git clone https://gitlab.playcourt.id/telkomdev-fardan/ios-legion-handoff.git
  1. Select the repository directory in Terminal.
  2. Run from your terminal.
bundle exec fastlane generate

Notes

Make Sure Your Ruby Version is Supported

If you are using a MacBook, it comes with a built-in Ruby located in /usr/bin. However, you should install your own Ruby version. Follow the detailed steps provided on [this page] (https://gorails.com/setup/macos/13-ventura) to install Ruby on your device. Make sure Ruby is installed successfully by referring to that guide.

Make Sure Your bundler Version is Supported

After installing the required Ruby version, install Bundler, which is needed for Fastlane. This repository uses Bundler version 2.4.3. Install Bundler using:

gem install bundler

If you encounter permission errors, avoid using sudo unless absolutely necessary. Instead, install Bundler locally:

gem install bundler --user-install

This method is safer than using sudo.

Make Sure Your gem Version is Supported

Ensure your gem version is compatible. This repository requires gem version 3.3.26 or higher. Check your gem version with:

gem --version

If your gem version is supported, you can build the project using:

bundle exec fastlane generate