diff --git a/android/build.gradle b/android/build.gradle index a393434..5a3cb67 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -73,7 +73,7 @@ repositories { dependencies { //noinspection GradleDynamicVersion implementation 'com.facebook.react:react-native:+' // From node_modules - implementation 'commons-io:commons-io:+' + implementation 'commons-io:commons-io:2.8.0' } def configureReactNativePom(def pom) { diff --git a/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java b/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java index 17cd2b2..45d71d3 100644 --- a/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java +++ b/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java @@ -1,20 +1,10 @@ package com.reactlibrary.createthumbnail; -import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.OutputStream; -import java.util.UUID; -import java.util.HashMap; -import java.util.Map; -import java.util.Arrays; -import android.webkit.URLUtil; -import android.net.Uri; - import android.graphics.Bitmap; import android.media.MediaMetadataRetriever; +import android.net.Uri; import android.os.Build.VERSION; -import android.os.Environment; +import android.webkit.URLUtil; import com.facebook.react.bridge.Arguments; import com.facebook.react.bridge.Promise; @@ -26,6 +16,15 @@ import org.apache.commons.io.comparator.LastModifiedFileComparator; +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStream; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; + public class CreateThumbnailModule extends ReactContextBaseJavaModule { private final ReactApplicationContext reactContext;