Skip to content

Commit d34a4db

Browse files
author
Yuri Kulikov
authored
Remove android.support.annotation.NonNull import (#1471)
Remove android.support dependency to simplify the work with androidx. Related issue: #1462
1 parent 099ab06 commit d34a4db

File tree

1 file changed

+2
-3
lines changed
  • android/app/src/main/java/com/microsoft/codepush/react

1 file changed

+2
-3
lines changed

android/app/src/main/java/com/microsoft/codepush/react/CodePush.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import android.content.pm.PackageInfo;
55
import android.content.pm.PackageManager;
66
import android.content.res.Resources;
7-
import android.support.annotation.NonNull;
87

98
import com.facebook.react.ReactInstanceManager;
109
import com.facebook.react.ReactPackage;
@@ -82,7 +81,7 @@ public CodePush(String deploymentKey, Context context, boolean isDebugMode) {
8281
initializeUpdateAfterRestart();
8382
}
8483

85-
public CodePush(String deploymentKey, Context context, boolean isDebugMode, @NonNull String serverUrl) {
84+
public CodePush(String deploymentKey, Context context, boolean isDebugMode, String serverUrl) {
8685
this(deploymentKey, context, isDebugMode);
8786
mServerUrl = serverUrl;
8887
}
@@ -93,7 +92,7 @@ public CodePush(String deploymentKey, Context context, boolean isDebugMode, int
9392
mPublicKey = getPublicKeyByResourceDescriptor(publicKeyResourceDescriptor);
9493
}
9594

96-
public CodePush(String deploymentKey, Context context, boolean isDebugMode, @NonNull String serverUrl, Integer publicKeyResourceDescriptor) {
95+
public CodePush(String deploymentKey, Context context, boolean isDebugMode, String serverUrl, Integer publicKeyResourceDescriptor) {
9796
this(deploymentKey, context, isDebugMode);
9897

9998
if (publicKeyResourceDescriptor != null) {

0 commit comments

Comments
 (0)