Offline Install

This document provides developers with how to use offline files to complete the installation of the terminal SDK. To obtain the SDK file, you need to contact us.

Android

Directory Structure

The SDK provides two types of integrated aar packages, which can be selected according to requirements and function descriptions.

A more compliant version

  • mobrisk-base-x.x.x.x.aar
    • fm-shell-x.x.x.x.jar: main project
    • fm-mobrisk.jar: business framework

Complete capability version

  • mobrisk-plus-x.x.x.x.aar
    • fm-shell-x.x.x.x.jar: main project
    • fm-mobrisk.jar: business framework
    • fm-readphone.jar: a collection of equipment information related to business
    • fm-packagelist.jar: a collection of installation package lists and running app list-related services
    • fm-sensor.jar: a collection of sensor information
    • fm-location.jar: a collection of GPS location information
    • fm-wifiinfo.jar: a collection of wifi information related to the device

Install

Copy the .aar file to the libs directory of the main module and create a libs directory if it does not exist.

Please delete the old version SDK first, and if there are .so files, they also need to be deleted at the same time.

Add dependency

In the build.gradle file under the main module, declare the SDK package dependencies:

dependencies {

   implementation fileTree(include: ['*.jar','*.aar'], dir: 'libs')
   ...
}

iOS

Structure

  • TDMobRisk.xcframework(TrustDecision SDK, is a static library)
  • TDCorePlugin.xcframework (TrustDecision plugin, is an Embed dynamic library)
  • FMDeviceManagerFramework.xcframework (DeviceFingerprint SDK, is a static library)

Install

  • Drag the TDMobRisk.xcframework , TDCorePlugin.xcframework and FMDeviceManagerFramework.xcframework files into the project directory
  • Check Copy items if needed, and check the required Targets. Xcode will automatically add SDK to Linked Frameworks and Libraries
  • Set Validate Workspace to YES under TARGETS -> Your project target -> Build Settings -> Build Options (Xcode14 and above versions do not need to be set)
  • Add -ObjC under TARGETS -> Your project target -> Build Settings -> Linking -> Other Linker Flags
  • Set TDCorePlugin.xcframework to Embed & Sign under TARGETS -> Your project target -> General -> Frameworks, Libraries and Embedded Content
  • Set FMDeviceManagerFramework.xcframework and TDMobRisk.xcframework to Do Not Embed under TARGETS -> Your project target -> General -> Frameworks, Libraries and Embedded Content
  • Add the dynamic link library libresolv.9.tbd in TARGETS -> Your project target -> Build Phases -> Linked Frameworks and Libraries