File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
src/main/java/com/getcapacitor/plugin/camera Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,8 @@ dependencies {
7070 androidTestImplementation " androidx.test.ext:junit:$androidxJunitVersion "
7171 androidTestImplementation " androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion "
7272 implementation " org.apache.cordova:framework:$cordovaAndroidVersion "
73+ implementation ' androidx.exifinterface:exifinterface:1.2.0'
7374 testImplementation ' org.json:json:20140107'
74- testImplementation ' org.mockito:mockito-inline:2.13.0 '
75+ testImplementation ' org.mockito:mockito-inline:2.25.1 '
7576}
77+
Original file line number Diff line number Diff line change 11package com .getcapacitor .plugin .camera ;
22
3- import android .media .ExifInterface ;
3+ import androidx . exifinterface .media .ExifInterface ;
44
5- import static android .media .ExifInterface .*;
5+ import static androidx . exifinterface .media .ExifInterface .*;
66
77import com .getcapacitor .JSObject ;
88
@@ -22,7 +22,7 @@ public JSObject toJson() {
2222
2323 // Commented fields are for API 24. Left in to save someone the wrist damage later
2424
25- p (ret , TAG_APERTURE );
25+ p (ret , TAG_APERTURE_VALUE );
2626 /*
2727 p(ret, TAG_ARTIST);
2828 p(ret, TAG_BITS_PER_SAMPLE);
@@ -105,7 +105,7 @@ public JSObject toJson() {
105105 p (ret , TAG_IMAGE_LENGTH );
106106 // p(ret, TAG_IMAGE_UNIQUE_ID);
107107 p (ret , TAG_IMAGE_WIDTH );
108- p (ret , TAG_ISO );
108+ p (ret , TAG_ISO_SPEED );
109109 /*
110110 p(ret, TAG_INTEROPERABILITY_INDEX);
111111 p(ret, TAG_ISO_SPEED_RATINGS);
Original file line number Diff line number Diff line change 44import android .database .Cursor ;
55import android .graphics .Bitmap ;
66import android .graphics .Matrix ;
7- import android .media .ExifInterface ;
7+ import androidx . exifinterface .media .ExifInterface ;
88import android .net .Uri ;
99import android .os .Build ;
1010import android .provider .MediaStore ;
You can’t perform that action at this time.
0 commit comments