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 {
70
70
androidTestImplementation " androidx.test.ext:junit:$androidxJunitVersion "
71
71
androidTestImplementation " androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion "
72
72
implementation " org.apache.cordova:framework:$cordovaAndroidVersion "
73
+ implementation ' androidx.exifinterface:exifinterface:1.2.0'
73
74
testImplementation ' org.json:json:20140107'
74
- testImplementation ' org.mockito:mockito-inline:2.13.0 '
75
+ testImplementation ' org.mockito:mockito-inline:2.25.1 '
75
76
}
77
+
Original file line number Diff line number Diff line change 1
1
package com .getcapacitor .plugin .camera ;
2
2
3
- import android .media .ExifInterface ;
3
+ import androidx . exifinterface .media .ExifInterface ;
4
4
5
- import static android .media .ExifInterface .*;
5
+ import static androidx . exifinterface .media .ExifInterface .*;
6
6
7
7
import com .getcapacitor .JSObject ;
8
8
@@ -22,7 +22,7 @@ public JSObject toJson() {
22
22
23
23
// Commented fields are for API 24. Left in to save someone the wrist damage later
24
24
25
- p (ret , TAG_APERTURE );
25
+ p (ret , TAG_APERTURE_VALUE );
26
26
/*
27
27
p(ret, TAG_ARTIST);
28
28
p(ret, TAG_BITS_PER_SAMPLE);
@@ -105,7 +105,7 @@ public JSObject toJson() {
105
105
p (ret , TAG_IMAGE_LENGTH );
106
106
// p(ret, TAG_IMAGE_UNIQUE_ID);
107
107
p (ret , TAG_IMAGE_WIDTH );
108
- p (ret , TAG_ISO );
108
+ p (ret , TAG_ISO_SPEED );
109
109
/*
110
110
p(ret, TAG_INTEROPERABILITY_INDEX);
111
111
p(ret, TAG_ISO_SPEED_RATINGS);
Original file line number Diff line number Diff line change 4
4
import android .database .Cursor ;
5
5
import android .graphics .Bitmap ;
6
6
import android .graphics .Matrix ;
7
- import android .media .ExifInterface ;
7
+ import androidx . exifinterface .media .ExifInterface ;
8
8
import android .net .Uri ;
9
9
import android .os .Build ;
10
10
import android .provider .MediaStore ;
You can’t perform that action at this time.
0 commit comments