@gatekeeperx/cordova-plugin-devicex 1.2.11 → 1.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @gatekeeperx/cordova-plugin-devicex might be problematic. Click here for more details.
package/package.json
CHANGED
|
@@ -205,35 +205,36 @@ public class DevicexPlugin extends CordovaPlugin {
|
|
|
205
205
|
return list;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
private void evaluateRisk(JSONArray args, final CallbackContext cb) {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
}
|
|
208
|
+
// private void evaluateRisk(JSONArray args, final CallbackContext cb) {
|
|
209
|
+
// try {
|
|
210
|
+
// JSONObject obj = args.optJSONObject(0);
|
|
211
|
+
// if (obj == null)
|
|
212
|
+
// obj = new JSONObject();
|
|
213
|
+
|
|
214
|
+
// String apiUrl = obj.optString("apiUrl", "");
|
|
215
|
+
// String orgId = obj.optString("organizationId", "");
|
|
216
|
+
// String apiKey = obj.optString("apiKey", "");
|
|
217
|
+
// JSONObject payload = obj.optJSONObject("payload");
|
|
218
|
+
|
|
219
|
+
// if (apiUrl.isEmpty() || orgId.isEmpty() || payload == null) {
|
|
220
|
+
// cb.error("apiUrl, organizationId and payload are required");
|
|
221
|
+
// return;
|
|
222
|
+
// }
|
|
223
|
+
|
|
224
|
+
// GatekeeperXClient.evaluateRisk(apiUrl, orgId, apiKey, payload, new
|
|
225
|
+
// GatekeeperXClient.Callback() {
|
|
226
|
+
// @Override
|
|
227
|
+
// public void onSuccess(JSONObject response) {
|
|
228
|
+
// cb.success(response);
|
|
229
|
+
// }
|
|
230
|
+
|
|
231
|
+
// @Override
|
|
232
|
+
// public void onError(String error) {
|
|
233
|
+
// cb.error(error);
|
|
234
|
+
// }
|
|
235
|
+
// });
|
|
236
|
+
// } catch (Exception e) {
|
|
237
|
+
// cb.error(e.getMessage());
|
|
238
|
+
// }
|
|
239
|
+
// }
|
|
239
240
|
}
|