Skip to content

LoFTechs/LTSample-Android-Java

Repository files navigation

LT SDK for Android sample

Platform Languages

Maven Central

Introduction

With LT SDK, you can build your own customized application with Call and IM function. This documentary provides a guideline that demonstrates how to build and configure an in-app message and call using LT SDK.

Getting started

This section explains the steps you need to take before testing the Android sample app.

Installation

To use our Android sample, you should first install LTSample for Android 1.0.0 or higher.

Requirements

Sample Android Java Gradle
LTSample 5.0 (API level 21) or higher 7 or higher 3.5.3 or higher

Start LT Sample

// Clone this repository
git clone git@github.com:LoFTechs/LTSample-Android-Java.git 

// Move to the LT sample
cd LTSample-Android-Java/
  • Set Develop api data and password to project level gradle.properties file:
Brand_ID="<YOUR_BRAND_ID>"
Auth_API="<YOUR_AUTH_API>"
LTSDK_API="<YOUR_LTSDK_API>"
LTSDK_TurnKey="<YOUR_LTSDK_TURNKEY>"
Developer_Account="<YOUR_DEVELOPER_ACCOUNT>"
Developer_Password="<YOUR_DEVELOPER_PASSWORD>"
License_Key="<YOUR_LINCENSE_KEY>"

Install LT SDK in your android project

With LT SDK, you can build your own customized application with Call and IM function. Refer DOC

Step 1. Add MavenCentral to your repositories in your project level build.gradle file:

allprojects {
    repositories {
        mavenCentral()
    }
}

Step 2. Add the library as a dependency in your module level build.gradle file:

Maven Central

def LTSDK_version = "x.y.z"
implementation "com.loftechs.sdk:lt:$LTSDK_version"
implementation "com.loftechs.sdk:im:$LTSDK_version"
implementation "com.loftechs.sdk:call:$LTSDK_version"

Step 3. Grant system permissions in your module level AndroidManifest.xml file:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

Releases

No releases published

Packages

No packages published

Languages