Skip to content

Commit 49406ca

Browse files
a bit of cleanup, move enableLogging to pluginInitialize, add idea folders to gitignore
1 parent bd60ff2 commit 49406ca

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ package-lock.json
88
npm-debug.log*
99
yarn-error.log*
1010
.vscode
11+
.idea
12+
src/android/.idea

src/android/io/branch/BranchSDK.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,14 @@ public BranchSDK() {
6868
*/
6969
@Override
7070
protected void pluginInitialize() {
71+
PrefHelper.Debug("pluginInitialize");
7172

7273
this.activity = this.cordova.getActivity();
73-
74+
Branch.enableLogging();
7475
Branch.disableInstantDeepLinking(true);
7576
BranchUtil.setPluginType(BranchUtil.PluginType.CordovaIonic);
7677
if (this.instance == null) {
7778
this.instance = Branch.getAutoInstance(this.activity.getApplicationContext());
78-
PrefHelper.Debug("pluginInitialize, creating new Branch instance");
79-
} else {
80-
PrefHelper.Debug("pluginInitialize, Branch instance already exists");
8179
}
8280
}
8381

@@ -295,7 +293,6 @@ private void initSession(CallbackContext callbackContext) {
295293
}
296294

297295
this.sessionListener = new SessionListener(callbackContext);
298-
Branch.enableLogging();
299296
PrefHelper.Debug("BranchSDK.initSession");
300297
this.instance.initSession(this.sessionListener, data, activity);
301298
}

0 commit comments

Comments
 (0)