Skip to content

Commit

Permalink
#20 chore: Update to ContextSDK 4.8.1-alpha.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerluan authored Dec 26, 2024
2 parents 2b6cceb + 90efddb commit 099c20e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-context-sdk",
"version": "4.7.5",
"version": "4.8.1-alpha.2",
"description": "ContextSDK for React Native",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
6 changes: 4 additions & 2 deletions react-native-context-sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Pod::Spec.new do |s|
s.homepage = package["homepage"]
s.authors = package["author"]
s.platforms = { :ios => '14.0' }
s.source = { :git => "https://github.com/context-sdk/react-native", :tag => s.version }
s.source = { :git => "https://github.com/context-sdk/react-native", :tag => s.version.to_s }
s.source_files = "ios/**/*.{h,m,mm,swift}"

# A map used to map the React Native version to the compatible Context SDK version, only when the these versions are not the same.
Expand All @@ -19,8 +19,10 @@ Pod::Spec.new do |s|
"4.7.3" => "4.7.0",
"4.7.4" => "4.7.0",
"4.7.5" => "4.7.1",
"4.8.1-alpha.1" => "4.8.0",
"4.8.1-alpha.2" => "4.8.0",
}
mapped_version = version_mapping[s.version] || s.version
mapped_version = version_mapping[s.version.to_s] || s.version.to_s
s.dependency("ContextSDK", mapped_version)

# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
Expand Down

0 comments on commit 099c20e

Please sign in to comment.