Skip to content

Commit

Permalink
Remove android.support.annotation.NonNull import (#1471)
Browse files Browse the repository at this point in the history
Remove android.support dependency to simplify the work
with androidx.

Related issue: #1462
  • Loading branch information
Yuri Kulikov authored Dec 12, 2018
1 parent 099ab06 commit d34a4db
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.support.annotation.NonNull;

import com.facebook.react.ReactInstanceManager;
import com.facebook.react.ReactPackage;
Expand Down Expand Up @@ -82,7 +81,7 @@ public CodePush(String deploymentKey, Context context, boolean isDebugMode) {
initializeUpdateAfterRestart();
}

public CodePush(String deploymentKey, Context context, boolean isDebugMode, @NonNull String serverUrl) {
public CodePush(String deploymentKey, Context context, boolean isDebugMode, String serverUrl) {
this(deploymentKey, context, isDebugMode);
mServerUrl = serverUrl;
}
Expand All @@ -93,7 +92,7 @@ public CodePush(String deploymentKey, Context context, boolean isDebugMode, int
mPublicKey = getPublicKeyByResourceDescriptor(publicKeyResourceDescriptor);
}

public CodePush(String deploymentKey, Context context, boolean isDebugMode, @NonNull String serverUrl, Integer publicKeyResourceDescriptor) {
public CodePush(String deploymentKey, Context context, boolean isDebugMode, String serverUrl, Integer publicKeyResourceDescriptor) {
this(deploymentKey, context, isDebugMode);

if (publicKeyResourceDescriptor != null) {
Expand Down

0 comments on commit d34a4db

Please sign in to comment.