Skip to content

Commit ec7917f

Browse files
committed
fix: ravePayInitializer hard reference removal
1 parent 27f90cf commit ec7917f

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The minimum supported SDK version is 15
2424
**Step 2.** Add the dependency
2525

2626
dependencies {
27-
compile 'com.github.Flutterwave:rave-android:1.0.14'
27+
compile 'com.github.Flutterwave:rave-android:1.0.14.1'
2828
}
2929
**Step 3.** Add the required permission
3030

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
import com.flutterwave.raveandroid.Payload;
5-
import com.flutterwave.raveandroid.card.CardContract;
5+
import com.flutterwave.raveandroid.RavePayInitializer;
66
import com.flutterwave.raveandroid.data.Bank;
77
import com.flutterwave.raveandroid.responses.RequeryResponse;
88

@@ -57,7 +57,7 @@ interface UserActionsListener {
5757

5858
void onDetachView();
5959

60-
void verifyRequeryResponseStatus(RequeryResponse response, String responseAsJSONString);
60+
void verifyRequeryResponseStatus(RequeryResponse response, String responseAsJSONString, RavePayInitializer ravePayInitializer);
6161
}
6262

6363
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ public void onPaymentError(String message) {
455455

456456
@Override
457457
public void onRequerySuccessful(RequeryResponse response, String responseAsJSONString) {
458-
presenter.verifyRequeryResponseStatus(response, responseAsJSONString);
458+
presenter.verifyRequeryResponseStatus(response, responseAsJSONString, ravePayInitializer);
459459
}
460460

461461
@Override

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,8 @@ public void onError(String message, String responseAsJSONString) {
197197
}
198198

199199
@Override
200-
public void verifyRequeryResponseStatus(RequeryResponse response, String responseAsJSONString) {
200+
public void verifyRequeryResponseStatus(RequeryResponse response, String responseAsJSONString, RavePayInitializer ravePayInitializer) {
201201
mView.showProgressIndicator(true);
202-
RavePayInitializer ravePayInitializer = ((RavePayActivity) context).getRavePayInitializer();
203202
boolean wasTxSuccessful = Utils.wasTxSuccessful(ravePayInitializer, responseAsJSONString);
204203

205204
mView.showProgressIndicator(false);

0 commit comments

Comments
 (0)