Panagiotis Triantafyllou

new keys

......@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'ly.warp'
PUBLISH_VERSION = '4.5.4-cosbeta94'
PUBLISH_VERSION = '4.5.4-cosbeta95'
PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
}
......
......@@ -66,6 +66,7 @@ import java.util.concurrent.TimeUnit;
import ly.warp.sdk.Warply;
import ly.warp.sdk.activities.WarpViewActivity;
import ly.warp.sdk.db.WarplyDBHelper;
import ly.warp.sdk.io.models.CouponEventModel;
import ly.warp.sdk.io.models.LoyaltySDKFirebaseEventModel;
import ly.warp.sdk.io.models.QuestionnaireEventModel;
......@@ -504,6 +505,17 @@ public class WarpView extends WebView {
} catch (Exception e) {
e.printStackTrace();
}
} else if (parts[1].equals("refreshToken")) {
try {
if (Warply.getWarplyContext() != null) {
WarplyDBHelper.getInstance(Warply.getWarplyContext()).saveAuthAccess(
parts[2],
parts[3]
);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
}
......