From d5d98f8d77932281ca29d1ce6f86c05b21060a0f Mon Sep 17 00:00:00 2001 From: Tiago Jacobs Date: Tue, 15 Feb 2022 02:48:40 -0300 Subject: [PATCH] Update sdk version --- ios/Podfile | 27 ++++++++++++++++++++++++++- ios/Podfile.lock | 12 +++++++++--- package-lock.json | 25 ++++++++++++++++++++++--- package.json | 2 +- 4 files changed, 58 insertions(+), 8 deletions(-) diff --git a/ios/Podfile b/ios/Podfile index bcf7627..26921f6 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -1,11 +1,13 @@ require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' -platform :ios, '11.0' +platform :ios, '14.7' target 'BigBlueButton' do config = use_native_modules! + pod 'react-native-webview', :path => '../node_modules/react-native-webview' + use_react_native!( :path => config[:reactNativePath], # to enable hermes on iOS, change `false` to `true` and then install pods @@ -24,7 +26,30 @@ target 'BigBlueButton' do # use_flipper!() post_install do |installer| + fix_deployment_target(installer) react_native_post_install(installer) __apply_Xcode_12_5_M1_post_install_workaround(installer) end + + def fix_deployment_target(installer) + return if !installer + project = installer.pods_project + project_deployment_target = project.build_configurations.first.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] + + puts "Make sure all pods deployment target is #{project_deployment_target.green}" + project.targets.each do |target| + puts " #{target.name}".blue + target.build_configurations.each do |config| + config.build_settings['SWIFT_VERSION'] = '5.5.2' + + old_target = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] + new_target = project_deployment_target + next if old_target == new_target + puts " #{config.name}: #{old_target.yellow} -> #{new_target.green}" + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = new_target + end + end + end + + end diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 91176d4..cfb07d8 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -1,5 +1,5 @@ PODS: - - bigbluebutton-mobile-sdk (0.1.0): + - bigbluebutton-mobile-sdk (0.1.3): - React-Core - WebRTC-lib - boost (1.76.0) @@ -212,6 +212,8 @@ PODS: - React-jsinspector (0.67.2) - React-logger (0.67.2): - glog + - react-native-webview (11.17.2): + - React-Core - React-perflogger (0.67.2) - React-RCTActionSheet (0.67.2): - React-Core/RCTActionSheetHeaders (= 0.67.2) @@ -301,6 +303,7 @@ DEPENDENCIES: - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) - React-logger (from `../node_modules/react-native/ReactCommon/logger`) + - react-native-webview (from `../node_modules/react-native-webview`) - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) @@ -357,6 +360,8 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native/ReactCommon/jsinspector" React-logger: :path: "../node_modules/react-native/ReactCommon/logger" + react-native-webview: + :path: "../node_modules/react-native-webview" React-perflogger: :path: "../node_modules/react-native/ReactCommon/reactperflogger" React-RCTActionSheet: @@ -385,7 +390,7 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native/ReactCommon/yoga" SPEC CHECKSUMS: - bigbluebutton-mobile-sdk: 500aa129e690ed23fe94d6ca20d1dfec09469de4 + bigbluebutton-mobile-sdk: cd5cd0a43fd820be48187e81c6180352f0f8dcf5 boost: a7c83b31436843459a1961bfd74b96033dc77234 DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662 FBLazyVector: 244195e30d63d7f564c55da4410b9a24e8fbceaa @@ -404,6 +409,7 @@ SPEC CHECKSUMS: React-jsiexecutor: 52beb652bbc61201bd70cbe4f0b8edb607e8da4f React-jsinspector: 595f76eba2176ebd8817a1fffd47b84fbdab9383 React-logger: 23de8ea0f44fa00ee77e96060273225607fd4d78 + react-native-webview: 77ee909f73e1fcab76380f7dcc3344771fe61bd8 React-perflogger: 3c9bb7372493e49036f07a82c44c8cf65cbe88db React-RCTActionSheet: 052606483045a408693aa7e864410b4a052f541a React-RCTAnimation: 08d4cac13222bb1348c687a0158dfd3b577cdb63 @@ -419,6 +425,6 @@ SPEC CHECKSUMS: WebRTC-lib: f76423cdaedf25145b59a1f691e0f371e9c262a5 Yoga: 9b6696970c3289e8dea34b3eda93f23e61fb8121 -PODFILE CHECKSUM: 8d01a6f2b0c512d020b5164f1ef5603fbdd8aeb4 +PODFILE CHECKSUM: ec7ddc14d2f705e1e7d352f4c28bdee2a43510c0 COCOAPODS: 1.11.2 diff --git a/package-lock.json b/package-lock.json index 949e802..7d38673 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2535,9 +2535,12 @@ "integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==" }, "bigbluebutton-mobile-sdk": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/bigbluebutton-mobile-sdk/-/bigbluebutton-mobile-sdk-0.1.0.tgz", - "integrity": "sha512-9uLjSWa94I3HdxHoMq8VKkGurbsxvcokbve4YCMiX8LBBkHkNXlfn5gPG8Oi9W3sZyKYAgRDLtrsSz1sNovG8w==" + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/bigbluebutton-mobile-sdk/-/bigbluebutton-mobile-sdk-0.1.3.tgz", + "integrity": "sha512-L707kTLVIQYOw3CTYhjAgLy8BywAoK4CAUI/qSWpljnphIBkWWRwXDo7wx2l/eeebOcROHDPOHAhI/IAA5XTHw==", + "requires": { + "react-native-webview": "^11.17.2" + } }, "bplist-creator": { "version": "0.1.0", @@ -7521,6 +7524,22 @@ "nullthrows": "^1.1.1" } }, + "react-native-webview": { + "version": "11.17.2", + "resolved": "https://registry.npmjs.org/react-native-webview/-/react-native-webview-11.17.2.tgz", + "integrity": "sha512-7Sac02xq11qFACJmSUuCnH0aUFtSWUvSRC09EZ2qwNXq4IvT05xlX6978nlKUXf2ljw/0qZIzqbKzuXnu6Wq8Q==", + "requires": { + "escape-string-regexp": "2.0.0", + "invariant": "2.2.4" + }, + "dependencies": { + "escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==" + } + } + }, "react-refresh": { "version": "0.4.3", "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.4.3.tgz", diff --git a/package.json b/package.json index 94d5c5f..5edec0f 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "lint": "eslint ." }, "dependencies": { - "bigbluebutton-mobile-sdk": "^0.1.0", + "bigbluebutton-mobile-sdk": "^0.1.3", "react": "17.0.2", "react-native": "0.67.2" },