Skip to content

Commit f9746fe

Browse files
committed
Changed the base url in raveconstants back as is
removed the mockito test library adjusted the logic for all payment options for nullView
1 parent 7da2977 commit f9746fe

File tree

9 files changed

+11
-19
lines changed

9 files changed

+11
-19
lines changed

raveandroid/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,5 @@ dependencies {
3939
implementation 'com.squareup.retrofit2:converter-scalars:2.1.0'
4040
implementation 'com.scottyab:aescrypt:0.0.1'
4141
testImplementation 'junit:junit:4.12'
42-
testImplementation 'org.mockito:mockito-core:2.23.0'
4342
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
4443
}

raveandroid/src/main/java/com/flutterwave/raveandroid/RaveConstants.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ public class RaveConstants {
1212
public static String PUBLIC_KEY = "FLWPUBK-e634d14d9ded04eaf05d5b63a0a06d2f-X"; //test
1313
// public static String ENCRYPTION_KEY = "FLWSECK-bb971402072265fb156e90a3578fe5e6-X"; //test
1414
public static String ENCRYPTION_KEY = "bb9714020722eb4cf7a169f2";
15-
public static String STAGING_URL = "https://ravesandbox.azurewebsites.net";
16-
public static String LIVE_URL = "https://raveapi.azurewebsites.net";
15+
// public static String STAGING_URL = "https://ravesandbox.azurewebsites.net";
16+
// public static String LIVE_URL = "https://raveapi.azurewebsites.net";
1717
//Todo: change back BAse URL
18-
//public static String STAGING_URL = "https://ravesandboxapi.flutterwave.com";
19-
// public static String LIVE_URL = "https://api.ravepay.co";
18+
public static String STAGING_URL = "https://ravesandboxapi.flutterwave.com";
19+
public static String LIVE_URL = "https://api.ravepay.co";
2020

2121
public static String VBV = "VBVSECURECODE";
2222
public static String GTB_OTP = "GTB_OTP";

raveandroid/src/main/java/com/flutterwave/raveandroid/account/AccountFragment.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,10 +437,9 @@ public void onRequerySuccessful(RequeryResponse response, String responseAsJSONS
437437
@Override
438438
public void onResume() {
439439
super.onResume();
440-
if (presenter != null) {
440+
if (presenter == null) {
441441
presenter = new AccountPresenter(getActivity(), this);
442442
}
443-
assert presenter != null;
444443
presenter.onAttachView(this);
445444
}
446445

raveandroid/src/main/java/com/flutterwave/raveandroid/ach/AchFragment.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,9 @@ public void onRequerySuccessful(RequeryResponse response, String responseAsJSONS
240240
@Override
241241
public void onResume() {
242242
super.onResume();
243-
if (presenter != null) {
243+
if (presenter == null) {
244244
presenter = new AchPresenter(getActivity(), this);
245245
}
246-
assert presenter != null;
247246
presenter.onAttachView(this);
248247
}
249248

raveandroid/src/main/java/com/flutterwave/raveandroid/banktransfer/BankTransferFragment.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,9 @@ public void onAmountValidationFailed() {
330330
@Override
331331
public void onResume() {
332332
super.onResume();
333-
if (presenter != null) {
333+
if (presenter == null) {
334334
presenter = new BankTransferPresenter(getActivity(), this);
335335
}
336-
assert presenter != null;
337336
presenter.onAttachView(this);
338337
}
339338

raveandroid/src/main/java/com/flutterwave/raveandroid/card/CardFragment.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,9 @@ public void onNoAuthInternationalSuggested(final Payload payload) {
229229
@Override
230230
public void onResume() {
231231
super.onResume();
232-
if (presenter != null) {
232+
if (presenter == null) {
233233
presenter = new CardPresenter(getActivity(), this);
234234
}
235-
assert presenter != null;
236235
presenter.onAttachView(this);
237236
}
238237

raveandroid/src/main/java/com/flutterwave/raveandroid/ghmobilemoney/GhMobileMoneyFragment.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,9 @@ public void onPollingRoundComplete(String flwRef, String txRef, String publicKey
329329
@Override
330330
public void onResume() {
331331
super.onResume();
332-
if (presenter != null) {
332+
if (presenter == null) {
333333
presenter = new GhMobileMoneyPresenter(getActivity(), this);
334334
}
335-
assert presenter != null;
336335
presenter.onAttachView(this);
337336
}
338337

raveandroid/src/main/java/com/flutterwave/raveandroid/mpesa/MpesaFragment.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,9 @@ public void onPollingRoundComplete(String flwRef, String txRef, String publicKey
261261
@Override
262262
public void onResume() {
263263
super.onResume();
264-
if (presenter != null) {
264+
if (presenter == null) {
265265
presenter = new MpesaPresenter(getActivity(), this);
266266
}
267-
assert presenter != null;
268267
presenter.onAttachView(this);
269268
}
270269

raveandroid/src/main/java/com/flutterwave/raveandroid/ugmobilemoney/UgMobileMoneyFragment.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,9 @@ public void onPollingRoundComplete(String flwRef, String txRef, String publicKey
267267
@Override
268268
public void onResume() {
269269
super.onResume();
270-
if (presenter != null) {
270+
if (presenter == null) {
271271
presenter = new UgMobileMoneyPresenter(getActivity(), this);
272272
}
273-
assert presenter != null;
274273
presenter.onAttachView(this);
275274
}
276275

0 commit comments

Comments
 (0)