Device Control SDK Integration

1. Overview

This article mainly introduces how to integrate Lumi device control SDK.

2. Preconditions

  1. Confirm completion Preparation
  2. Confirm the completion of Environment Build

3. Features

3.1 Main Function

The device control SDK mainly provides Aqara-style UI components, and supports direct calls from third-party app to enable it to control Lumi devices.

3.2 SDK Size

Dependent library Description Size
Device control Rendering framework and contains various UI components 7MB
Other third-party open source components Components necessary for the SDK to run 48MB
Total - 55MB

Note: 55MB is the maximum increment of the integrated SDK, that is, when the dependencies of the third-party app and the third-party dependencies of the SDK have no intersection. Normally, it will be less than this value.

3.3 Support Device Category

See Device List

4. Integrated

4.1 Open the Android Studio project

4.2 Edit build.gradle in the app directory

dependencies {
    implementation 'com.lumi.external:core:2.1.9'
    //Device Control SDK
    implementation 'com.lumi.sdk:rmui:3.2.0'

4.3 Initialization

See Environment Construction - Unified Initialization

5. Code Confusion

-keep public class*{*;}
-keep class com.lumi.rm.common.exception.*{*;}
Copyright © 2023 Lumi United Technology Co., Ltd. all right reserved,powered by GitbookFile Modify: 2024-04-24 15:18:24

results matching ""

    No results matching ""