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

Enhance missing layout message #237

Merged
merged 16 commits into from
Nov 25, 2024
Merged

Conversation

dylanhand
Copy link
Contributor

@dylanhand dylanhand commented Nov 25, 2024

Further fixes/enhancements for divvun/divvun-dev-keyboard#4

Done:

  • Adds globe button so user can change to different keyboard
  • Adds button that pre-fills an email in Mail.app with a request for the current keyboard on the current device type
  • Adds button that pre-fills GitHub issue on the repo in question to add support for the current device type
  • Fixes a crash that occurred when switching between dark/light mode while showing the keyboardNotSupportedView
  • Localizes keyboard not supported message

Todo:

  • Dynamically get email address to be used for requests from the languages .kbdgen file
  • Test that keyboard locales are working correctly -- the keyboard definition used for testing is either wonky or this will need to change
  • Refactor how we retain info about the current keyboard when it's not supported and didn't load (see detailed commit message for a9361d6)

Still don't love it but it's much fewer code changes and should be safe enough
…esn't support it

In order to show the user info about *which* keyboard is not supported, and in the future allow them to request it, we need to know what keyboard we're talking about. Using a failable initializer was safer than this, but kept us from knowing anything about the keyboard definition in question. Will probably refactor to make `layoutForCurrentDevice` an optional property of `KeyboardDefinition` so this is safer and more clear.
We can't have nice things from an App Extension. This workaround lets us open URLs despite not having access to UIApplication.shared.
@dylanhand dylanhand self-assigned this Nov 25, 2024
@dylanhand dylanhand force-pushed the enhance-missing-layout-message branch from d4c187b to a1abf90 Compare November 25, 2024 21:19
@dylanhand dylanhand marked this pull request as ready for review November 25, 2024 21:21
@dylanhand dylanhand merged commit cb50323 into main Nov 25, 2024
@dylanhand
Copy link
Contributor Author

See above for things left to do. Merging now to test with divvun-dev-keyboard.

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.

1 participant