Skip to content

Commit

Permalink
Updated SDK version and added pod post install script (#42)
Browse files Browse the repository at this point in the history
updated sdk version
added pod instructions to avoid code signin for ios sdk bundle
  • Loading branch information
ketanshikharebsft authored Apr 10, 2024
1 parent f12fe6b commit d4ff460
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 5 deletions.
5 changes: 4 additions & 1 deletion BlueshiftSampleApp/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
require_relative '../node_modules/blueshift-react-native/post_install.rb'

platform :ios, '13.0'

Expand All @@ -22,10 +23,11 @@ target 'BlueshiftSampleApp' do
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
use_flipper!()

post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
blueshift_sdk_post_install(installer)
end
end

Expand All @@ -36,3 +38,4 @@ end
target 'NotificationService' do
pod 'BlueShift-iOS-Extension-SDK'
end

2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ buildscript {
apply plugin: 'com.android.library'

ext.sdkVersion = '3.4.6'
ext.pluginVersion = '1.1.3'
ext.pluginVersion = '1.2.0'

def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
Expand Down
2 changes: 1 addition & 1 deletion blueshift-react-native.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ Pod::Spec.new do |s|
s.source_files = "ios/**/*.{h,m,mm}"

s.dependency "React-Core"
s.dependency 'BlueShift-iOS-SDK' , '~> 2.4.2'
s.dependency 'BlueShift-iOS-SDK' , '~> 2.5.0'
end
2 changes: 1 addition & 1 deletion ios/BlueshiftBridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
NS_ASSUME_NONNULL_BEGIN
#define kScreenViewed @"screen_viewed"

#define kBlueshiftReactSDKVersion @"1.1.3"
#define kBlueshiftReactSDKVersion @"1.2.0"

@interface BlueshiftBridge : NSObject <RCTBridgeModule>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blueshift-react-native",
"version": "1.1.3",
"version": "1.2.0",
"description": "Official React native plugin for Blueshift iOS and Android SDK.",
"main": "index.js",
"types": "index.d.ts",
Expand Down
11 changes: 11 additions & 0 deletions post_install.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
def blueshift_sdk_post_install(installer)
target_name = 'BlueShift-iOS-SDK-BlueShift-iOS-SDK_BlueShift_iOS_SDK'
installer.pods_project.targets.each do |target|
if target.name == target_name
target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_REQUIRED'] = 'NO'
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end
end
end

0 comments on commit d4ff460

Please sign in to comment.