Commit Graph

213 Commits

Author SHA1 Message Date
Chris Brody
dc73954108
Merge pull request #242 from DisruptiveMind/master
CB-11714: (windows) added check for encoding in savePhoto() without height/width
2018-10-03 18:42:51 -04:00
Jan Piotrowski
c1b9772dca
replace double quotes with single quotes 2018-10-03 20:54:06 +02:00
Tyler Pham
eb57b02ba8 CB-11714: reuse picture.name instead of pictureName 2018-09-16 19:22:16 -04:00
Tyler Pham
dca4b9c82b simplify picture.copyAsync 2018-09-16 19:19:13 -04:00
bvmensvoort
5c23b65af9 CB-14097: (android) Fix crash when selecting some files with getPicture (#322)
* CB-14097: (android) Fix crash when selecting some files with getPicture of urls with raw://

Handles both urls:
content://com.android.providers.downloads.documents/document/1111
content://com.android.providers.downloads.documents/document/raw%3A%2Fstorage%2Femulated%2F0%2FDownload%2Ffilename.pdf

* Optimization: Remove TextUtils dependency, return null when no id could be extracted
2018-07-06 00:16:25 +02:00
Matthew Vander Vliet
5163d38465 CB-13384: (browser) Added deprecation of video.src compatibility (#288)
* CB-13384: (browser) Added deprecation of video.src compatibility

* CB-13384: Updated to reflect property detection rather than deprecation exception.
2018-05-25 12:44:23 +08:00
Andrew Decker
36343a8e07 Update CameraProxy.js (#284)
Remove audio flag from getUserMedia on the browser.  Including audio resulted in some nasty audio feedback, and audio isn't really needed for taking pictures anyway.
2018-05-24 13:42:39 +08:00
Hazem Saleh
5ec121bf98 CB-14047: (android) CameraLauncher: Replacing Repeated String literals with final variables (#319) 2018-04-22 14:33:52 -04:00
Joe Bowser
c8581ba2c9
Merge pull request #275 from cjpearson/CB12953
CB-12593: (android) Fix potential FileProvider conflicts
2018-03-14 12:44:35 -07:00
Julio César
7c90555bd4 CB-13854(ios): fix Camera opens in portrait orientation on iphones 2018-02-11 21:44:56 -05:00
Alpesh Patel
bf935dfbd2 CB-13415 (android) Importing corrupt images using the Camera plugin c… (#309)
* CB-13415 (android) Importing corrupt images using the Camera plugin crashes the app
2018-02-08 13:12:16 +01:00
Joe Bowser
4b99623eda
Merge pull request #308 from okode/android8_permission_request_fix
CB-13781: (android) Fixed permissions request on Android 8 to save a …
2018-01-15 14:13:07 -08:00
rpanadero
36ea63a60f CB-13781: (android) Fixed permissions request on Android 8 to save a photo into the photo album 2018-01-15 13:05:10 +01:00
Suraj Pindoria
7fad5d5786 CB-13661: Remove deprecated platforms 2017-12-12 11:09:29 -08:00
José Expósito
97d2014d62 Adds macOS support 2017-10-10 17:11:10 +02:00
Audrey So
16c4325fef CB-12895 : updated src files to use eslint format 2017-07-31 13:29:36 -07:00
Audrey So
80342b0ddd CB-12985 : setup eslint and removed jshint 2017-07-31 11:28:15 -07:00
José Luis Ballesteros del Val
3b8f64e330 CB-12964: (android) Fix of bug when Pictures folder did not exist.
If someone had removed Pictures folder in android, plugin failed trying to move there the new photo. This happened because plugin did not check the existence of this folder, and if not, it did not complete the folder tree.

This closes #273
2017-07-04 14:03:10 +03:00
Connor Pearson
cfefa53272 CB-12593: (android) Fix potential FileProvider conflicts 2017-06-30 10:15:43 -04:00
Sergii Stotskyi
c3d7e55ad4 CB-12682: (ios, android): changes cancel error message to be consistent for ios android 2017-06-07 07:36:30 +03:00
Joe Bowser
bba8283d98 CB-12005: Changing the getOrientation method to return the defined enumerated EXIF instead of orientation in degrees for Consistency
This closes #252
2017-02-02 12:10:42 -08:00
Sergey Zolotarev
d29c767f07 CB-12368: Fix permission check on Android
The plugin was checking whether camera permission was granted but then
actually requested permission for external storage.

Surprisingly enough this fixed CB-12368.
2017-01-30 23:52:54 +01:00
Shazron Abdullah
8b83171ee2 Fix missing license headers. 2016-12-07 16:19:39 -08:00
Tyler Pham
a201722f6d CB-11714: (windows) added extra check for content-type in savePhoto() without options.targetWidth/Height 2016-12-01 14:12:01 -05:00
Joe Bowser
84f96c1067 CB-11625: Files Provider does not work with Android 4.4.4 or lower, and I have no idea why. Working around with CordovaUri 2016-10-27 13:37:03 -07:00
Joe Bowser
61064ae3ed CB-11625 (Android) : Make this work with previous versions of Cordova via cordova-plugin-compat 2016-10-21 15:12:34 -07:00
Joe Bowser
b63a0d83e0 Merging API 24 code with master including large refactor 2016-09-01 15:11:33 -07:00
swbradshaw
f8682b9162 Removed unneeded file
This closes #197
2016-08-29 10:46:14 -07:00
swbradshaw
0ed6406864 Merge remote-tracking branch 'refs/remotes/apache/master'
Rebase from Master
2016-08-26 20:30:35 -04:00
Tyler Pham
c98607c613 CB-11714: (windows) added more explicit content-type when converting to target data on canvas
This closes #232
2016-08-25 10:00:41 +03:00
Simon MacDonald
6e19147b09 Plugin uses Android Log class and not Cordova LOG class 2016-08-22 15:52:52 -04:00
Joe Bowser
3ed3d887ca BuildConfig from test project crept in source code thanks to Android Studio, removing 2016-08-04 11:35:39 -07:00
Joe Bowser
00e0a7dc46 CB-11625: Managed to get Content Providers to work with a weird mix of Content Providers and non-Content Providers 2016-08-03 14:43:11 -07:00
Julio César
c13e9f327b CB-11376: (ios): fix CameraUsesGeolocation error
If it's not a camera picture don't use geolocation

 This closes #226
2016-08-02 00:16:38 +02:00
Julio César
3f8c53f7f3 CB-11410: (ios) fix cameraPopoverHandle.setPosition
This closes #224
2016-07-31 18:25:03 +02:00
Joe Bowser
b62fdf50f7 Adding provider_paths.xml so this works 2016-07-29 13:33:51 -07:00
Joe Bowser
3d26986bfd CB-11625: Working on fix to API 24 no longer allowing File URIs to be passed across intents 2016-07-27 14:06:07 -07:00
Vladimir Kotikov
fed798e6c7 CB-11447 Respect output format when retrieving images from gallery 2016-07-26 15:59:52 +03:00
Julio César
0115458ce8 Set android quality default value to 50 on the java code
Default value is set to 80 on the java code, but doc says that default
value is 50.

I’m changing it just for making code clearer, but default value is set
to 50 to all platforms in Camera.js if no value is passed
2016-05-16 19:43:01 +02:00
Keith M
39bff2f41d CB-11228 browser: Add classes for styling purposes
This closes #212
2016-05-13 11:58:11 -07:00
Keith M
7551778e13 CB-10139 browser: Respect target width and height
This closes #210
2016-05-13 11:56:43 -07:00
swbradshaw
e3a431cbeb Reverted indenting done by Android Studio 2016-05-12 21:25:36 -04:00
swbradshaw
832d6e3bea Adding missing function 2016-05-12 13:19:35 -04:00
Keith M
af98d57417 CB-11227 browser: Fix incorrect mime type
This closes #211
2016-05-09 14:09:30 -07:00
swbradshaw
f2b4eeded0 CB-4078: Fix for orientation/scaling on Android 4.4+ devices
The only way to get rotation for photos in library (Gallery, File
System, Google Drive,etc) is to first create a temporary file from the
provider. Only then can we determine the orientation and scale the
bitmap correctly. By doing it in a central place, it eliminates reading
the inputstream repetitively in the plugin.
2016-04-27 22:27:37 -04:00
Omar Mefire
4202fff7ac CB-10873
- Avoid crash due to usage of uninitialized variable when writing geolocation data to image destination
    - Properly handle 'CameraUsesGeolocation' option by properly setting geolocation data in EXIF header in all cases

 This closes #205
2016-04-13 15:49:51 -07:00
Omar Mefire
def399fe51 CB-10873 Avoid crash due to usage of uninitialized variable when writing geolocation data to image destination 2016-04-13 15:49:50 -07:00
Simon MacDonald
a9c18710f2 Replace PermissionHelper.java with cordova-plugin-compat 2016-04-05 12:17:18 -04:00
Raghav Katyal
624ddd5ced Making focus handler work only for windows 10 phone 2016-03-23 18:33:09 -07:00
riknoll
0cd962466d CB-10120 android: Fixing use of constants and PermissionHelper
This closes #179
2016-03-14 17:56:52 -07:00