Skip to content

Commit

Permalink
iOS: fixed assertion failures due to reply messages that were sent on…
Browse files Browse the repository at this point in the history
… the wrong thread.

iOS: fixed assertion failures due to reply messages that were sent on the wrong thread.
  • Loading branch information
RodrigoSMarques committed Jan 4, 2021
1 parent ab4ea7f commit 3a7b759
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.3.2
* iOS: fixed assertion failures due to reply messages that were sent on the wrong thread.

# 1.3.1
* Android: fixed assertion failures due to reply messages that were sent on the wrong thread.

Expand Down
2 changes: 1 addition & 1 deletion example/.flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_branch_sdk","path":"/Volumes/SANDISK/Development/Github/flutter_branch_sdk/","dependencies":[]}],"android":[{"name":"flutter_branch_sdk","path":"/Volumes/SANDISK/Development/Github/flutter_branch_sdk/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"flutter_branch_sdk","dependencies":[]}],"date_created":"2021-01-03 23:28:34.205495","version":"1.22.5"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_branch_sdk","path":"/Volumes/SANDISK/Development/Github/flutter_branch_sdk/","dependencies":[]}],"android":[{"name":"flutter_branch_sdk","path":"/Volumes/SANDISK/Development/Github/flutter_branch_sdk/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"flutter_branch_sdk","dependencies":[]}],"date_created":"2021-01-04 03:04:12.732071","version":"1.22.5"}
2 changes: 1 addition & 1 deletion example/ios/Flutter/.last_build_id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5b19e5cb9a3de52bf49e88d43e6aeaf8
54948729ad66e2fb810129e5fed40a9c
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PODS:
- Branch (0.36.0)
- Flutter (1.0.0)
- flutter_branch_sdk (1.2.0):
- flutter_branch_sdk (1.3.1):
- Branch (~> 0.36.0)
- Flutter

Expand All @@ -22,7 +22,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
Branch: 8aebcb7a6465f19f9f4d315acced369ae078d3f2
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
flutter_branch_sdk: e112bc8cc622f6682099823ce4bc1520fb8d55db
flutter_branch_sdk: f20121b7f2a10923aa79f0a16627d217a1b465b6

PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c

Expand Down
13 changes: 5 additions & 8 deletions ios/Classes/SwiftFlutterBranchSdkPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,14 @@ public class SwiftFlutterBranchSdkPlugin: NSObject, FlutterPlugin, FlutterStream
eventSink: @escaping FlutterEventSink) -> FlutterError? {
self.eventSink = eventSink
if (initialParams != nil) {
DispatchQueue.main.async {
self.eventSink!(self.initialParams)
}
self.eventSink!(self.initialParams)
initialParams = nil
initialError = nil
} else if (initialError != nil) {
DispatchQueue.main.async {
self.eventSink!(FlutterError(code: String(self.initialError!.code),
message: self.initialError!.localizedDescription,
details: nil))
}
self.eventSink!(FlutterError(code: String(self.initialError!.code),
message: self.initialError!.localizedDescription,
details: nil))

initialParams = nil
initialError = nil
}
Expand Down
2 changes: 1 addition & 1 deletion ios/flutter_branch_sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'flutter_branch_sdk'
s.version = '1.3.1'
s.version = '1.3.2'
s.summary = 'Flutter Plugin for Brach Metrics SDK - https://branch.io'
s.description = <<-DESC
Flutter Plugin for Brach Metrics SDK - https:&#x2F;&#x2F;branch.io
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_branch_sdk
description: Flutter Plugin for create deep link using Brach SDK (https://branch.io). This plugin provides a cross-platform (iOS, Android).
version: 1.3.1
version: 1.3.2
homepage: https://github.com/RodrigoSMarques/flutter_branch_sdk

dependencies:
Expand Down

0 comments on commit 3a7b759

Please sign in to comment.