Skip to content

Commit b1f8a38

Browse files
Merge pull request #715 from BranchMetrics/gdeluna-branch/QSS-265
Fix setLogging to enable logging in native layer
2 parents 1d7f99a + c14bd68 commit b1f8a38

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
5.2.1 Jan 4, 2023
2+
* Fix Javascript method setLogging to enable logging in the native layer.
3+
* Update Android SDK to 5.2.7
4+
* Update iOS SDK to 1.45.2
5+
16
5.2.0 August 8th, 2022
27
* Update iOS SDK to 1.43.1
38
* Update Android SDK to 5.2.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "branch-cordova-sdk",
33
"description": "Branch Metrics Cordova SDK",
44
"main": "src/index.js",
5-
"version": "5.2.0",
5+
"version": "5.2.1",
66
"homepage": "https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking",
77
"repository": {
88
"type": "git",

plugin.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ SOFTWARE.
2424
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
2525
xmlns:android="http://schemas.android.com/apk/res/android"
2626
id="branch-cordova-sdk"
27-
version="5.1.0">
27+
version="5.2.1">
2828

2929
<!-- Description -->
3030
<name>branch-cordova-sdk</name>
@@ -63,7 +63,7 @@ SOFTWARE.
6363
<!-- Manifest configuration is done via a js script. We should move it to this config in the future. -->
6464

6565
<source-file src="src/android/io/branch/BranchSDK.java" target-dir="src/io/branch" />
66-
<framework src="io.branch.sdk.android:library:5.2.0"/>
66+
<framework src="io.branch.sdk.android:library:5.2.7"/>
6767
</platform>
6868

6969
<!-- iOS -->
@@ -87,7 +87,7 @@ SOFTWARE.
8787
<source url="https://cdn.cocoapods.org/"/>
8888
</config>
8989
<pods>
90-
<pod name="Branch" spec="~> 1.43.1" />
90+
<pod name="Branch" spec="~> 1.45.2" />
9191
</pods>
9292
</podspec>
9393
</platform>

src/android/io/branch/BranchSDK.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public boolean execute(String action, JSONArray args, CallbackContext callbackCo
119119

120120
Runnable r = new RunnableThread(action, args, callbackContext);
121121

122-
if (action.equals("setLogging")) {
122+
if (action.equals("enableLogging")) {
123123
cordova.getActivity().runOnUiThread(r);
124124
return true;
125125
} else if (action.equals("setCookieBasedMatching")) {
@@ -607,7 +607,7 @@ private void setCookieBasedMatching(String linkDomain, CallbackContext callbackC
607607
* @param isEnable A {@link Boolean} value to enable/disable logging
608608
* @param callbackContext A callback to execute at the end of this method
609609
*/
610-
private void setLogging(boolean isEnable, CallbackContext callbackContext) {
610+
private void enableLogging(boolean isEnable, CallbackContext callbackContext) {
611611
this.activity = this.cordova.getActivity();
612612
if (isEnable == true) {
613613
Branch.enableLogging();
@@ -1233,8 +1233,8 @@ public void run() {
12331233
try {
12341234
Log.d(LCAT, "Runnable: " + this.action);
12351235

1236-
if (this.action.equals("setLogging")) {
1237-
setLogging(this.args.getBoolean(0), this.callbackContext);
1236+
if (this.action.equals("enableLogging")) {
1237+
enableLogging(this.args.getBoolean(0), this.callbackContext);
12381238
} else if (this.action.equals("setCookieBasedMatching")) {
12391239
setCookieBasedMatching(this.args.getString(0), this.callbackContext);
12401240
} else if (this.action.equals("disableTracking")) {

0 commit comments

Comments
 (0)