SDK Integration

Last Updated on : 2024-04-26 09:37:07download

Before you start

The Smart Lock SDK serves your development as an extension of Smart Life App SDK. For more information, see Preparation.

Fast integration

Use CocoaPods for fast integration

  1. Add the following code block to the Podfile:

    platform :ios, '8.0'
    
    target 'your_target_name' do
    	pod "ThingSmartLockKit"
    end
    
  2. In the root directory of your project, run pod update to integrate with a third-party library. For more information about CocoaPods, see CocoaPods Guides.

Import header files

To import header files, add the files where they are required depending on your project type.

  • Example for Objective-C:

    #import <ThingSmartLockKit/ThingSmartLockKit.h>
    
  • Example for Swift:

    import ThingSmartLockKit