Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RMET-3930 - Prepare to release version
4.2.0-OS53
(#149)
* RMET-3653 - Add support for capacitor and add missing permissions (#139) * test: remove hook to test plugin * test: use edit-config instead of config-file * fix: replace config-file with edit-config and remove unnecessary hook References: https://outsystemsrd.atlassian.net/browse/RMET-3653 * chore: remove unused hook References: https://outsystemsrd.atlassian.net/browse/RMET-3653 * chore: remove the usage of kotlin-kapt plugin Context: It wasn't being used. References: https://outsystemsrd.atlassian.net/browse/RMET-3653 * feat: update dependency to OSCameraLib-Android References: https://outsystemsrd.atlassian.net/browse/RMET-3653 * test: use manifest as parent References: https://outsystemsrd.atlassian.net/browse/RMET-3653 * chore: don't need to specify Manifest as parent References: https://outsystemsrd.atlassian.net/browse/RMET-3653 * chore: update dependency to OSCameraLib-Android References: https://outsystemsrd.atlassian.net/browse/RMET-3653 * fix: add necessary permissions to AndroidManifest.xml Context: MABS 11 was updated with the latest version of the native shell, which removes this permissions, so plugins need to add them. References: https://outsystemsrd.atlassian.net/browse/RMET-3856 * chore(release): prepare to release version 4.2.0-OS51 References: https://outsystemsrd.atlassian.net/browse/RMET-3857 * RMET-3810 ::: Generated Thumbnail Bigger than Expected (#136) * chore: update libraries for testing This adds the fix on the library side. References: https://outsystemsrd.atlassian.net/browse/RMET-3810 * chore: migrating theses codes from library These are only used here, so this is where they belong. * chore: remove unused variables * chore: add CHANGELOG entry References: https://outsystemsrd.atlassian.net/browse/RMET-3810 --------- Co-authored-by: Alexandre Jacinto <alexandre.jacinto@outsystems.com> * RMET-3812 - Use PhotoPicker API to select media from gallery (#141) * chore: update dependency to OSCameraLib-Android References: https://outsystemsrd.atlassian.net/browse/RMET-3812 * chore: include Jetpack Compose dependencies Context: Without these, the Photo Picker is not launched for Android 12 devices. References: https://outsystemsrd.atlassian.net/browse/RMET-3812 * chore: update dependency to OSCameraLib-Android References: https://outsystemsrd.atlassian.net/browse/RMET-3812 * chore: update changelog References: https://outsystemsrd.atlassian.net/browse/RMET-3812 * chore: remove unnecessary dependencies References: https://outsystemsrd.atlassian.net/browse/RMET-3812 * chore: include activity dependency References: https://outsystemsrd.atlassian.net/browse/RMET-3812 * chore: update dependency to OSCameraLib-Android References: https://outsystemsrd.atlassian.net/browse/RMET-3812 * chore: update dependency to OSCameraLib-Android References: https://outsystemsrd.atlassian.net/browse/RMET-3812 * chore: update dependency to OSCameraLib-Android References: https://outsystemsrd.atlassian.net/browse/RMET-3812 * chore: update dependency to OSCameraLib-Android References: https://outsystemsrd.atlassian.net/browse/RMET-3812 * RMET-3875 - Fix issue in permission request for `EditURIPicture` and remove unnecessary permissions (#142) * fix: properly check if gallery permissions are needed References: https://outsystemsrd.atlassian.net/browse/RMET-3875 * fix: avoid requesting unnecessary permission when choosing media from the gallery Context: When using intents or the Photo Picker API for the user to select media (images and videos) we don't need to request the READ_EXTERNAL_STORAGE permission. That is only necessary when accessing files in the external storage (e.g. when calling editURIPicture) References: https://outsystemsrd.atlassian.net/browse/RMET-3875 * fix: remove unnecessary permissions from plugin Context: We actually never request these permissions, so there's no point in declaring them in the AndroidManifest.xml file. References: https://outsystemsrd.atlassian.net/browse/RMET-3875 * chore: update dependency to OSCameraLib-Android References: https://outsystemsrd.atlassian.net/browse/RMET-3875 * chore: update changelog References: https://outsystemsrd.atlassian.net/browse/RMET-3875 * refactor: avoid asking unnecessary permissions Context: As we use the MediaStore to fetch and store photos in the device's gallery, these permissions aren't necessary. References: https://outsystemsrd.atlassian.net/browse/RMET-3875 * chore: set lib to dev version * Revert "refactor: avoid asking unnecessary permissions" This reverts commit 28d61e4. * revert: revert commit where we removed the READ_EXTERNAL_STORAGE permission request for Android < 13 References: https://outsystemsrd.atlassian.net/browse/RMET-3875 * chore: remove entry from changelog References: https://outsystemsrd.atlassian.net/browse/RMET-3875 * chore: update dependency to OSCameraLib-Android References: https://outsystemsrd.atlassian.net/browse/RMET-3875 * chore(release): raise to version 4.2.0-OS52 References: https://outsystemsrd.atlassian.net/browse/RMET-3875 * RMET-3894 ::: Improve Error Handling for Size (#144) * fix(ios): improve error handling for OSCAMRTakePictureParameters Make 'targetWidth' and 'targetHeight' optional and 'includeMetadata' and 'latestVersion' mandatory. Validate all optional fields and, when the result is missing or out of bounds, return the new OSCAMRTakePictureParametersError invalid error. This error is also managed on OSCamera's takePicture method. Update iOS library, that also adds error handling on its side. References: https://outsystemsrd.atlassian.net/browse/RMET-3894 * fix(js): remove default value for takePicture's targetWidth and targetHeight The nil values are supposed to go into the native code for proper error handling. Sync default quality value with Outsystems. References: https://outsystemsrd.atlassian.net/browse/RMET-3894 * chore(android): adapt code to new JavaScript structure 'targetWidth' and 'targetHeight' can be passed as 'null', so they need a fallback value when retrieved. References: https://outsystemsrd.atlassian.net/browse/RMET-3894 * refactor(android): code cleanse Remove unused and unnecessary variable definition. Simplify 'includeMetadata' and 'latestVersion' value retrieval. References: https://outsystemsrd.atlassian.net/browse/RMET-3894 * chore: add CHANGELOG entry References: https://outsystemsrd.atlassian.net/browse/RMET-3894 * chore(release): set to version 4.2.0-OS52 (#145) References: https://outsystemsrd.atlassian.net/browse/RMET-3888 * Revert "Merge branch 'outsystems' into development" This reverts commit 5e44264, reversing changes made to b9bd0e9. * chore: remove unnecessary entry from changelog References: https://outsystemsrd.atlassian.net/browse/RMET-3888 * chore: add missing entries to CHANGELOG.md References: https://outsystemsrd.atlassian.net/browse/RMET-3888 * Fix ::: RMET-3806 ::: Checking camera permission in Android (#147) * fix: Only request camera permission if declared References: - https://outsystemsrd.atlassian.net/browse/RMET-3806 - https://developer.android.com/reference/android/provider/MediaStore#ACTION_IMAGE_CAPTURE - https://developer.android.com/reference/android/provider/MediaStore#ACTION_VIDEO_CAPTURE * chore: Update CHANGELOG.md References: - https://outsystemsrd.atlassian.net/browse/RMET-3806 * RMET-3930 - Review external storage permissions (#148) * fix: avoid asking for storage permissions if saveToPhotoAlbum is false (and refactor code) Context: If saveToPhotoAlbum is false, we don't need to request storage permissions. References: https://outsystemsrd.atlassian.net/browse/RMET-3930 * chore: simplify code for callCaptureVideo References: https://outsystemsrd.atlassian.net/browse/RMET-3930 * refactor: only request storage permissions for TakePicture and RecordVideo for Android <= 10 Context: For Android <= 10, if these permissions aren't requested, a SecurityException is thrown. For Android >= 11, these permissions aren't necessary. References: https://outsystemsrd.atlassian.net/browse/RMET-3930 * refactor: refactoring editURIPicture to only ask for storage permissions for Android <= 10 Context: These permissions aren't necessary starting on Android 11. References: https://outsystemsrd.atlassian.net/browse/RMET-3930 * fix: only ask for storage permissions in chooseFromGallery for Android <= 10 Context: These permissions aren't necessary starting on Android 11. References: https://outsystemsrd.atlassian.net/browse/RMET-3930 * fix: only request external storage permission for Android <= 10 Context: This permissions isn't necessary for Android >= 11. References: https://outsystemsrd.atlassian.net/browse/RMET-3930 * chore: add comments explaining if conditions References: https://outsystemsrd.atlassian.net/browse/RMET-3930 * chore: update changelog References: https://outsystemsrd.atlassian.net/browse/RMET-3930 * refactor: remove extra lines * fix: only include external storage permissions in Manifest for Android <= 10 References: https://outsystemsrd.atlassian.net/browse/RMET-3930 * chore: revert previous commit * chore: update dependency to OSCameraLib-Android References: https://outsystemsrd.atlassian.net/browse/RMET-3930 * chore: update dependency to OSCameraLib-Android References: https://outsystemsrd.atlassian.net/browse/RMET-3930 * chore: update dependency to OSCameraLib-Android References: https://outsystemsrd.atlassian.net/browse/RMET-3930 * chore(release): raise to version 4.2.0-OS53 References: https://outsystemsrd.atlassian.net/browse/RMET-3930 * chore: add missing changelog entries References: https://outsystemsrd.atlassian.net/browse/RMET-3930 --------- Co-authored-by: Ricardo Silva <97543217+OS-ricardomoreirasilva@users.noreply.github.com> Co-authored-by: Pedro Bilro <pedro.gustavo.bilro@outsystems.com>
- Loading branch information