Skip to content

Commit

Permalink
Merge pull request #34 from DiceTechnology/fix/android-build
Browse files Browse the repository at this point in the history
fix: remove nonNull annotations
  • Loading branch information
apostopher authored Oct 28, 2021
2 parents 8565341 + bb5bd5b commit fe976c7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -173,7 +172,6 @@ public RNPaymentsAmazonModule(ReactApplicationContext reactContext) {
registerListener(reactContext);
}

@NonNull
@Override
public String getName() {
return "RNPaymentsAmazonModule";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -27,10 +26,9 @@ public RNPaymentsPackage(String licenseKey) {
public RNPaymentsPackage() {
}

@NonNull
@Override
public List<NativeModule> createNativeModules(
@NonNull ReactApplicationContext reactContext
ReactApplicationContext reactContext
) {
List<NativeModule> modules = new ArrayList<>();

Expand All @@ -45,9 +43,8 @@ public List<NativeModule> createNativeModules(
return modules;
}

@NonNull
@Override
public List<ViewManager> createViewManagers(@NonNull ReactApplicationContext reactContext) {
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
return Collections.emptyList();
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -42,4 +42,4 @@
"tslint --fix"
]
}
}
}

0 comments on commit fe976c7

Please sign in to comment.