react-native-image-sequence icon indicating copy to clipboard operation
react-native-image-sequence copied to clipboard

Fix Android deprecation warning

Open sbeca opened this issue 6 years ago • 0 comments

IMPORTANT: This PR relies on PR #33.

When I build the Android version of an application I'm developing that is using react-native-image-sequence, I get the following notes during the Gradle build stage:

> Task :react-native-fs:compileDebugJavaWithJavac
Note: /Users/scott/Documents/SVN/TotallyRealProjectName/node_modules/react-native-fs/android/src/main/java/com/rnfs/RNFSManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Which expands out to the following with full deprecation warning details enabled:

> Task :react-native-image-sequence:compileDebugJavaWithJavac
/Users/scott/Documents/SVN/TotallyRealProjectName/node_modules/react-native-image-sequence/android/src/main/java/dk/madslee/imageSequence/RCTResourceDrawableIdHelper.java:47: warning: [deprecation] getDrawable(int) in Resources has been deprecated
            return context.getResources().getDrawable(resId);
                                         ^
1 warning

This PR fixes that deprecation warning.

sbeca avatar Jun 05 '19 12:06 sbeca