Skip to content

Commit 56b4b28

Browse files
Merge pull request #426 from RodrigoSMarques/dev
Release 8.4.1
2 parents 277e5be + c507463 commit 56b4b28

File tree

10 files changed

+24
-6
lines changed

10 files changed

+24
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,4 @@
7373
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
7474
/ios/flutter_branch_sdk/.build
7575
/example/android/app/.cxx
76+
/ios/flutter_branch_sdk/.index-build

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 8.4.1
2+
### 🐛 Bug Fixes
3+
* Fix issue #423: setRequestMetadata doesn't populate the key value pairs in the event request as expected
4+
15
## 8.4.0
26
### Native SDK Updates
37
### 🔧 Native SDK Updates

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = '1.0'
44
def getPackageVersion() {
55
def props = new Properties()
66
file('../pubspec.yaml').withInputStream { props.load(it) }
7-
println props.getProperty("version")
7+
// println props.getProperty("version")
88
props.getProperty("version")
99
}
1010

android/src/main/java/br/com/rsmarques/flutter_branch_sdk/FlutterBranchSdkInit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
public class FlutterBranchSdkInit {
88
private static final String DEBUG_NAME = "FlutterBranchSDK";
99
private static final String PLUGIN_NAME = "Flutter";
10-
private static final String PLUGIN_VERSION = "8.0.0";
10+
//private static final String PLUGIN_VERSION = "8.0.0";
1111

1212
public static void init(Context context) {
1313
LogUtils.debug(DEBUG_NAME, "SDK Init");

android/src/main/java/br/com/rsmarques/flutter_branch_sdk/FlutterBranchSdkPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,8 +691,8 @@ private void setRequestMetadata(MethodCall call) {
691691
try {
692692
requestMetadata.put(key, value);
693693
} catch (JSONException error) {
694+
return;
694695
}
695-
return;
696696
}
697697
new Handler(Looper.getMainLooper()).post(new Runnable() {
698698
@Override

example/lib/home_page.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,8 @@ class _HomePageState extends State<HomePage> {
385385

386386
void showGeneratedLink(BuildContext context, String url) async {
387387
initDeepLinkData();
388+
FlutterBranchSdk.setRequestMetadata('key1_1', 'value1');
389+
FlutterBranchSdk.setRequestMetadata('key2_1', 'value2');
388390
showModalBottomSheet(
389391
isDismissible: true,
390392
isScrollControlled: true,

example/lib/main.dart

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
1+
import 'package:flutter/foundation.dart' show PlatformDispatcher;
12
import 'package:flutter/material.dart';
23
import 'package:flutter_branch_sdk/flutter_branch_sdk.dart';
34

45
import 'app.dart';
56

67
void main() async {
78
WidgetsFlutterBinding.ensureInitialized();
9+
FlutterError.onError = (details) {
10+
FlutterError.presentError(details);
11+
};
12+
13+
PlatformDispatcher.instance.onError = (error, stack) {
14+
debugPrintStack(stackTrace: stack);
15+
return true;
16+
};
17+
818
//FlutterBranchSdk.setPreinstallCampaign('My Campaign Name');
919
//FlutterBranchSdk.setPreinstallPartner('Branch \$3p Parameter Value');
1020
//FlutterBranchSdk.clearPartnerParameters();
@@ -21,6 +31,7 @@ void main() async {
2131
FlqutterBranchSdk.setRequestMetadata('key2', 'value2');
2232
*/
2333
//await FlutterBranchSdk.requestTrackingAuthorization();
34+
2435
await FlutterBranchSdk.init(enableLogging: true, branchAttributionLevel: BranchAttributionLevel.FULL);
2536
FlutterBranchSdk.setConsumerProtectionAttributionLevel(BranchAttributionLevel.FULL);
2637
runApp(const MyApp());

ios/flutter_branch_sdk/sources/flutter_branch_sdk/FlutterBranchSdkPlugin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let MESSAGE_CHANNEL = "flutter_branch_sdk/message";
1010
let EVENT_CHANNEL = "flutter_branch_sdk/event";
1111
let ERROR_CODE = "FLUTTER_BRANCH_SDK_ERROR";
1212
let PLUGIN_NAME = "Flutter";
13-
let PLUGIN_VERSION = "8.4.0";
13+
let PLUGIN_VERSION = "8.4.1";
1414
let COCOA_POD_NAME = "org.cocoapods.flutter-branch-sdk";
1515

1616
public class FlutterBranchSdkPlugin: NSObject, FlutterPlugin, FlutterStreamHandler {

pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,4 +215,4 @@ packages:
215215
version: "14.3.1"
216216
sdks:
217217
dart: ">=3.7.0-0 <4.0.0"
218-
flutter: ">=3.27.0"
218+
flutter: ">=3.19.0"

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_branch_sdk
22
description: "Flutter Plugin for create deep link using Brach SDK (https://branch.io). This plugin provides a cross-platform (iOS, Android, Web)."
3-
version: 8.4.0
3+
version: 8.4.1
44
repository: https://github.com/RodrigoSMarques/flutter_branch_sdk
55

66
environment:

0 commit comments

Comments
 (0)