From d4ff4608523821434e19c402d23c03280be2f464 Mon Sep 17 00:00:00 2001 From: Ketan Shikhare <65150539+ketanshikharebsft@users.noreply.github.com> Date: Wed, 10 Apr 2024 13:18:53 +0530 Subject: [PATCH] Updated SDK version and added pod post install script (#42) updated sdk version added pod instructions to avoid code signin for ios sdk bundle --- BlueshiftSampleApp/ios/Podfile | 5 ++++- android/build.gradle | 2 +- blueshift-react-native.podspec | 2 +- ios/BlueshiftBridge.h | 2 +- package.json | 2 +- post_install.rb | 11 +++++++++++ 6 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 post_install.rb diff --git a/BlueshiftSampleApp/ios/Podfile b/BlueshiftSampleApp/ios/Podfile index 1fc3d72..fd62cd9 100644 --- a/BlueshiftSampleApp/ios/Podfile +++ b/BlueshiftSampleApp/ios/Podfile @@ -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' @@ -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 @@ -36,3 +38,4 @@ end target 'NotificationService' do pod 'BlueShift-iOS-Extension-SDK' end + diff --git a/android/build.gradle b/android/build.gradle index b657968..56a25fb 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -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 diff --git a/blueshift-react-native.podspec b/blueshift-react-native.podspec index 26bb39e..da52061 100644 --- a/blueshift-react-native.podspec +++ b/blueshift-react-native.podspec @@ -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 diff --git a/ios/BlueshiftBridge.h b/ios/BlueshiftBridge.h index bfe50fc..f16aa00 100644 --- a/ios/BlueshiftBridge.h +++ b/ios/BlueshiftBridge.h @@ -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 diff --git a/package.json b/package.json index 237b3c4..32e3df5 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/post_install.rb b/post_install.rb new file mode 100644 index 0000000..068e48b --- /dev/null +++ b/post_install.rb @@ -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