Quickstart

Follow below steps to integrate Terra with your project

Create your product in Terra Console#

  • Create and configure your app on Terra Console (the site is under construction so please contact us, we will do it for you)

Installation#

Firstly please refer to Teko repository access guide for instruction to setup the environment.

When the environment is ready, add the below code to import Terra:

Using Gradle

Add to your project's build.gradle.kts

implement("vn.teko.terra:terra-core-android:$version")
flutter pub add terra_flutter

For detail installation, please refer Terra installation

Configuration#

Configuration file is required to initialize Terra. To create this file please refer to Create configuration file

Initialize TerraApp#

Initialize TerraApp when your Application starts

var terraApp: TerraApp? = null
terraApp = TerraApp.initializeApp(
application = application,
appName = "vnshop"
)

Get the TerraApp instance#

TerraApp is used to access various Terra features, to get its instance use:

val terraApp: TerraApp = TerraApp.getInstance(appName = "vnshop")

At this point Terra is successfully setup!