Skip to content

Commit

Permalink
Merge pull request #9 from RodrigoSMarques/bugfix
Browse files Browse the repository at this point in the history
Bugfix Branch SDK initialization
  • Loading branch information
RodrigoSMarques authored Feb 2, 2020
2 parents 68283f1 + d2d0117 commit e239497
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 0.1.5
* Bugfix Branch SDK initialization
## 0.1.4
* Bugfix BranchUniversalObject with keywords empty
* Documentation update
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ public void onActivityCreated(Activity activity, Bundle bundle) {

@Override
public void onActivityStarted(Activity activity) {
Branch.getInstance().initSession(branchReferralInitListener, activity.getIntent().getData(), activity);
Branch.getInstance().initSession(branchReferralInitListener, activity.getIntent() != null ?
activity.getIntent().getData() : null, activity);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.1.3"
version: "0.1.5"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down
1 change: 1 addition & 0 deletions lib/src/branch_event.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class BranchEvent {
}

void addCustomData(String key, dynamic value) {
if ((key == null) || (value == null)) return;
this._customData[key] = value;
}

Expand Down
2 changes: 2 additions & 0 deletions lib/src/branch_universal_object.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ class BranchUniversalObject {

///Adds any keywords associated with the content referred
void addKeyWords(List<dynamic> keywords) {
if (keywords == null) return;
this.keywords.addAll(keywords);
}

///Add a keyword associated with the content referred
void addKeyWord(String keyword) {
if (keyword == null) return;
this.keywords.add(keyword);
}

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: 0.1.4
version: 0.1.5
homepage: https://github.com/RodrigoSMarques/flutter_branch_sdk

dependencies:
Expand Down

0 comments on commit e239497

Please sign in to comment.