Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution failed for task ':react-native-mmkv-storage:lintDebug' #362

Open
mydesweb opened this issue Oct 12, 2024 · 0 comments
Open

Execution failed for task ':react-native-mmkv-storage:lintDebug' #362

mydesweb opened this issue Oct 12, 2024 · 0 comments

Comments

@mydesweb
Copy link

mydesweb commented Oct 12, 2024

node_modules/react-native-mmkv-storage/android/src/main/java/com/ammarahmed/mmkv/RNMMKVModule.java:61: Error: This declaration is opt-in and its usage should be marked with @com.facebook.react.common.annotations.FrameworkAPI or @OptIn(markerClass = com.facebook.react.common.annotations.FrameworkAPI.class) [UnsafeOptInUsageError from androidx.annotation.experimental]
CallInvokerHolderImpl jsCallInvokerHolder = (CallInvokerHolderImpl)reactContext.getCatalystInstance().getJSCallInvokerHolder();

Explanation for issues of type "UnsafeOptInUsageError":
This API has been flagged as opt-in with error-level severity.

Any declaration annotated with this marker is considered part of an
unstable or
otherwise non-standard API surface and its call sites should accept the
opt-in
aspect of it by using the @OptIn annotation, using the marker annotation
effectively causing further propagation of the opt-in aspect -- or
configuring
the UnsafeOptInUsageError check's options for project-wide opt-in.

node_modules/react-native-mmkv-storage/android/src/main/java/com/ammarahmed/mmkv/SecureKeystore.java:236: Warning: ECB encryption mode should not be used (was "AES/ECB/PKCS5Padding") [GetInstance]
Cipher cipher = Cipher.getInstance(Constants.AES_ALGORITHM);

Explanation for issues of type "GetInstance":
Cipher#getInstance should not be called with ECB as the cipher mode or
without setting the cipher mode because the default mode on android is ECB,
which is insecure.

node_modules/react-native-mmkv-storage/android/src/main/java/com/ammarahmed/mmkv/SecureKeystore.java:44: Warning: Unnecessary; SDK_INT is always >= 27 [ObsoleteSdkInt]
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.M;

Explanation for issues of type "ObsoleteSdkInt":
This check flags version checks that are not necessary, because the
minSdkVersion (or surrounding known API level) is already at least as high
as the version checked for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant