Skip to content

Commit

Permalink
Merge pull request #326 from RodrigoSMarques/dev
Browse files Browse the repository at this point in the history
Release 8.0.1
  • Loading branch information
RodrigoSMarques authored May 18, 2024
2 parents 7523350 + d633193 commit 9ae8379
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## 8.0.1
### ⚠️ BREAKING CHANGE
This is a major release which contains breaking API changes.
#### ⚠️ SDK Initialization Changed
* `useTestKey` parameter is no longer supported at `FlutterBranchSdk.init()`.

Check the instructions in `README.MD` on how to activate the `key_test_`.

### 🐛 Bug Fixes
* Fix issue #325: Android cannot get the opening link (onInitFinished called after clicking on deep link two times)


## 8.0.0
### ⚠️ BREAKING CHANGE
This is a major release which contains breaking API changes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import io.branch.referral.util.LinkProperties;
import io.branch.referral.util.ShareSheetStyle;
import io.branch.referral.validators.IntegrationValidator;
import io.flutter.embedding.android.FlutterFragmentActivity;
import io.flutter.embedding.engine.plugins.FlutterPlugin;
import io.flutter.embedding.engine.plugins.activity.ActivityAware;
import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding;
Expand Down Expand Up @@ -96,6 +97,10 @@ private void setActivity(Activity activity) {

this.activity = activity;
activity.getApplication().registerActivityLifecycleCallbacks(this);

if (this.activity != null && FlutterFragmentActivity.class.isAssignableFrom(activity.getClass())) {
Branch.sessionBuilder(activity).withCallback(branchReferralInitListener).withData(activity.getIntent().getData()).init();
}
}

private void teardownChannels() {
Expand Down Expand Up @@ -348,6 +353,7 @@ public void onInitFinished(JSONObject params, BranchError error) {
LogUtils.debug(DEBUG_NAME, "triggered onInitFinished");
if (error == null) {
LogUtils.debug(DEBUG_NAME, "BranchReferralInitListener - params: " + params.toString());

try {
sessionParams = branchSdkHelper.paramsToMap(params);
} catch (JSONException e) {
Expand Down

1 comment on commit 9ae8379

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.