@connectedbits/react-native-image-picker 2.4.16-rc2 → 2.4.17

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.
@@ -1,14 +1,3 @@
1
- buildscript {
2
- repositories {
3
- google()
4
- jcenter()
5
- }
6
-
7
- dependencies {
8
- classpath 'com.android.tools.build:gradle:3.4.1'
9
- }
10
- }
11
-
12
1
  def getExtOrDefault(name) {
13
2
  return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['ReactNativeImagePicker_' + name]
14
3
  }
@@ -20,6 +9,10 @@ def getExtOrIntegerDefault(name) {
20
9
  apply plugin: 'com.android.library'
21
10
 
22
11
  android {
12
+ // AGP 7.3+ wants the namespace here rather than in the manifest
13
+ if (project.android.hasProperty("namespace")) {
14
+ namespace "com.imagepicker"
15
+ }
23
16
  compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
24
17
  buildToolsVersion getExtOrDefault('buildToolsVersion')
25
18
 
@@ -47,11 +40,13 @@ repositories {
47
40
  url "$projectDir/../node_modules/jsc-android/dist"
48
41
  }
49
42
  google()
50
- jcenter()
43
+ mavenCentral()
51
44
  }
52
45
 
53
46
  dependencies {
54
47
  api "com.facebook.react:react-native:+" // From node_modules
48
+ // System Photo Picker contract (PickVisualMedia + PickVisualMediaRequest.Builder)
49
+ implementation "androidx.activity:activity:1.8.0"
55
50
 
56
51
  testImplementation('org.robolectric:robolectric:4.3.1') {
57
52
  // https://github.com/robolectric/robolectric/issues/5245
@@ -3,6 +3,10 @@
3
3
  xmlns:android="http://schemas.android.com/apk/res/android"
4
4
  package="com.imagepicker"
5
5
  >
6
+ <!-- Lets us read EXIF GPS from photos picked via the system Photo Picker when the provider allows it.
7
+ No storage permission is needed: the library uses the Photo Picker and captures go to app storage. -->
8
+ <uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" />
9
+
6
10
  <application>
7
11
  <provider
8
12
  android:name="com.imagepicker.FileProvider"