summaryrefslogtreecommitdiff
path: root/patches/@ihealth+ihealthlibrary-react-native+1.5.0.patch
diff options
context:
space:
mode:
authorhc <haocheng.xie@respiree.com>2026-04-10 17:39:12 +0800
committerhc <haocheng.xie@respiree.com>2026-04-10 17:39:22 +0800
commite4fb9966e762852bf17f21c8406501d42fae0b61 (patch)
tree658bbdba977ff7846a17ee94b8ed6b676f6ce9dd /patches/@ihealth+ihealthlibrary-react-native+1.5.0.patch
Initial commit: iHealth BLE scanner app with patched SDK v1.5.0
Diffstat (limited to 'patches/@ihealth+ihealthlibrary-react-native+1.5.0.patch')
-rw-r--r--patches/@ihealth+ihealthlibrary-react-native+1.5.0.patch80
1 files changed, 80 insertions, 0 deletions
diff --git a/patches/@ihealth+ihealthlibrary-react-native+1.5.0.patch b/patches/@ihealth+ihealthlibrary-react-native+1.5.0.patch
new file mode 100644
index 0000000..22f61bb
--- /dev/null
+++ b/patches/@ihealth+ihealthlibrary-react-native+1.5.0.patch
@@ -0,0 +1,80 @@
1diff --git a/node_modules/@ihealth/ihealthlibrary-react-native/ReactNativeIOSLibrary.podspec b/node_modules/@ihealth/ihealthlibrary-react-native/ReactNativeIOSLibrary.podspec
2index 0126593..857277d 100644
3--- a/node_modules/@ihealth/ihealthlibrary-react-native/ReactNativeIOSLibrary.podspec
4+++ b/node_modules/@ihealth/ihealthlibrary-react-native/ReactNativeIOSLibrary.podspec
5@@ -1,24 +1,18 @@
6-
7 Pod::Spec.new do |s|
8 s.name = "ReactNativeIOSLibrary"
9- s.version = "1.0.0"
10- s.summary = "ReactNativeIOSLibrary"
11- s.description = <<-DESC
12- ReactNativeIOSLibrary
13- DESC
14+ s.version = "1.5.0"
15+ s.summary = "iHealth React Native SDK"
16+ s.description = "React Native bridge for iHealth device SDK"
17 s.homepage = "https://dev.ihealthlabs.com"
18 s.license = "MIT"
19- # s.license = { :type => "MIT", :file => "FILE_LICENSE" }
20- s.author = { "author" => "author@domain.cn" }
21- s.platform = :ios, "7.0"
22- s.source = { :git => "https://github.com/author/RNUtils.git", :tag => "master" }
23- s.source_files = "ios/**/*.{h,m}"
24+ s.author = { "iHealthLabs" => "sdk@ihealthlabs.com" }
25+ s.platform = :ios, "13.0"
26+ s.source = { :git => "https://github.com/iHealthDeviceLabs/iHealth-React-Native-SDK.git", :tag => "v#{s.version}" }
27+ s.source_files = "ios/**/*.{h,m}"
28+ s.public_header_files = "ios/ReactNativeIOSLibrary/Communication_SDK/Headers/*.h"
29+ s.vendored_libraries = "ios/ReactNativeIOSLibrary/Communication_SDK/iHealthSDK2.7.5.a"
30 s.requires_arc = true
31+ s.frameworks = "CoreBluetooth"
32
33-
34- s.dependency "React"
35- #s.dependency "others"
36-
37+ s.dependency "React-Core"
38 end
39-
40-
41diff --git a/node_modules/@ihealth/ihealthlibrary-react-native/android/build.gradle b/node_modules/@ihealth/ihealthlibrary-react-native/android/build.gradle
42index 56d6a99..7081ed8 100755
43--- a/node_modules/@ihealth/ihealthlibrary-react-native/android/build.gradle
44+++ b/node_modules/@ihealth/ihealthlibrary-react-native/android/build.gradle
45@@ -1,12 +1,12 @@
46 apply plugin: 'com.android.library'
47
48 android {
49- compileSdkVersion 28
50- buildToolsVersion '28.0.3'
51+ compileSdkVersion 35
52+ buildToolsVersion '35.0.0'
53
54 defaultConfig {
55- minSdkVersion 18
56- targetSdkVersion 28
57+ minSdkVersion 24
58+ targetSdkVersion 35
59 versionCode 1
60 versionName "1.0"
61
62diff --git a/node_modules/@ihealth/ihealthlibrary-react-native/react-native.config.js b/node_modules/@ihealth/ihealthlibrary-react-native/react-native.config.js
63new file mode 100644
64index 0000000..32d9d2d
65--- /dev/null
66+++ b/node_modules/@ihealth/ihealthlibrary-react-native/react-native.config.js
67@@ -0,0 +1,13 @@
68+module.exports = {
69+ dependency: {
70+ platforms: {
71+ ios: {
72+ podspecPath: require('path').resolve(__dirname, 'ReactNativeIOSLibrary.podspec'),
73+ },
74+ android: {
75+ sourceDir: require('path').resolve(__dirname, 'android'),
76+ packageImportPath: 'import com.ihealth.ihealthlibrary.iHealthDeviceManagerPackage;',
77+ },
78+ },
79+ },
80+};