Skip to content

Commit

Permalink
chore: upgrade iOS SDK to 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tuantvu committed Apr 13, 2021
1 parent 8a7b5d9 commit 0321dfb
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 4 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ Ensure in your Podfile you have an entry like below declaring platform of 11.0 o
platform :ios, '11.0'
```

Disable BITCODE.
```
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end
```

#### Info.plist
Add NSCameraUsageDescription and NSMicrophoneUsageDescription to your
Info.plist.
Expand Down
1 change: 0 additions & 1 deletion jitsi_meet/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ flutter_export_environment.sh

examples/all_plugins/pubspec.yaml

Podfile
Podfile.lock
Pods/
.symlinks/
Expand Down
2 changes: 2 additions & 0 deletions jitsi_meet/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## 4.0.0-nullsafety.0
* Breaking: Null safety support.
* Update Jitsi Meet SDK for Android to 3.3.0.
* Update Jitsi Meet SDK for iOS to 3.3.0.

## 3.0.0
* BREAKING: Add support for web.
Expand Down
11 changes: 11 additions & 0 deletions jitsi_meet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ Ensure in your Podfile you have an entry like below declaring platform of 11.0 o
platform :ios, '11.0'
```

Disable BITCODE.
```
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end
```

#### Info.plist
Add NSCameraUsageDescription and NSMicrophoneUsageDescription to your
Info.plist.
Expand Down
44 changes: 44 additions & 0 deletions jitsi_meet/example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Uncomment this line to define a global platform for your project
platform :ios, '11.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}

def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end

File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
use_frameworks!
use_modular_headers!

flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end
2 changes: 1 addition & 1 deletion jitsi_meet/ios/Classes/JitsiViewController.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import UIKit
import JitsiMeet
import JitsiMeetSDK

class JitsiViewController: UIViewController {

Expand Down
2 changes: 1 addition & 1 deletion jitsi_meet/ios/Classes/SwiftJitsiMeetPlugin.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Flutter
import UIKit
import JitsiMeet
import JitsiMeetSDK

public class SwiftJitsiMeetPlugin: NSObject, FlutterPlugin, FlutterStreamHandler {
var window: UIWindow?
Expand Down
2 changes: 1 addition & 1 deletion jitsi_meet/ios/jitsi_meet.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Jitsi Meet Plugin
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.dependency 'JitsiMeetSDK', '2.11.0'
s.dependency 'JitsiMeetSDK', '3.3.0'
s.platform = :ios, '11.0'

# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
Expand Down

0 comments on commit 0321dfb

Please sign in to comment.