From 35d4540740f4d6565765e73ed84307df26f0076b Mon Sep 17 00:00:00 2001 From: Jelle Date: Wed, 29 May 2024 10:17:03 +0200 Subject: [PATCH] feat: update the documentation for the security dependency for iOS and Android BREAKING CHANGE: Updated the tuya SDK to version > 5.0 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2b85eaeb..090434c7 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,11 @@ This library contains native code which is automatically linked in React Native ## Installation -In the Tuya development environment create a new app and make sure you have an "App key", "App secret" and "Secure image". [Read how to do this](https://tuyainc.github.io/tuyasmart_home_ios_sdk_doc/en/resource/Preparation.html). +In the Tuya development environment create a new app and make sure you have an "App key", "App secret" [Read how to do this](https://tuyainc.github.io/tuyasmart_home_ios_sdk_doc/en/resource/Preparation.html). ### iOS -Put the secure image into the root path of your project as [explained here](https://tuyainc.github.io/tuyasmart_home_ios_sdk_doc/en/resource/Preparation.html). +Download the security dependency and add it to the project as [explained here](https://developer.tuya.com/en/docs/app-development/integrate-sdk?id=Ka5d52ewngdoi#title-1-Integrate%20with%20the%20SDK). In `ios/AppDelegate.m`, add the following import; @@ -48,7 +48,7 @@ Now replace the `xxx` with your app key and secret key. ### Android -Assuming you already have created an app in the Tuya development environment (otherwise follow the iOS steps before this), follow [these steps](https://tuyainc.github.io/tuyasmart_home_android_sdk_doc/en/resource/Integrated.html#3-integrated-security-image). You should now have an app key, app secret and security image for Android. Make sure the security image is put in `android/src/main/assets/t_s.bmp`. +Assuming you already have created an app in the Tuya development environment (otherwise follow the iOS steps before this), follow [these steps](https://developer.tuya.com/en/docs/app-development/integrated?id=Ka69nt96cw0uj#title-5-Step%203%3A%20Integrate%20with%20security%20component). You should now have an app key, app secret and security dependency for Android Open your `AndroidManifest.xml` and put the following **in the `` tag**: