Jafar Jabr
be1a4980e3
remove deprecated gradle option ( #1390 )
...
remove The option 'android.enableUnitTestBinaryResources' is deprecated
which removed from gradle 4, The current default is 'false'
to allow the build using gradle 4
2020-07-13 13:42:09 -04:00
Akhmad Syaikhul Hadi
38db13aeb6
Fix failure delivering result info #579
2020-05-07 08:13:08 +02:00
Ulf Andersson
d3a7ed2ca0
test: Make tests work with >=Java9 by upgrading libraries
...
- Upgrade RoboElectric from 3.3.2 => 4.3.1
- Upgrade PowerMock from 1.6.2 => 1.6.6
- Removed unused fest-assert-core
- Remove explicit mockito, junit and assertj dependencies, correct
versions are pulled in as transitive depedencies by RoboElectric
2020-05-04 07:33:54 +02:00
Marcus Bergholm
54d62aca89
Add write permission check when accessing camera android ( #1295 )
2020-02-26 10:26:40 -06:00
Levi
14be039814
clean up
2020-02-10 09:27:16 +02:00
Levi
6005f36dd7
allow android to save photos to private directory
2020-02-10 09:27:16 +02:00
Nathan Greene
eab19caa19
fix: Having a space in the filename on android no longer causes the filetype to be null
2020-01-22 09:21:02 +02:00
lizraeli
cd69e948d0
remove commented code
2020-01-09 11:39:53 +02:00
lizraeli
ac142cf9cd
Add break statements in switch
2020-01-09 11:39:53 +02:00
Lev Izraelit
997c272f78
Split permission requests for Camera & Gallery
2020-01-09 11:39:53 +02:00
Johan Forslund
aacf1b2d5b
fix(android): Support devices with multiple gallery apps
2019-08-30 13:33:06 +01:00
hossamnasser938
454fff34df
feat(mixed): add support for android
2019-08-29 16:29:05 +01:00
Janic Duplessis
707a9e4222
Move default theme to ImagePickerModule
2019-08-02 00:27:39 -04:00
Janic Duplessis
48869a0e08
Add @NativeModule annotation
2019-08-02 00:21:20 -04:00
Johan
11dcf311b7
V1.0.1 ( #1120 )
...
refactor: Replace JavaScript with TypeScript and AndroidX support
2019-07-09 10:09:00 +01:00
Casey Li
619902cc16
#972 : change ImageConfig.withOriginalFile() to address testOnImmutable failure ( #973 )
2019-01-05 22:47:48 -05:00
Wyatt Greenway
d0683f464d
Fix root path exception for older Android devices ( #951 )
...
* Fix root path exception for older Android devices
* Updates for further issues on other older devices
2019-01-05 22:23:47 -05:00
Phạm Văn Quân
54f1042716
Upgrade Android dependencies, added Google maven repository ( #1000 )
...
* Upgrade Android dependencies, added Google maven repository
* Removed redundant google()
* Revert google() repo change
* Sync gradle settings with latest version of React Native
2019-01-03 18:51:09 -05:00
Hyo Chan Jang
072e389ec8
Replace deprecated 'compile' gradle configuration with 'implementation' ( #1010 )
...
According to [ReactNative@0.57 ](https://github.com/react-native-community/react-native-releases/blob/master/CHANGELOG.md#057 ) default gradle version is now `4.4`.
2019-01-03 18:48:26 -05:00
Nicolas Charpentier
fa3c624602
Fix Android build
2018-12-10 14:41:44 -05:00
Jamie Curtis
e6c64ea1b5
Set this.callback before permissionsCheck so that permissionDenied dialog doesn't crash when trying to call the callback ( #808 )
2018-10-03 15:15:01 -04:00
Himanshu Kushwah
6d24702205
Update ImagePickerModule.java to fix multiple tap on upload image button crash ( #782 )
...
* Update ImagePickerModule.java
when multiple time image picker open is clicked doOnCancel() function cause app crash.
updated to handle case when callback is null.
* Update ImagePickerModule.java
2018-10-02 15:50:24 -04:00
Rudy
7fc3e3b4c1
Fix Android to bypass GIF image compression ( #725 )
2018-10-02 13:46:22 -04:00
nathan-K-
7b9ff643c7
Use filestorage.path on android #885 ( #886 )
...
* Add support for fileStorage.path on Android
* Update README.md
2018-09-28 10:19:27 -04:00
satinos
78bf08cd7b
Fix runtime crashe for Android 7. ( #918 )
...
Crash message:
Tried to read an int but got non-integral double.
2018-09-28 10:17:43 -04:00
Nicolas Charpentier
8187eaf1ca
Check for presence of project-wide gradle configuration properties
2018-09-28 10:10:51 -04:00
David Alexander Bjerremose
694fa1de5c
Fix permission issue ( #848 )
2018-05-13 10:33:49 -07:00
Haitao Li
60169dc5df
Merge pull request #571 from rigdern/rigdern/fileprovider-conflict
...
Avoid conflicting with other FileProviders
2018-02-20 21:01:43 -08:00
Carsten Pfeiffer
876c193871
Avoid copying image data when saving and close the stream!
...
Instead of duplicating the entire image in memory with
ByteArrayOutputStream.toByteArray(), write to the FileOutputStream without copying.
2017-11-13 16:39:26 +01:00
Aaron Trank
d25c17f3ed
Add support for KitKat (API level 19) ( #583 )
2017-09-05 17:29:34 -04:00
cani1see
f37d925085
null checker for some old phones ( #621 )
2017-09-05 10:10:37 -04:00
Eugene Sokovikov
a95cbe6504
disable permission dialog when permissionDenied=null ( #622 )
2017-09-05 09:58:35 -04:00
Haitao Li
fd4a3d18f8
Merge pull request #565 from react-community/android-image-sampling
...
[Android] Subsample image to save memory.
2017-08-17 20:52:26 -07:00
Radek Czemerys
15c4e2a718
Remove createJSModules @overide marker - RN 0.47 compatibility ( #653 )
2017-08-13 05:17:12 -04:00
Adam Comella
48e8683245
Avoid conflicting with other FileProviders
...
If multiple AndroidManifest.xml files specify FileProviders (e.g. the app, a library like react-native-image-picker), you may receive compilation errors when these AndroidManifest.xml files are merged due to conflicts in fields such as `android:authorities` and `android:resource`.
This occurs when multiple AndroidManifest.xml files specify a `android.support.v4.content.FileProvider`. To avoid the conflict, we subclass `android.support.v4.content.FileProvider` and then we refer to our subclass in the AndroidManifest.xml file to avoid the conflict.
This solution is described here: http://stackoverflow.com/a/41550634
2017-05-03 15:50:03 -07:00
Haitao Li
2eb0ebca4d
[Android] Subsample image to save memory.
2017-04-30 12:04:54 -07:00
Marc Shilling
bdcbb09900
remove unnecessary import that was causing build to fail
2017-04-11 20:16:14 -04:00
Alexey Podolian
1efe791f3a
Update build.gradle ( #535 )
2017-04-11 20:00:58 -04:00
Alexander
e644eac84f
[ ANDROID ] Added support of storageOptions key ( #513 )
...
* Fixed saving photo path
* Removed Logs
* Recovered Example
* NOTES:
* Refactored onActivityResume
* Added first test
* Updated PULL REQUEST TEMPLATE
2017-04-11 19:59:46 -04:00
Kevin Cooper
f5d379f8b1
Allow saving to camera roll on Android ( #516 )
...
* Allow saving to camera roll on Android
* Move the new file so it also works for files that aren't resized
2017-03-19 14:18:03 -04:00
egpast
646e427633
Android: fix cancellation handling ( #506 )
...
- This was broken by #496 .
- Currently, the response object is empty, lacking the `didCancel` flag.
2017-03-10 12:04:29 -05:00
Alexander
92e35a6ea2
Fixed minimal version for FileProvider ( #500 )
2017-03-07 18:58:23 -05:00
Victor Duate da Silva
cd89afed73
Undo commit bf79750 to solve thw Warning 'provider#android.support.v4.content.FileProvider@android:authorities was tagged at AndroidManifest.xml:8 to replace other declarations but no other declaration present' ( #497 )
2017-03-04 19:35:10 -05:00
Alexander
7eaa65dc6d
[ANDROID] Refactoring of Code plus bug fixes ( #496 )
...
* Fixed issue#485
Fixed issue#478
* Removed useless file
* Recoverd options for launchCamera and launchImageLibrary
2017-03-04 15:52:57 -05:00
Alexander
bf79750395
Fixed bug of getting authority for Android 5.1 ( #486 )
2017-02-26 11:06:15 -05:00
Alexander Ustinov
3dd1d6ab75
Merge branch 'refactoring'
2017-02-24 11:27:21 +07:00
Alexander Ustinov
b53f930a31
Cleaned up showImagePicker logic
2017-02-24 11:22:33 +07:00
Alexander Ustinov
e6b6c3c6e4
Leading to the same code style
2017-02-20 00:57:07 +07:00
Marc Shilling
3b7c1d8968
move minSdkVersion back to 16
2017-02-18 11:17:38 -05:00
Marc Shilling
483f9bd61f
oops
2017-02-17 08:48:05 -05:00