@react-native-documents/picker 11.0.0 → 11.0.2
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/build.gradle
CHANGED
|
@@ -34,10 +34,7 @@ if (isNewArchitectureEnabled()) {
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
android {
|
|
37
|
-
|
|
38
|
-
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
|
|
39
|
-
namespace "com.reactnativedocumentpicker"
|
|
40
|
-
}
|
|
37
|
+
namespace "com.reactnativedocumentpicker"
|
|
41
38
|
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
|
|
42
39
|
|
|
43
40
|
// Used to override the NDK path/version on internal CI or by allowing
|
|
@@ -70,11 +67,8 @@ repositories {
|
|
|
70
67
|
mavenCentral()
|
|
71
68
|
}
|
|
72
69
|
|
|
73
|
-
def kotlin_version = getExtOrIntegerDefault("kotlinVersion")
|
|
74
|
-
|
|
75
70
|
dependencies {
|
|
76
71
|
//noinspection GradleDynamicVersion
|
|
77
72
|
implementation 'com.facebook.react:react-native:+' // from node_modules
|
|
78
|
-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
79
73
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1"
|
|
80
74
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
DocumentPicker_kotlinVersion=2.0.21
|
|
@@ -96,9 +96,9 @@ class RNDocumentPickerModule(reactContext: ReactApplicationContext) :
|
|
|
96
96
|
val intent = IntentFactory.getPickIntent(options)
|
|
97
97
|
currentActivity.startActivityForResult(intent, PICK_FILES_REQUEST_CODE)
|
|
98
98
|
} catch (e: ActivityNotFoundException) {
|
|
99
|
-
|
|
99
|
+
promiseWrapper.reject(UNABLE_TO_OPEN_FILE_TYPE, e)
|
|
100
100
|
} catch (e: Exception) {
|
|
101
|
-
|
|
101
|
+
promiseWrapper.reject(E_OTHER_PRESENTING_ERROR, e)
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
|
|
@@ -134,9 +134,9 @@ class RNDocumentPickerModule(reactContext: ReactApplicationContext) :
|
|
|
134
134
|
}
|
|
135
135
|
currentActivity.startActivityForResult(intent, SAVE_DOC_REQUEST_CODE)
|
|
136
136
|
} catch (e: ActivityNotFoundException) {
|
|
137
|
-
|
|
137
|
+
promiseWrapper.reject(UNABLE_TO_OPEN_FILE_TYPE, e)
|
|
138
138
|
} catch (e: Exception) {
|
|
139
|
-
|
|
139
|
+
promiseWrapper.reject(E_OTHER_PRESENTING_ERROR, e)
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
|
|
@@ -163,9 +163,9 @@ class RNDocumentPickerModule(reactContext: ReactApplicationContext) :
|
|
|
163
163
|
// TODO option for extra task on stack?
|
|
164
164
|
currentActivity.startActivityForResult(intent, PICK_DIR_REQUEST_CODE)
|
|
165
165
|
} catch (e: ActivityNotFoundException) {
|
|
166
|
-
|
|
166
|
+
promiseWrapper.reject(UNABLE_TO_OPEN_FILE_TYPE, e)
|
|
167
167
|
} catch (e: Exception) {
|
|
168
|
-
|
|
168
|
+
promiseWrapper.reject(E_OTHER_PRESENTING_ERROR, e)
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-documents/picker",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.2",
|
|
4
4
|
"description": "A react native interface to access documents from dropbox, google drive, iCloud...",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|