Skip to content

Commit

Permalink
task(MC-1805): Add sdk version code to the JS API (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasct authored Jul 15, 2024
1 parent 6453c93 commit aef319c
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,4 +430,12 @@ public void triggerInAppAction(String actionJson, String callToAction, String bu
Logger.d("CTWebInterface invalid action JSON: " + actionJson);
}
}

/**
* Retrieve the version code of the CleverTap SDK.
*/
@JavascriptInterface
public int getSdkVersion() {
return BuildConfig.VERSION_CODE;
}
}

0 comments on commit aef319c

Please sign in to comment.