Panagiotis Triantafyllou

new version

......@@ -12,6 +12,9 @@ Debug=true
# Development: https://engage-stage.warp.ly
BaseURL=https://engage-stage.warp.ly
# For Verify Ticket request
VerifyURL=/partners/gapp/verify
#WebActionHandler=app_package_name.WarplyWebActionHandler
# Replace the color with one you want the progress bar to have depending on you app theme-coloring
......
......@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'ly.warp'
PUBLISH_VERSION = '4.5.4-cosbeta11'
PUBLISH_VERSION = '4.5.4-cosbeta12'
PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
}
......
......@@ -1486,7 +1486,7 @@ public enum Warply {
if (warplyPath.equals("handle_image"))
sb = new StringBuilder(WarplyProperty.getBaseUrl(mContext.get()) + WarpConstants.BASE_URL_API);
else if (warplyPath.equals("verify"))
sb = new StringBuilder(WarplyProperty.getBaseUrl(mContext.get()) + WarpConstants.BASE_URL_VERIFY);
sb = new StringBuilder(WarplyProperty.getBaseUrl(mContext.get()) + WarplyProperty.getVerifyUrl(mContext.get()));
else
sb = new StringBuilder(WarplyProperty.getBaseUrl(mContext.get()) + WarpConstants.BASE_URL_AUTH);
}
......
......@@ -49,6 +49,7 @@ public class WarplyProperty {
public static final String KEY_LOGIN_TYPE = "LoginType";
public static final String KEY_DL_URL_SCHEME = "DL_URL_SCHEME";
public static final String KEY_BASE_URL = "BaseURL";
public static final String KEY_VERIFY_URL = "VerifyURL";
// ===========================================================
// Methods
......@@ -199,6 +200,10 @@ public class WarplyProperty {
return getWarplyProperty(context, KEY_BASE_URL);
}
public static String getVerifyUrl(Context context) {
return getWarplyProperty(context, KEY_VERIFY_URL);
}
public static boolean isSendPackages(Context context) {
return Boolean.parseBoolean(getWarplyProperty(context, KEY_SEND_PACKAGES));
}
......
......@@ -81,4 +81,40 @@ public class WarplyEventBusManager {
public HashMap<String, Object> subscribeWarplyEventBus() {
return mWarplyEventBusManager;
}
public String getEventName() {
return eventName;
}
public LoyaltySDKFirebaseEventModel getFireEvent() {
return fireEvent;
}
public LoyaltyContextualOfferModel getCcms() {
return ccms;
}
public HashMap<String, Object> getmWarplyEventBusManager() {
return mWarplyEventBusManager;
}
public WarplyPacingCardEventModel getPacingCard() {
return pacingCard;
}
public WarplyPacingCardServiceEnabledModel getPacingService() {
return pacingService;
}
public WarplyDealsAnalysisEventModel getDealsAnalysis() {
return dealsAnalysis;
}
public WarplyCCMSEnabledModel getCcmsActivated() {
return ccmsActivated;
}
public LoyaltyGiftsForYouOfferClickEvent getGiftsYou() {
return giftsYou;
}
}
......