Skip to content

Commit

Permalink
feat(android): update to use androidx.exifinterface.media.ExifInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
smpeters authored Jul 8, 2020
1 parent bea0d84 commit 6196907
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion android/capacitor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ dependencies {
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
implementation "org.apache.cordova:framework:$cordovaAndroidVersion"
implementation 'androidx.exifinterface:exifinterface:1.2.0'
testImplementation 'org.json:json:20140107'
testImplementation 'org.mockito:mockito-inline:2.13.0'
testImplementation 'org.mockito:mockito-inline:2.25.1'
}

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.getcapacitor.plugin.camera;

import android.media.ExifInterface;
import androidx.exifinterface.media.ExifInterface;

import static android.media.ExifInterface.*;
import static androidx.exifinterface.media.ExifInterface.*;

import com.getcapacitor.JSObject;

Expand All @@ -22,7 +22,7 @@ public JSObject toJson() {

// Commented fields are for API 24. Left in to save someone the wrist damage later

p(ret, TAG_APERTURE);
p(ret, TAG_APERTURE_VALUE);
/*
p(ret, TAG_ARTIST);
p(ret, TAG_BITS_PER_SAMPLE);
Expand Down Expand Up @@ -105,7 +105,7 @@ public JSObject toJson() {
p(ret, TAG_IMAGE_LENGTH);
// p(ret, TAG_IMAGE_UNIQUE_ID);
p(ret, TAG_IMAGE_WIDTH);
p(ret, TAG_ISO);
p(ret, TAG_ISO_SPEED);
/*
p(ret, TAG_INTEROPERABILITY_INDEX);
p(ret, TAG_ISO_SPEED_RATINGS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.media.ExifInterface;
import androidx.exifinterface.media.ExifInterface;
import android.net.Uri;
import android.os.Build;
import android.provider.MediaStore;
Expand Down

0 comments on commit 6196907

Please sign in to comment.