b1ngx
7b61243729
feat: migrate away from onCatalystInstanceDestroy() to invalidate ( #717 )
2024-04-28 19:10:30 +02:00
Vojtech Novak
1ae7cb217d
fix(android): path traversal vulnerability ( #698 )
...
* fix: path traversal vulnerability android
* docs: library update
2024-02-05 14:14:19 +01:00
1nspir3d
c35d621db8
feat(android): update build.gradle w/ namespace ( #689 )
...
* Update build.gradle
* fix typo in build.gradle
2023-12-06 17:25:43 +01:00
Vojtech Novak
6c4ca11371
fix: ignore foreign onActivityResult ( #652 )
2023-05-15 23:12:17 +02:00
Vojtech Novak
fc1c0f2d24
feat: new architecture support ( #649 )
...
* feat: rn 70 ios builds with new arch
* feat: android migration wip
* fix: update test-app, react-native and react version, fix codegen config
* fix: change spec for backward compat
* fix: simplify android code and make it work
* fix: ios code
* fix: remove unnecessary folly version
* fix: srcDirs on paper
* refactor: review
* refactor: review
* refactor: node 18
* docs: new arch in readme
* docs: new arch in readme
* refactor: use Spec
---------
Co-authored-by: Wojciech Lewicki <wojciech.lewicki@swmansion.com>
2023-05-15 21:56:02 +02:00
GaryOoi
ac70c24cfa
fix(android): DocumentPicker throw error [Error: User canceled document picker] ( #630 )
...
Fix Error: User canceled document picker
Issue with many different devices (Motorola G7, Huawei P30 Pro, Samsung Galaxy Note 9, Huawei P30...). All users with the problem have Android 10.0, but not all users with android 10 have this issue.
2023-02-28 13:18:54 +01:00
Vojtech Novak
a3d0f7298a
fix(android): support picking 2+ GB files ( #604 )
2022-11-26 18:56:10 +01:00
Vojtech Novak
34b726a4d2
fix: improved typings, fileCopyUri to include empty hostname
2022-10-16 19:53:30 +02:00
Gurupad Mamadapur
787f5b2de0
fix: intent type not set in case of multiple mime types filter ( #557 )
2022-06-11 10:41:22 +02:00
Vojtech Novak
66efeab977
chore: migrate example to react-native-test-app ( #571 )
...
* chore: add react native test app
* fix: self-review
2022-06-11 10:33:32 +02:00
Peter Velkov
24ddad2f7c
fix: fileCopyUri should include the URI schema ( #527 )
...
BREAKING CHANGE
Make the `fileCopyUri` be an actual URI and include the schema prefix (usually `file:/`)
It already works that way on iOS
2022-01-19 22:10:06 +01:00
Matteo
5d9ed01afa
fix(android): replaced jCenter with mavenCentral ( #519 )
...
Co-authored-by: Matteo Danelli <matteo.danelli@docebo.com>
2021-12-24 16:32:36 +01:00
Vojtech Novak
1e5aa5e093
fix: pick up correct android build tools version ( #509 )
...
* fix: pick up correct android build tools version
* chore: simplify deploy
2021-12-11 13:30:06 +01:00
Vojtech Novak
6ff5fd3886
feat: fileCopyUri to be null if copyTo not provided ( #481 )
...
BREAKING CHANGE - fileCopyUri can be null
2021-10-06 20:05:32 +02:00
Vojtech Novak
b949b47ef8
fix: do not crash on double select ( #476 )
...
* fix: do not crash on double select
* docs: clarify isInProgress()
2021-10-02 20:16:44 +02:00
Vojtech Novak
0f5c99f985
chore: remove jest warning ( #474 )
2021-10-02 14:33:13 +02:00
Vojtech Novak
db09e24e5d
feat: rework module using react native bob ( #421 )
...
* feat: rework module using react native bob
* chore: rebase
* Added windows example (not working for the moment)
* Fixed implementation of the Windows example
* Fixed Lint issues
* Fixed a missing Lint issue
* Fixed another missing Lint issue
* fix: fixed all the pending Lint issues
* Added pickDirectory() implementation for Windows (proper PR) (#444 )
* feat: added pickDirectory implementation for Windows
* fix: fixed typo in property name
Co-authored-by: Matteo Pagani <matteo.pagani@microsoft.com>
2021-08-09 20:24:22 +02:00
Roman Musin
4173790a59
feat: add pickDirectory on Android ( #414 )
...
* Fix typo
* Update Android module
* Update js side
* Fix linter errors
* Update README
* Always set the path field, even if null
* Fix DirectoryPickerResponse.path
* Address code review comments
* Restore accidentally removed methods
* Fix formatting
* Indicate that pickDirectory can return null
* Make linter happy
* Only return the URI
* Remove path from the docs
* Delete trailing spaces
* Update index.d.ts
* Update index.js
Co-authored-by: Vojtech Novak <vonovak@gmail.com>
2021-06-15 23:00:24 +02:00
Mrinal Maheshwari
17a1e6bfed
chore: add mavenCentral() as jcenter() is shutting down ( #404 )
...
* Adding mavenCentral() as jcenter() is shutting
Adding mavenCentral() as jcenter() is shutting down
* put google() first
Co-authored-by: Vojtech Novak <vonovak@gmail.com>
2021-05-12 00:13:14 +02:00
Tamsin
f79be55262
fix: copyTo on android to put the file in a uniquely named dir ( #397 )
...
* When using copyTo on android put the file in a uniquely named directory
* Update package.json
Co-authored-by: Vojtech Novak <vonovak@gmail.com>
2021-03-15 23:34:16 +01:00
Roman Musin
809ff45740
Fix copyFile on Android. ( #392 )
2021-03-09 00:51:37 +01:00
Vojtech Novak
a78ca40e19
support only android >=5 (API 21) ( #386 )
...
* support android >=5 (API 21)
* document requirements
2021-02-06 12:14:26 +01:00
Tuan Luong
02afc3f746
[Android][Google Drive] Download file from google drive then cache in local storage ( #264 )
...
* get real file path
* update variable
* add property to get file path from uri
* fix bug could not get file from download folder
* change getPath to usePath
* Get data from google drive app
* implement copyTo
* update README
* update index.d.ts
* update code
Co-authored-by: Tuan Luong <tuanluong@Tuans-MacBook-Pro.local>
2021-02-06 11:46:56 +01:00
Muhammad Saqlain
5d1df3cab9
Get Mime types using readableArrayToStringArray ( #330 )
...
* Get Mime types using readableArrayToStringArray
* Update DocumentPickerModule.java
Co-authored-by: Vojtech Novak <vonovak@gmail.com>
2020-07-22 22:34:10 +02:00
Vojtech Novak
2cee0e35d0
allow cache and docs dirs
2020-06-10 23:23:56 +02:00
Vojtech Novak
5daf5898da
allow file copying
2020-05-21 18:47:34 +02:00
Elyx0
0448c617df
Update Typings
2019-07-05 14:47:56 -04:00
Brad Bumbalough
e77248fc9b
Use latest RN android build configuration
...
- Gets versions from rootProject with defaults (copied from 6643925515 ).
- Uses implementation instead of compile.
2019-03-28 11:11:02 -04:00
Manuel Nakamurakare
5f7d6eceda
changed dynamic version dependency to static
2018-12-10 14:29:01 -08:00
Johnson Su
f2e6bd5ae1
Fix typo and android build issue
2018-11-07 19:12:14 -05:00
Christian
2d19080da0
Add specific ActivityNotFoundException catch for the case where no app is available to open the desired file type
2018-06-19 19:31:40 +02:00
Daniel Friesen
1f0b7a9914
Switch error.getMessage to error.getLocalizedMessage
2017-10-18 18:41:55 -07:00
Daniel Friesen
20f937a346
Support use of Xcode 8
...
@available was added in Xcode 9. Generally only Xcode 9 even has the iOS 11 SDK so we can just omit multi-selection handling when the iOS sdk is lower than 11.
2017-10-18 17:21:22 -07:00
Daniel Friesen
61a81cfe14
Use the Exception's own message on Android instead of a custom message
2017-10-14 07:44:35 -07:00
Daniel Friesen
08eeaaa102
Revert accidental renaming of uri to url on Android
2017-10-14 07:19:59 -07:00
Daniel Friesen
73e2d0aaf8
Support multiple mime types on Android
...
- This only works on Android API level 19+
- On Android API level 18 (the only level below 19 react-native supports) this will fall back to */*
- A warning will be emitted when this happens
2017-10-14 06:26:13 -07:00
Daniel Friesen
198c2b6d0e
Print out errors that happen when the document picker fails to show
2017-10-14 06:23:41 -07:00
Daniel Friesen
54f64e82bb
Implement support for multiple selection on Android and iOS
...
`show` has been renamed to `pick` and a new `pickMultiple` has been added.
For simplicity the native code always returns an array.
2017-10-14 04:49:34 -07:00
Daniel Friesen
f0b0f379f5
Refactor fileSize output to size
...
This one isn't necessary but after renaming fileName with a good rationale fileSize is the only attribute that feels out of place.
2017-10-12 19:27:35 -07:00
Daniel Friesen
6272bd6638
Use createChooser on Android API level 18
...
Android API level 18 doesn't have a combined document picker, the intent opens apps directly. When the user chooses an app to use the intent with and uses the "Always" option they will not be able to pick a document from a different application in the future.
A chooser intent forces the choose window to always let you choose the app to pick documents from instead of going directly to one app all the time.
2017-10-12 17:11:47 -07:00
Daniel Friesen
43780503a9
Make sure we don't throw any errors if DISPLAY_NAME is ever not defined.
2017-10-12 17:06:32 -07:00
Daniel Friesen
c63516aed1
Use getInt(sizeIndex) to get the file size, instead of converting it to a string and than parsing it back into an int
2017-10-12 16:43:21 -07:00
Daniel Friesen
400bded933
Use COLUMN_MIME_TYPE to get mime type on KitKat+
2017-10-12 16:24:43 -07:00
Daniel Friesen
8d444c7ace
Rename fileName to name
...
Android's DISPLAY_NAME is not always a filename.
Also refactor to use FIELD_ constants everywhere.
2017-10-12 16:11:05 -07:00
Daniel Friesen
5c4d8cd502
Fix incorrect ok code handling
2017-10-12 16:07:04 -07:00
Daniel Friesen
cfe4ce26b8
Refactor filetype option to a new type option
...
- Rename filetype to type
- When type is omitted default to `allFiles`
- Add error for when a filetype or types option is accidentally used
- Allow type to be a string instead of an array
- Add errors handling empty arrays or non-string types
2017-10-11 22:46:02 -07:00
Daniel Friesen
8648b12b12
Add handling for when the document picker is cancelled by the user
...
- Android: Fix so RESULT_CANCELED is handled directly instead of considered an unknown result
- iOS: Handle the documentMenu and documentPicker WasCancelled delegates
- Add `DocumentPicker.isCancel(err)` helper to check for the cancellation error thrown
2017-10-11 21:39:27 -07:00
Daniel Friesen
519455ff76
Refactor to use BaseActivityEventListener to be more resilient against future API changes
...
I dropped the old onActivityResult signature so the minimum react-native version is now 0.33.0 (released Sep 10, 2016).
2017-10-11 16:43:31 -07:00
Daniel Friesen
a581a31067
Refactor Java to use getCurrentActivity and catch any exceptions that occur when starting the intent
2017-10-11 16:12:24 -07:00
Daniel Friesen
b9fa313a6d
Refactor code to use promises instead of callbacks
...
- Use promises instead of callbacks in the ObjectiveC and Java code
- Use error codes when rejecting promises from Java
2017-10-11 15:50:26 -07:00