Skip to content

Commit 13adadf

Browse files
Merge pull request #13 from Instabug/hotfix/remove-is-sdk-invoked-api
Remove isSdkInvoked api since it doesn't exist anymore
2 parents aa31aa1 + 18096df commit 13adadf

File tree

3 files changed

+1
-23
lines changed

3 files changed

+1
-23
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ After you've initialized Instabug, you can call a variety of other methods on th
111111
| disable | Disables all Instabug functionality | none || |
112112
| enable | Enables all Instabug functionality | none || |
113113
| isEnabled | Returns true if Instabug is enabled, false if it's disabled | none || |
114-
| isInvoked | Returns if Instabug is currently invoked (shown) or not | none || |
115114
| isDebugEnabled | Returns if Instabug SDK debug logs will be added to LogCat logs or not | none || |
116115
| setLocale | Set the locale used to display the strings in the correct language | 'arabic', 'chineseSimplified', 'chineseTraditional', 'english', 'french', 'german', 'italian', 'japanese', 'korean', 'polish', 'portugueseBrazil', 'russian', 'spanish', 'swedish', or 'turkish' | ||
117116
*Pro feature

src/android/IBGPlugin.java

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ public boolean execute(final String action, JSONArray args, final CallbackContex
123123
} else if ("isEnabled".equals(action)) {
124124
getIsEnabled(callbackContext);
125125

126-
} else if ("isInvoked".equals(action)) {
127-
getIsInvoked(callbackContext);
128-
}else {
126+
} else {
129127
// Method not found.
130128
return false;
131129
}
@@ -459,21 +457,6 @@ private void getIsEnabled(final CallbackContext callbackContext) {
459457
}
460458
}
461459

462-
/**
463-
* If Instabug is currently invoked (shown).
464-
*
465-
* @param callbackContext
466-
* Used when calling back into JavaScript
467-
*/
468-
private void getIsInvoked(final CallbackContext callbackContext) {
469-
try {
470-
boolean invoked = Instabug.isSDKInvoked();
471-
callbackContext.success(invoked ? 1 : 0);
472-
} catch (IllegalStateException e) {
473-
callbackContext.error(errorMsg);
474-
}
475-
}
476-
477460
/**
478461
* Enable/Disable debug logs from Instabug SDK
479462
*

www/instabug.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,6 @@ Instabug.isEnabled = function (success, error) {
119119
exec(success, error, 'IBGPlugin', 'isEnabled', []);
120120
};
121121

122-
Instabug.isInvoked = function (success, error) {
123-
exec(success, error, 'IBGPlugin', 'isInvoked', []);
124-
};
125-
126122
Instabug.isDebugEnabled = function (success, error) {
127123
exec(success, error, 'IBGPlugin', 'isDebugEnabled', []);
128124
};

0 commit comments

Comments
 (0)