Skip to content

Commit 5b9693d

Browse files
Syntax errors fixed. Merge pull request #23 from Countly/dev-junaid
2 parents 0b86e8e + 70e9359 commit 5b9693d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Countly.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Countly.disableLocation = function(){
242242
* Get currently used device Id.
243243
* Should be call after Countly init
244244
* */
245-
static Future<String> getCurrentDeviceId() async {
245+
Countly.getCurrentDeviceId = async function(){
246246
if(!await Countly.isInitialized()) {
247247
console.warn('getCurrentDeviceId, init must be called before getCurrentDeviceId');
248248
return "init must be called before getCurrentDeviceId";

android/src/main/java/ly/count/android/sdk/react/CountlyReactNative.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ public void getDeviceIdAuthor(ReadableArray args, final Callback myCallback){
177177
else {
178178
Log.d(Countly.TAG, "[CountlyReactNative] getDeviceIdAuthor: " + deviceIDType);
179179
if(deviceIDType == DeviceId.Type.DEVELOPER_SUPPLIED){
180-
myCallback.success("developerProvided");
180+
myCallback.invoke("developerProvided");
181181
}else{
182-
myCallback.success("sdkGenerated");
182+
myCallback.invoke("sdkGenerated");
183183
}
184184
}
185185
}

0 commit comments

Comments
 (0)