Device Control SDK Integration

1. Overview

This document mainly introduces how to integrate the Lumi Device Control SDK.

2. Prerequisites

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

3. Features

3.1 Core Functions

The Device Control SDK mainly provides Aqara-style UI components and supports direct calls from third-party apps, enabling them to control Lumi devices.

3.2 SDK Size

Dependency Description Size
Device Control Rendering framework and various UI components 7MB
Other third-party open-source components Components required for SDK operation 48MB
Total - 55MB

Note: 55MB is the maximum incremental size of SDK integration, which occurs when there is no overlap between the third-party app’s dependencies and those of the SDK. In most cases, it will be smaller.

3.3 Supported Device Categories

See Device List for details.

4. Integration

4.1 Open the Android Studio Project

4.2 Edit build.gradle in the app Directory

Get the latest version: The Latest Version of the SDK

dependencies {
    implementation 'com.lumi.external:core:2.2.62'
    implementation 'com.lumi.commonui:ui:1.5.33'

    implementation 'com.lumi.sdk:reactnative:8.1.2'
    implementation 'com.lumi.sdk:rmextra:2.0.10'
    implementation 'com.lumi.sdk:device-router:1.0.10'
    implementation 'com.lumi.sdk:module-setting:2.0.35'
}

4.3 Initialization

See Environment Build - Unified Initialization

5. Code Obfuscation

-keep public class com.lumi.rm.data.*{*;}
-keep class com.lumi.rm.common.exception.*{*;}
lumi LogoCopyright © 2023 Lumi United Technology Co., Ltd. all right reserved,powered by GitbookFile Modify: 2026-08-11 17:03:05

results matching ""

    No results matching ""