Skip to content

Commit

Permalink
update lib / remove not used
Browse files Browse the repository at this point in the history
  • Loading branch information
litinskii committed May 24, 2023
1 parent 7f2d2fc commit b144357
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 25 deletions.
6 changes: 3 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ android {

dependencies {
implementation 'com.facebook.react:react-native:+'
implementation 'com.google.android.gms:play-services-base:17.0.0'
implementation 'com.google.android.gms:play-services-identity:17.0.0'
implementation 'com.google.android.gms:play-services-wallet:17.0.0'
implementation 'com.google.android.gms:play-services-base:18.0.0'
implementation 'com.google.android.gms:play-services-identity:18.0.0'
implementation 'com.google.android.gms:play-services-wallet:18.0.0'
implementation 'com.android.support:support-v4:23.0.1'
}
Original file line number Diff line number Diff line change
Expand Up @@ -375,28 +375,6 @@ protected static WritableNativeMap buildCardInfo(CardInfo cardInfo) {
return result;
}

private static List buildLineItems(ReadableArray displayItems) {
List<LineItem> list = new ArrayList<LineItem>();


for (int i = 0; i < (displayItems.size() - 1); i++) {
ReadableMap displayItem = displayItems.getMap(i);
ReadableMap amount = displayItem.getMap("amount");

list.add(LineItem.newBuilder()
.setCurrencyCode(amount.getString("currency"))
.setDescription(displayItem.getString("label"))
.setQuantity("1")
.setUnitPrice(amount.getString("value"))
.setTotalPrice(amount.getString("value"))
.build());
}

Log.i(REACT_CLASS, "ANDROID PAY getFullWalletAndroid" + list);

return list;
}

private static WritableNativeMap buildAddressFromUserAddress(UserAddress userAddress) {
WritableNativeMap address = new WritableNativeMap();

Expand Down

0 comments on commit b144357

Please sign in to comment.