Skip to content

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

@mydesweb

Description

@mydesweb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions