@connectedbits/react-native-image-picker 2.4.12 → 2.4.13-android-legacy
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/.gradle/5.4.1/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/5.4.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/5.4.1/fileContent/fileContent.lock +0 -0
- package/android/.gradle/5.4.1/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/5.4.1/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/5.4.1/javaCompile/classAnalysis.bin +0 -0
- package/android/.gradle/5.4.1/javaCompile/jarAnalysis.bin +0 -0
- package/android/.gradle/5.4.1/javaCompile/javaCompile.lock +0 -0
- package/android/.gradle/5.4.1/javaCompile/taskHistory.bin +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/build.gradle +3 -0
- package/android/gradle.properties +2 -2
- package/android/src/main/java/com/imagepicker/FileProvider.java +1 -1
- package/android/src/main/java/com/imagepicker/ImagePickerModule.java +4 -4
- package/android/src/main/java/com/imagepicker/ImagePickerPackage.java +1 -1
- package/android/src/main/java/com/imagepicker/ResponseHelper.java +1 -1
- package/android/src/main/java/com/imagepicker/media/ImageConfig.java +2 -2
- package/android/src/main/java/com/imagepicker/permissions/OnImagePickerPermissionsCallback.java +1 -1
- package/android/src/main/java/com/imagepicker/permissions/PermissionUtils.java +3 -3
- package/android/src/main/java/com/imagepicker/utils/ButtonsHelper.java +2 -2
- package/android/src/main/java/com/imagepicker/utils/MediaUtils.java +2 -2
- package/android/src/main/java/com/imagepicker/utils/ReadableMapUtils.java +1 -1
- package/android/src/main/java/com/imagepicker/utils/RealPathUtil.java +3 -3
- package/android/src/main/java/com/imagepicker/utils/UI.java +3 -3
- package/android/src/test/java/com/imagepicker/testing/TestableImagePickerModule.java +3 -3
- package/ios/ImagePickerManager.m +2 -2
- package/ios/RNImagePicker.xcodeproj/project.xcworkspace/xcuserdata/shade.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/package.json +1 -1
- package/android/.project +0 -17
- package/android/.settings/org.eclipse.buildship.core.prefs +0 -13
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build.gradle
CHANGED
|
@@ -52,6 +52,9 @@ repositories {
|
|
|
52
52
|
|
|
53
53
|
dependencies {
|
|
54
54
|
api "com.facebook.react:react-native:+" // From node_modules
|
|
55
|
+
implementation 'com.android.support:support-annotations:28.0.0'
|
|
56
|
+
implementation 'com.android.support:support-v4:28.0.0'
|
|
57
|
+
implementation 'com.android.support:support-compat:28.0.0'
|
|
55
58
|
|
|
56
59
|
testImplementation('org.robolectric:robolectric:4.3.1') {
|
|
57
60
|
// https://github.com/robolectric/robolectric/issues/5245
|
|
@@ -13,10 +13,10 @@ import android.net.Uri;
|
|
|
13
13
|
import android.os.Build;
|
|
14
14
|
import android.provider.MediaStore;
|
|
15
15
|
import android.provider.Settings;
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
16
|
+
import android.support.annotation.NonNull;
|
|
17
|
+
import android.support.annotation.StyleRes;
|
|
18
|
+
import android.support.v4.app.ActivityCompat;
|
|
19
|
+
import android.app.AlertDialog;
|
|
20
20
|
|
|
21
21
|
import android.util.Base64;
|
|
22
22
|
import android.content.pm.PackageManager;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
package com.imagepicker.media;
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import android.support.annotation.NonNull;
|
|
4
|
+
import android.support.annotation.Nullable;
|
|
5
5
|
|
|
6
6
|
import android.net.Uri;
|
|
7
7
|
import android.webkit.MimeTypeMap;
|
|
@@ -2,9 +2,9 @@ package com.imagepicker.permissions;
|
|
|
2
2
|
|
|
3
3
|
import android.app.Activity;
|
|
4
4
|
import android.content.DialogInterface;
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import android.support.annotation.NonNull;
|
|
6
|
+
import android.support.annotation.Nullable;
|
|
7
|
+
import android.app.AlertDialog;
|
|
8
8
|
|
|
9
9
|
import com.facebook.react.bridge.ReadableMap;
|
|
10
10
|
import com.facebook.react.bridge.ReadableNativeMap;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
package com.imagepicker.utils;
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import android.support.annotation.NonNull;
|
|
4
|
+
import android.support.annotation.Nullable;
|
|
5
5
|
|
|
6
6
|
import com.facebook.react.bridge.ReadableArray;
|
|
7
7
|
import com.facebook.react.bridge.ReadableMap;
|
|
@@ -6,8 +6,8 @@ import android.graphics.BitmapFactory;
|
|
|
6
6
|
import android.graphics.Matrix;
|
|
7
7
|
import android.media.ExifInterface;
|
|
8
8
|
import android.os.Environment;
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import android.support.annotation.NonNull;
|
|
10
|
+
import android.support.annotation.Nullable;
|
|
11
11
|
|
|
12
12
|
import com.facebook.react.bridge.ReadableMap;
|
|
13
13
|
import com.imagepicker.ResponseHelper;
|
|
@@ -9,9 +9,9 @@ import android.provider.DocumentsContract;
|
|
|
9
9
|
import android.provider.MediaStore;
|
|
10
10
|
import android.content.ContentUris;
|
|
11
11
|
import android.os.Environment;
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
12
|
+
import android.support.annotation.NonNull;
|
|
13
|
+
import android.support.annotation.Nullable;
|
|
14
|
+
import android.support.v4.content.FileProvider;
|
|
15
15
|
|
|
16
16
|
import java.io.File;
|
|
17
17
|
|
|
@@ -3,9 +3,9 @@ package com.imagepicker.utils;
|
|
|
3
3
|
import android.content.Context;
|
|
4
4
|
import android.content.DialogInterface;
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import android.support.annotation.NonNull;
|
|
7
|
+
import android.support.annotation.Nullable;
|
|
8
|
+
import android.app.AlertDialog;
|
|
9
9
|
import android.widget.ArrayAdapter;
|
|
10
10
|
|
|
11
11
|
import com.facebook.react.bridge.ReadableMap;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
package com.imagepicker.testing;
|
|
2
2
|
|
|
3
3
|
import android.net.Uri;
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import android.support.annotation.NonNull;
|
|
5
|
+
import android.support.annotation.Nullable;
|
|
6
|
+
import android.support.annotation.StyleRes;
|
|
7
7
|
|
|
8
8
|
import com.facebook.react.bridge.Callback;
|
|
9
9
|
import com.facebook.react.bridge.ReactApplicationContext;
|
package/ios/ImagePickerManager.m
CHANGED
|
@@ -381,11 +381,11 @@ RCT_EXPORT_METHOD(showImagePicker:(NSDictionary *)options callback:(RCTResponseS
|
|
|
381
381
|
NSString *mimeType;
|
|
382
382
|
if ([[self.options objectForKey:@"imageFileType"] isEqualToString:@"png"]) {
|
|
383
383
|
data = UIImagePNGRepresentation(editedImage);
|
|
384
|
-
mimeType =
|
|
384
|
+
mimeType = @"image/png";
|
|
385
385
|
}
|
|
386
386
|
else {
|
|
387
387
|
data = UIImageJPEGRepresentation(editedImage, [[self.options valueForKey:@"quality"] floatValue]);
|
|
388
|
-
mimeType =
|
|
388
|
+
mimeType = @"image/jpeg";
|
|
389
389
|
}
|
|
390
390
|
[self.response setObject:mimeType forKey:@"type"];
|
|
391
391
|
[data writeToFile:path atomically:YES];
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@connectedbits/react-native-image-picker",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.13-android-legacy",
|
|
4
4
|
"description": "A React Native module that allows you to use native UI to select media from the device library or directly from the camera",
|
|
5
5
|
"react-native": "src/index.ts",
|
|
6
6
|
"types": "lib/typescript/index.d.ts",
|
package/android/.project
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<projectDescription>
|
|
3
|
-
<name>android_</name>
|
|
4
|
-
<comment>Project android_ created by Buildship.</comment>
|
|
5
|
-
<projects>
|
|
6
|
-
</projects>
|
|
7
|
-
<buildSpec>
|
|
8
|
-
<buildCommand>
|
|
9
|
-
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
|
|
10
|
-
<arguments>
|
|
11
|
-
</arguments>
|
|
12
|
-
</buildCommand>
|
|
13
|
-
</buildSpec>
|
|
14
|
-
<natures>
|
|
15
|
-
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
|
|
16
|
-
</natures>
|
|
17
|
-
</projectDescription>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
arguments=
|
|
2
|
-
auto.sync=false
|
|
3
|
-
build.scans.enabled=false
|
|
4
|
-
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
|
|
5
|
-
connection.project.dir=
|
|
6
|
-
eclipse.preferences.version=1
|
|
7
|
-
gradle.user.home=
|
|
8
|
-
java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home
|
|
9
|
-
jvm.arguments=
|
|
10
|
-
offline.mode=false
|
|
11
|
-
override.workspace.settings=true
|
|
12
|
-
show.console.view=true
|
|
13
|
-
show.executions.view=true
|