Skip to content

feat: screen orientation plugin - #1340

Merged
jcesarmobile merged 26 commits into
ionic-team:mainfrom
eric-horodyski:plugin/screen-orientation
Feb 22, 2023
Merged

feat: screen orientation plugin#1340
jcesarmobile merged 26 commits into
ionic-team:mainfrom
eric-horodyski:plugin/screen-orientation

Conversation

@eric-horodyski

Copy link
Copy Markdown
Member

This Pull Request adds a ScreenOrientation plugin using the output of the Capacitor Plugin Tutorial.

Unfortunately, there appears to be a change in the way iOS 16 handles screen orientation handling. Looking into it, but help any contributions would be appreciated.

@dallastjames
dallastjames requested a review from IT-MikeS January 3, 2023 17:17

@IT-MikeS IT-MikeS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some suggested changes to handle:

  • Deprecation in Android
  • iOS 16 rotation changes

Please also run npm run fmt in either the root of the capacitor-plugins repo or in screen-orientation sub directory

Comment thread screen-orientation/ios/Plugin/ScreenOrientation.swift Outdated
Comment thread screen-orientation/ios/Plugin/ScreenOrientation.swift Outdated
Comment thread screen-orientation/ios/Plugin.xcworkspace/contents.xcworkspacedata Outdated
@eric-horodyski
eric-horodyski requested review from IT-MikeS and giralte-ionic and removed request for ItsChaceD, giralte-ionic and theproducer January 5, 2023 20:27
@eric-horodyski
eric-horodyski requested review from IT-MikeS and giralte-ionic and removed request for IT-MikeS and giralte-ionic January 5, 2023 20:27
@IT-MikeS
IT-MikeS requested a review from jcesarmobile January 9, 2023 14:57

@jcesarmobile jcesarmobile left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a comment.
Also the PR should have a companion PR on the capacitor-testapp to properly test the plugin functionality

Comment thread .github/workflows/ci.yml Outdated

@jcesarmobile jcesarmobile left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made some changes to the web implementation, types and some things that were missing.
Android is working fine, but iOS is crashing on iOS < 16, so should be fixed.

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.

4 participants