Showing
2 changed files
with
13 additions
and
1 deletions
... | @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' | ... | @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' |
2 | 2 | ||
3 | ext { | 3 | ext { |
4 | PUBLISH_GROUP_ID = 'ly.warp' | 4 | PUBLISH_GROUP_ID = 'ly.warp' |
5 | - PUBLISH_VERSION = '4.5.4-cosbeta94' | 5 | + PUBLISH_VERSION = '4.5.4-cosbeta95' |
6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' | 6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' |
7 | } | 7 | } |
8 | 8 | ... | ... |
... | @@ -66,6 +66,7 @@ import java.util.concurrent.TimeUnit; | ... | @@ -66,6 +66,7 @@ import java.util.concurrent.TimeUnit; |
66 | 66 | ||
67 | import ly.warp.sdk.Warply; | 67 | import ly.warp.sdk.Warply; |
68 | import ly.warp.sdk.activities.WarpViewActivity; | 68 | import ly.warp.sdk.activities.WarpViewActivity; |
69 | +import ly.warp.sdk.db.WarplyDBHelper; | ||
69 | import ly.warp.sdk.io.models.CouponEventModel; | 70 | import ly.warp.sdk.io.models.CouponEventModel; |
70 | import ly.warp.sdk.io.models.LoyaltySDKFirebaseEventModel; | 71 | import ly.warp.sdk.io.models.LoyaltySDKFirebaseEventModel; |
71 | import ly.warp.sdk.io.models.QuestionnaireEventModel; | 72 | import ly.warp.sdk.io.models.QuestionnaireEventModel; |
... | @@ -504,6 +505,17 @@ public class WarpView extends WebView { | ... | @@ -504,6 +505,17 @@ public class WarpView extends WebView { |
504 | } catch (Exception e) { | 505 | } catch (Exception e) { |
505 | e.printStackTrace(); | 506 | e.printStackTrace(); |
506 | } | 507 | } |
508 | + } else if (parts[1].equals("refreshToken")) { | ||
509 | + try { | ||
510 | + if (Warply.getWarplyContext() != null) { | ||
511 | + WarplyDBHelper.getInstance(Warply.getWarplyContext()).saveAuthAccess( | ||
512 | + parts[2], | ||
513 | + parts[3] | ||
514 | + ); | ||
515 | + } | ||
516 | + } catch (Exception e) { | ||
517 | + e.printStackTrace(); | ||
518 | + } | ||
507 | } | 519 | } |
508 | } | 520 | } |
509 | } | 521 | } | ... | ... |
-
Please register or login to post a comment