Showing
3 changed files
with
33 additions
and
32 deletions
... | @@ -5,7 +5,7 @@ android.buildFeatures.buildConfig = true | ... | @@ -5,7 +5,7 @@ android.buildFeatures.buildConfig = true |
5 | 5 | ||
6 | ext { | 6 | ext { |
7 | PUBLISH_GROUP_ID = 'ly.warp' | 7 | PUBLISH_GROUP_ID = 'ly.warp' |
8 | - PUBLISH_VERSION = '4.5.5.4m4' | 8 | + PUBLISH_VERSION = '4.5.5.4m5' |
9 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' | 9 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' |
10 | } | 10 | } |
11 | 11 | ... | ... |
... | @@ -29,6 +29,7 @@ | ... | @@ -29,6 +29,7 @@ |
29 | <activity | 29 | <activity |
30 | android:name=".activities.WarpViewActivity" | 30 | android:name=".activities.WarpViewActivity" |
31 | android:exported="false" | 31 | android:exported="false" |
32 | + android:launchMode="singleTask" | ||
32 | android:screenOrientation="portrait" | 33 | android:screenOrientation="portrait" |
33 | android:theme="@style/SDKAppTheme" /> | 34 | android:theme="@style/SDKAppTheme" /> |
34 | 35 | ... | ... |
... | @@ -232,18 +232,18 @@ public class WarplyManager { | ... | @@ -232,18 +232,18 @@ public class WarplyManager { |
232 | WarpUtils.log("[WARP Trace] WARPLY Cosmote User Request is active"); | 232 | WarpUtils.log("[WARP Trace] WARPLY Cosmote User Request is active"); |
233 | WarpUtils.log("**************************************************"); | 233 | WarpUtils.log("**************************************************"); |
234 | 234 | ||
235 | - if (WarplyDBHelper.getInstance(Warply.getWarplyContext()).isTableNotEmpty("auth")) { | 235 | +// if (WarplyDBHelper.getInstance(Warply.getWarplyContext()).isTableNotEmpty("auth")) { |
236 | - JSONObject newResult = new JSONObject(); | 236 | +// JSONObject newResult = new JSONObject(); |
237 | - try { | 237 | +// try { |
238 | - newResult.putOpt("status", 1); | 238 | +// newResult.putOpt("status", 1); |
239 | - newResult.putOpt("message", "Success"); | 239 | +// newResult.putOpt("message", "Success"); |
240 | - receiver.onSuccess(newResult); | 240 | +// receiver.onSuccess(newResult); |
241 | - } catch (JSONException e) { | 241 | +// } catch (JSONException e) { |
242 | - e.printStackTrace(); | 242 | +// e.printStackTrace(); |
243 | - receiver.onFailure(2); | 243 | +// receiver.onFailure(2); |
244 | - } | 244 | +// } |
245 | - return; | 245 | +// return; |
246 | - } | 246 | +// } |
247 | 247 | ||
248 | ApiService service = ApiClient.getRetrofitInstance().create(ApiService.class); | 248 | ApiService service = ApiClient.getRetrofitInstance().create(ApiService.class); |
249 | 249 | ||
... | @@ -316,25 +316,25 @@ public class WarplyManager { | ... | @@ -316,25 +316,25 @@ public class WarplyManager { |
316 | WarpUtils.log("[WARP Trace] WARPLY Verify Ticket Request is active"); | 316 | WarpUtils.log("[WARP Trace] WARPLY Verify Ticket Request is active"); |
317 | WarpUtils.log("**************************************************"); | 317 | WarpUtils.log("**************************************************"); |
318 | 318 | ||
319 | - if (WarplyDBHelper.getInstance(Warply.getWarplyContext()).isTableNotEmpty("auth")) { | 319 | +// if (WarplyDBHelper.getInstance(Warply.getWarplyContext()).isTableNotEmpty("auth")) { |
320 | - JSONObject newResult = new JSONObject(); | 320 | +// JSONObject newResult = new JSONObject(); |
321 | - try { | 321 | +// try { |
322 | - newResult.putOpt("status", 1); | 322 | +// newResult.putOpt("status", 1); |
323 | - newResult.putOpt("message", "Success"); | 323 | +// newResult.putOpt("message", "Success"); |
324 | - LoyaltySDKDynatraceEventModel dynatraceEvent = new LoyaltySDKDynatraceEventModel(); | 324 | +// LoyaltySDKDynatraceEventModel dynatraceEvent = new LoyaltySDKDynatraceEventModel(); |
325 | - dynatraceEvent.setEventName("custom_success_login_loyalty"); | 325 | +// dynatraceEvent.setEventName("custom_success_login_loyalty"); |
326 | - EventBus.getDefault().post(new WarplyEventBusManager(dynatraceEvent)); | 326 | +// EventBus.getDefault().post(new WarplyEventBusManager(dynatraceEvent)); |
327 | - receiver.onSuccess(newResult); | 327 | +// receiver.onSuccess(newResult); |
328 | - } catch (JSONException e) { | 328 | +// } catch (JSONException e) { |
329 | - LoyaltySDKDynatraceEventModel dynatraceEvent = new LoyaltySDKDynatraceEventModel(); | 329 | +// LoyaltySDKDynatraceEventModel dynatraceEvent = new LoyaltySDKDynatraceEventModel(); |
330 | - dynatraceEvent.setEventName("custom_error_login_loyalty"); | 330 | +// dynatraceEvent.setEventName("custom_error_login_loyalty"); |
331 | - EventBus.getDefault().post(new WarplyEventBusManager(dynatraceEvent)); | 331 | +// EventBus.getDefault().post(new WarplyEventBusManager(dynatraceEvent)); |
332 | - | 332 | +// |
333 | - e.printStackTrace(); | 333 | +// e.printStackTrace(); |
334 | - receiver.onFailure(2); | 334 | +// receiver.onFailure(2); |
335 | - } | 335 | +// } |
336 | - return; | 336 | +// return; |
337 | - } | 337 | +// } |
338 | 338 | ||
339 | WarpUtils.setUserNonTelco(Warply.getWarplyContext(), false); | 339 | WarpUtils.setUserNonTelco(Warply.getWarplyContext(), false); |
340 | WarpUtils.setUserTag(Warply.getWarplyContext(), ""); | 340 | WarpUtils.setUserTag(Warply.getWarplyContext(), ""); | ... | ... |
-
Please register or login to post a comment