This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[camera] Implemented capture orientation locking. Fixed preview rotation issues. Fixed video and photo orientation upon save. #3390
Merged
fluttergithubbot
merged 44 commits into
flutter:master
from
Baseflow:fix/video-photo-preview-rotation
Jan 13, 2021
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
2197235
Fixed video orientation on iOS
BeMacized 5988830
Remove unnecessary check
BeMacized 6bcf07d
Merge branch 'master' into fix/video-photo-preview-rotation
BeMacized 9c4d4ca
Expand platform interface to support reporting device orientation
BeMacized 484e02f
Merge branch 'fix/video-photo-preview-rotation-platform-interface' in…
BeMacized ed56fac
Switch to flutter DeviceOrientation enum
BeMacized 1092177
Merge branch 'fix/video-photo-preview-rotation-platform-interface' in…
BeMacized 07931a7
Fix preview rotation on iOS
BeMacized abe4360
Fix preview rotation for android
BeMacized 4dcbbf7
Update unit tests
BeMacized 69f752d
Fix rotation on initialise.
BeMacized fb42049
Keep EXIF data and picture orientation
mvanbeusekom 13b9305
Fix photo capture orientation
mvanbeusekom eab58fe
Add interface methods for (un)locking the capture orientation.
BeMacized 273d6e0
Merge branch 'fix/video-photo-preview-rotation-platform-interface' in…
BeMacized 27bba29
Update capture orientation interfaces and add unit tests.
BeMacized 751921a
Merge branch 'fix/video-photo-preview-rotation-platform-interface' in…
BeMacized 859076f
Made device orientation mandatory for locking capture orientation in …
BeMacized d13b8ae
Merge branch 'fix/video-photo-preview-rotation-platform-interface' in…
BeMacized a8a9d43
Add capture orientation locking (iOS done, Android WIP)
BeMacized 165c1ed
Code format
BeMacized 3e9aad7
Add orientation lock to android implementation
BeMacized 118bd00
Update comment
BeMacized ef56d9d
Merge branch 'fix/video-photo-preview-rotation-platform-interface' in…
BeMacized aa2c392
Maintain preview rotation while recording
BeMacized 0aba73a
Merge branch 'master' into fix/video-photo-preview-rotation-platform-…
BeMacized 0c74a4b
Merge branch 'fix/video-photo-preview-rotation-platform-interface' in…
BeMacized 0bb07be
Update comment.
BeMacized 5f845fe
Merge branch 'fix/video-photo-preview-rotation-platform-interface' in…
BeMacized a2c3fbf
Update changelog and pubspec version
BeMacized 99ddc49
Merge branch 'fix/video-photo-preview-rotation-platform-interface' in…
BeMacized 9242af0
Updated changelog and pubspec version
BeMacized 1d409b9
Update packages/camera/camera_platform_interface/lib/src/events/devic…
BeMacized 96a739a
Merge branch 'master' into fix/video-photo-preview-rotation-platform-…
mvanbeusekom 3df1a7b
Merge branch 'master' into fix/video-photo-preview-rotation
mvanbeusekom 3a69c94
Merge branch 'fix/video-photo-preview-rotation-platform-interface' in…
mvanbeusekom 5ece84b
Merge with master
mvanbeusekom e69f746
Fix formatting
mvanbeusekom 1d84bae
Fix deprecation warning
mvanbeusekom f779fdc
Merge branch 'master' into fix/video-photo-preview-rotation
BeMacized 3ca8eaf
Update platform interface dependency
BeMacized 2aa1b53
Merge branch 'master' into fix/video-photo-preview-rotation
BeMacized 3135953
Rollback update to Android compileSdkVersion 30
mvanbeusekom fd412a3
Revert "Rollback update to Android compileSdkVersion 30"
mvanbeusekom File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: We recently updated
compileSdkVersion
s to 29 for all the plugins in our repo: #3042Do we need to update this to 30 for this plugin?
cc @cyanglaz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BeMacized What's the reason for updating it to 30? Is it a requirement for a particular API used in this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm honestly not quite sure. I think it came from this commit.
cc @mvanbeusekom.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cyanglaz, @bparrishMines, I indeed added this change because the "build_all_plugins_apk" build step returned the following deprecation error (see here for details):
According to the documentation on Android API 30 we should use the
activity.getDisplay()
method instead, which doesn't exists on lower API levels. This is why I changed thecompileSdkVersion
to 30.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
offline discussion: this is good! LGTM