Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
parveshneedhoo committed Sep 25, 2024
1 parent 2d458ee commit 2b8ebb0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
<dependency id="cordova-plugin-file"/>

<platform name="android">
<framework src="com.fasterxml.jackson.core:jackson-core:+" />
<framework src="com.fasterxml.jackson.core:jackson-databind:+" />

<config-file target="res/xml/config.xml" parent="/*">
<feature name="Thumbnails">
Expand Down
6 changes: 1 addition & 5 deletions src/android/Thumbnails.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;

public class Thumbnails {

Expand Down Expand Up @@ -46,9 +44,7 @@ private static Bitmap thumbnailSmallImage(Options thumbnailOptions) throws Excep
Bitmap bitmap = BitmapFactory.decodeFile(thumbnailOptions.sourcePath, options);

if (bitmap == null) {
ObjectWriter ow = new ObjectMapper().writer().withDefaultPrettyPrinter();
String optionsJSON = ow.writeValueAsString(options);
throw new Exception("Could not decode file into bitmap object { sourcePath: " + thumbnailOptions.sourcePath + " options: " + optionsJSON + " }");
throw new Exception("Could not decode file into bitmap object { sourcePath: " + thumbnailOptions.sourcePath + " options: }");
}

long begin = System.currentTimeMillis();
Expand Down

0 comments on commit 2b8ebb0

Please sign in to comment.