From 1cd3513ef210825ca90e84f0b2662229b617b90c Mon Sep 17 00:00:00 2001 From: Rahul Devaskar Date: Thu, 28 Oct 2021 08:46:16 +0800 Subject: [PATCH 1/2] fix: remove nonNull annotations the nonNull annotations are imported from `android.support.annotation` does not work with androidX. also, the @NonNull can be safely removed without affecting the functionality. --- .../dicetechnology/rnpayments/RNPaymentsAmazonModule.java | 2 -- .../com/dicetechnology/rnpayments/RNPaymentsPackage.java | 7 ++----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/android/src/main/java/com/dicetechnology/rnpayments/RNPaymentsAmazonModule.java b/android/src/main/java/com/dicetechnology/rnpayments/RNPaymentsAmazonModule.java index c6a8ac7..3b7de09 100644 --- a/android/src/main/java/com/dicetechnology/rnpayments/RNPaymentsAmazonModule.java +++ b/android/src/main/java/com/dicetechnology/rnpayments/RNPaymentsAmazonModule.java @@ -1,7 +1,6 @@ package com.dicetechnology.rnpayments; import android.content.Context; -import android.support.annotation.NonNull; import com.amazon.device.iap.PurchasingListener; import com.amazon.device.iap.PurchasingService; @@ -173,7 +172,6 @@ public RNPaymentsAmazonModule(ReactApplicationContext reactContext) { registerListener(reactContext); } - @NonNull @Override public String getName() { return "RNPaymentsAmazonModule"; diff --git a/android/src/main/java/com/dicetechnology/rnpayments/RNPaymentsPackage.java b/android/src/main/java/com/dicetechnology/rnpayments/RNPaymentsPackage.java index 5b23eb1..04150fa 100755 --- a/android/src/main/java/com/dicetechnology/rnpayments/RNPaymentsPackage.java +++ b/android/src/main/java/com/dicetechnology/rnpayments/RNPaymentsPackage.java @@ -2,7 +2,6 @@ import android.app.Activity; import android.content.Intent; -import android.support.annotation.NonNull; import com.facebook.react.ReactPackage; import com.facebook.react.bridge.JavaScriptModule; @@ -27,10 +26,9 @@ public RNPaymentsPackage(String licenseKey) { public RNPaymentsPackage() { } - @NonNull @Override public List createNativeModules( - @NonNull ReactApplicationContext reactContext + ReactApplicationContext reactContext ) { List modules = new ArrayList<>(); @@ -45,9 +43,8 @@ public List createNativeModules( return modules; } - @NonNull @Override - public List createViewManagers(@NonNull ReactApplicationContext reactContext) { + public List createViewManagers(ReactApplicationContext reactContext) { return Collections.emptyList(); } From bb5bd5bba8efbf010be4a17ceb04d6de862738a0 Mon Sep 17 00:00:00 2001 From: Rahul Devaskar Date: Thu, 28 Oct 2021 08:53:17 +0800 Subject: [PATCH 2/2] feat: bump version number --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f74a697..f6f4a06 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-payments", - "version": "1.1.1", + "version": "1.1.2", "description": "Wrapper for react-native iOS in-app-purchases and Android in-app-billing.", "main": "index.js", "scripts": { @@ -42,4 +42,4 @@ "tslint --fix" ] } -} +} \ No newline at end of file