Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share photos implementation (including test code) #438

Conversation

PavlosTze
Copy link
Member

Why?

After capturing a photo and pressing the upload button, the user should have the option to share their photos by selecting the corresponding button.

How?

  • Created function openShareImages which is responsible for sharing the images, given an ArrayList<Uri>.

Testing

Follow the flow in local mock and in the gallery I have transformed the Upload button to be used as "Share".

Copy link

github-actions bot commented Dec 9, 2024

Coverage Report (Type: Instructions)

Overall Project 88.45% -0.09%
Files changed 0%

File Coverage
PhotoGalleryViewModel.kt 0% -17.21%

@PavlosTze PavlosTze merged commit e82865d into feature/fe-1344-photo-capturing-and-gallery-screens Dec 13, 2024
5 of 6 checks passed
@PavlosTze PavlosTze deleted the feature/fe-1347-share-photos-action branch December 13, 2024 11:48
PavlosTze added a commit that referenced this pull request Dec 13, 2024
* [WIP] Implement the first states of the photo gallery. Without camera permission and with no photos.

* Fix permissions for camera

* Upload button functionality

* Save the captured photo in files, save their paths and update the UI based on the number of current photos

* Create the thumbnails. Moved normalizedName function to UIDevice. Pass device object to photo verification screens.

* Support landscape photos. Show selected photo in full size.

* Delete the local file when the user presses the delete button

* Fix detekt

* Fix unit tests

* Open camera permisssions and camera only if gallery is empy. Auto-select the latest photo taken at all cases.

* On gallery onCreate click the "+" button automatically. Fix background of good and bad examples in intro.

* Share photos implementation (including test code) (#438)

* Share photos implementation (including test code)

* Use a different file provider for each flavor (distinct by applicationId)
PavlosTze added a commit that referenced this pull request Dec 17, 2024
* [WIP] Implement the first states of the photo gallery. Without camera permission and with no photos.

* Fix permissions for camera

* Upload button functionality

* Save the captured photo in files, save their paths and update the UI based on the number of current photos

* Create the thumbnails. Moved normalizedName function to UIDevice. Pass device object to photo verification screens.

* Support landscape photos. Show selected photo in full size.

* Delete the local file when the user presses the delete button

* Fix detekt

* Fix unit tests

* Open camera permisssions and camera only if gallery is empy. Auto-select the latest photo taken at all cases.

* On gallery onCreate click the "+" button automatically. Fix background of good and bad examples in intro.

* Share photos implementation (including test code) (#438)

* Share photos implementation (including test code)

* Use a different file provider for each flavor (distinct by applicationId)
PavlosTze added a commit that referenced this pull request Jan 7, 2025
* [WIP] Implement the first states of the photo gallery. Without camera permission and with no photos.

* Fix permissions for camera

* Upload button functionality

* Save the captured photo in files, save their paths and update the UI based on the number of current photos

* Create the thumbnails. Moved normalizedName function to UIDevice. Pass device object to photo verification screens.

* Support landscape photos. Show selected photo in full size.

* Delete the local file when the user presses the delete button

* Fix detekt

* Fix unit tests

* Open camera permisssions and camera only if gallery is empy. Auto-select the latest photo taken at all cases.

* On gallery onCreate click the "+" button automatically. Fix background of good and bad examples in intro.

* Share photos implementation (including test code) (#438)

* Share photos implementation (including test code)

* Use a different file provider for each flavor (distinct by applicationId)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants