diff --git a/node_modules/@ihealth/ihealthlibrary-react-native/ReactNativeIOSLibrary.podspec b/node_modules/@ihealth/ihealthlibrary-react-native/ReactNativeIOSLibrary.podspec index 0126593..857277d 100644 --- a/node_modules/@ihealth/ihealthlibrary-react-native/ReactNativeIOSLibrary.podspec +++ b/node_modules/@ihealth/ihealthlibrary-react-native/ReactNativeIOSLibrary.podspec @@ -1,24 +1,18 @@ - Pod::Spec.new do |s| s.name = "ReactNativeIOSLibrary" - s.version = "1.0.0" - s.summary = "ReactNativeIOSLibrary" - s.description = <<-DESC - ReactNativeIOSLibrary - DESC + s.version = "1.5.0" + s.summary = "iHealth React Native SDK" + s.description = "React Native bridge for iHealth device SDK" s.homepage = "https://dev.ihealthlabs.com" s.license = "MIT" - # s.license = { :type => "MIT", :file => "FILE_LICENSE" } - s.author = { "author" => "author@domain.cn" } - s.platform = :ios, "7.0" - s.source = { :git => "https://github.com/author/RNUtils.git", :tag => "master" } - s.source_files = "ios/**/*.{h,m}" + s.author = { "iHealthLabs" => "sdk@ihealthlabs.com" } + s.platform = :ios, "13.0" + s.source = { :git => "https://github.com/iHealthDeviceLabs/iHealth-React-Native-SDK.git", :tag => "v#{s.version}" } + s.source_files = "ios/**/*.{h,m}" + s.public_header_files = "ios/ReactNativeIOSLibrary/Communication_SDK/Headers/*.h" + s.vendored_libraries = "ios/ReactNativeIOSLibrary/Communication_SDK/iHealthSDK2.7.5.a" s.requires_arc = true + s.frameworks = "CoreBluetooth" - - s.dependency "React" - #s.dependency "others" - + s.dependency "React-Core" end - - diff --git a/node_modules/@ihealth/ihealthlibrary-react-native/android/build.gradle b/node_modules/@ihealth/ihealthlibrary-react-native/android/build.gradle index 56d6a99..7081ed8 100755 --- a/node_modules/@ihealth/ihealthlibrary-react-native/android/build.gradle +++ b/node_modules/@ihealth/ihealthlibrary-react-native/android/build.gradle @@ -1,12 +1,12 @@ apply plugin: 'com.android.library' android { - compileSdkVersion 28 - buildToolsVersion '28.0.3' + compileSdkVersion 35 + buildToolsVersion '35.0.0' defaultConfig { - minSdkVersion 18 - targetSdkVersion 28 + minSdkVersion 24 + targetSdkVersion 35 versionCode 1 versionName "1.0" diff --git a/node_modules/@ihealth/ihealthlibrary-react-native/react-native.config.js b/node_modules/@ihealth/ihealthlibrary-react-native/react-native.config.js new file mode 100644 index 0000000..32d9d2d --- /dev/null +++ b/node_modules/@ihealth/ihealthlibrary-react-native/react-native.config.js @@ -0,0 +1,13 @@ +module.exports = { + dependency: { + platforms: { + ios: { + podspecPath: require('path').resolve(__dirname, 'ReactNativeIOSLibrary.podspec'), + }, + android: { + sourceDir: require('path').resolve(__dirname, 'android'), + packageImportPath: 'import com.ihealth.ihealthlibrary.iHealthDeviceManagerPackage;', + }, + }, + }, +};