Panagiotis Triantafyllou

minor fixes

......@@ -36,7 +36,7 @@ public class SplashActivity extends BaseActivity {
public void onWarplyReady() {
if (!WarplyDBHelper.getInstance(SplashActivity.this).isTableNotEmpty("auth")) {
WarplyManager.getCosmoteUser(new WarplyCosmoteUserRequest()
.setGuid("7000001407"), //6012049321, 6012049322, 6012049323
.setGuid("6012049139"), //6012049321, 6012049322, 6012049323
mLoginReceiver);
} else {
startNextActivity();
......
......@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'ly.warp'
PUBLISH_VERSION = '4.5.4-cosbeta54'
PUBLISH_VERSION = '4.5.4-cosbeta55'
PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
}
......
......@@ -109,7 +109,7 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe
.setCouponsetUuid(mCouponset.getUuid())
.setCommunicationUuid(mLoyalty.getSessionUUID())
.setHasContextualOffer(true)
.setUserMsisdn(WarplyManagerHelper.getConsumer().getMsisdn())
.setUserMsisdn(WarplyManagerHelper.getConsumer().getMsisdn()) //TODO: where to find the msisdn??
.setBusinessService(mCcms.getBusinessService())
.setOfferName(mCcms.getOfferName())
.setProductType(mCcms.getProductType())
......
......@@ -167,6 +167,12 @@ public class VolleyTransformer implements Listener<JSONObject>, ErrorListener {
// Check for server related error.
int serverResult = response.optInt(WARPLY_STATUS);
if(serverResult == WarpConstants.RESULT_CODE_ERROR || serverResult == WarpConstants.RESULT_CODE_NO_ACCESS
|| serverResult == WarpConstants.RESULT_CODE_INVALID_CAMPAIGN) {
mListener.onSuccess(response);
return;
}
if (serverResult != WarpConstants.RESULT_CODE_SUCCESS) {
if ((serverResult == WarpConstants.RESULT_CODE_INVALID_WEB_ID)
&& (Warply.isInitialized()))
......
......@@ -2041,7 +2041,7 @@ public class WarplyManager {
@Override
public void onSuccess(JSONObject result) {
int status = result.optInt("status", 2);
if (status == 1)
if (status == 1 || status == 4 || status == 5)
receiver.onSuccess(result);
else
receiver.onFailure(status);
......@@ -2165,7 +2165,7 @@ public class WarplyManager {
@Override
public void onSuccess(JSONObject result) {
int status = result.optInt("status", 2);
if (status == 1)
if (status == 1 || status == 3 || status == 4)
receiver.onSuccess(result);
else
receiver.onFailure(status);
......