Skip to content

Commit

Permalink
Merge pull request #30 from boldwade/wade/fix-create-comparator-depen…
Browse files Browse the repository at this point in the history
…dency

Specify commons-io version to fix comparator dependency
  • Loading branch information
souvik-ghosh authored Nov 18, 2020
2 parents c2c31dc + 312e586 commit 1cf3252
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 1cf3252

Please sign in to comment.