From a74649bc1b7f51c779c4c05aa57e4a13643ad612 Mon Sep 17 00:00:00 2001 From: Rodrigo de Souza Marques Date: Thu, 29 Feb 2024 07:52:09 -0300 Subject: [PATCH 01/16] Release 7.1.0 ### Features * New Methods: - `setDMAParamsForEEA` - In response to the European Union's enactment of the Digital Markets Act (DMA), this new method help pass consent information from your user to Google. See documentation for details: - [iOS](https://help.branch.io/developers-hub/docs/ios-advanced-features#user-data) - [Android] (https://help.branch.io/developers-hub/docs/android-advanced-features#user-data) - [Web](https://help.branch.io/developers-hub/docs/web-full-reference#setdmaparamsforeea) ### Issues * Fix issue #297: Allow Call setRequestMetadata after FlutterBranchSdk.init() method ### Native SDK Updates * Updated included Branch Android SDK to 5.9.0 - [Android Version History](https://github.com/BranchMetrics/android-branch-deep-linking-attribution/releases) * Updated included Branch iOS SDK to 3.3.0 - [iOS Version History](https://github.com/BranchMetrics/ios-branch-deep-linking-attribution/releases) --- CHANGELOG.md | 18 + README.md | 29 +- android/build.gradle | 10 +- .../FlutterBranchSdkPlugin.java | 15 + example/ios/Podfile.lock | 12 +- example/ios/Runner.xcodeproj/project.pbxproj | 5 +- .../xcshareddata/xcschemes/Runner.xcscheme | 2 +- example/lib/main.dart | 379 +++++++++--------- example/pubspec.lock | 52 ++- example/web/index.html | 5 +- ios/Classes/SwiftFlutterBranchSdkPlugin.swift | 14 + ios/flutter_branch_sdk.podspec | 2 +- lib/src/flutter_branch_sdk.dart | 14 + .../flutter_branch_sdk_method_channel.dart | 20 +- ...flutter_branch_sdk_platform_interface.dart | 11 + lib/src/flutter_branch_sdk_web.dart | 16 +- lib/src/web/branch_js.dart | 11 + pubspec.lock | 50 ++- pubspec.yaml | 2 +- 19 files changed, 430 insertions(+), 237 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4897fbdb..31d50e4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,21 @@ +## 7.1.0 +### Features +* New Methods: + - `setDMAParamsForEEA` - In response to the European Union's enactment of the Digital Markets Act (DMA), this new method help pass consent information from your user to Google. + See documentation for details: + - [iOS](https://help.branch.io/developers-hub/docs/ios-advanced-features#user-data) + - [Android] (https://help.branch.io/developers-hub/docs/android-advanced-features#user-data) + - [Web](https://help.branch.io/developers-hub/docs/web-full-reference#setdmaparamsforeea) + +### Issues + +* Fix issue #297: Allow Call setRequestMetadata after FlutterBranchSdk.init() method + +### Native SDK Updates + +* Updated included Branch Android SDK to 5.9.0 - [Android Version History](https://github.com/BranchMetrics/android-branch-deep-linking-attribution/releases) +* Updated included Branch iOS SDK to 3.3.0 - [iOS Version History](https://github.com/BranchMetrics/ios-branch-deep-linking-attribution/releases) + ## 7.0.4 ### Issues diff --git a/README.md b/README.md index eb292560..7477d91a 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@ Branch.io helps mobile apps grow with deep links that power referral systems, sh Supports Android, iOS and Web. -* Android - Branch SDK Version >= 5.8.+ [Android Version History](https://github.com/BranchMetrics/android-branch-deep-linking-attribution/releases) -* iOS - Branch SDK Version >= 3.0.+ [iOS Version History](https://github.com/BranchMetrics/ios-branch-deep-linking-attribution/releases) +* Android - Branch SDK Version >= 5.9.0 [Android Version History](https://github.com/BranchMetrics/android-branch-deep-linking-attribution/releases) +* iOS - Branch SDK Version >= 3.3.0 [iOS Version History](https://github.com/BranchMetrics/ios-branch-deep-linking-attribution/releases) Implemented functions in plugin: @@ -74,7 +74,9 @@ You need add Branch Javascript in your `web\index.html` at the top of your ` - (function(b,r,a,n,c,h,_,s,d,k){if(!b[n]||!b[n]._q){for(;s<_.length;)c(h,_[s++]);d=r.createElement(a);d.async=1;d.src="https://cdn.branch.io/branch-latest.min.js";k=r.getElementsByTagName(a)[0];k.parentNode.insertBefore(d,k);b[n]=h}})(window,document,"script","branch",function(b,r){b[r]=function(){b._q.push([r,arguments])}},{_q:[],_v:1},"addListener applyCode autoAppIndex banner closeBanner closeJourney creditHistory credits data deepview deepviewCta first getCode init link logout redeem referrals removeListener sendSMS setBranchViewData setIdentity track validateCode trackCommerceEvent logEvent disableTracking".split(" "), 0); + // load Branch + (function(b,r,a,n,c,h,_,s,d,k){if(!b[n]||!b[n]._q){for(;s<_.length;)c(h,_[s++]);d=r.createElement(a);d.async=1;d.src="https://cdn.branch.io/branch-latest.min.js";k=r.getElementsByTagName(a)[0];k.parentNode.insertBefore(d,k);b[n]=h}})(window,document,"script","branch",function(b,r){b[r]=function(){b._q.push([r,arguments])}},{_q:[],_v:1},"addListener banner closeBanner closeJourney data deepview deepviewCta first init link logout removeListener setBranchViewData setIdentity track trackCommerceEvent logEvent disableTracking getBrowserFingerprintId crossPlatformIds lastAttributedTouchData setAPIResponseCallback qrCode setRequestMetaData setAPIUrl getAPIUrl setDMAParamsForEEA".split(" "), 0); + // init Branch branch.init('key_live_or_test_YOUR_KEY_GOES_HERE'); ``` @@ -118,7 +120,9 @@ Full example `index.html`: