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

[expo-print][android] Migrate the expo-print module to the new modules API #21714

Merged
merged 4 commits into from
Mar 20, 2023

Conversation

behenate
Copy link
Member

@behenate behenate commented Mar 14, 2023

Why

Expo-print was written using the old API, the docs were missing description of the differences between Android and iOS in printAsync promise resolving.

How

Converted to new modules API, modified the module to use kotlin Coroutines. Updated the docs to make the differences between Android and iOS clearer. There was also an unnecessary @platform ios label in PrintOptions.uri as this option also works on Android.

Test Plan

Tested the library on a physical printer and print to file on a physical device.

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Mar 14, 2023
behenate and others added 2 commits March 14, 2023 18:25
Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
@behenate behenate marked this pull request as ready for review March 14, 2023 17:32
@behenate behenate changed the title [expo-print][android] Rewritten the expo-print module to the new modules API [expo-print][android] Rewrite the expo-print module to the new modules API Mar 15, 2023
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Mar 17, 2023
@behenate behenate changed the title [expo-print][android] Rewrite the expo-print module to the new modules API [expo-print][android] Migrate the expo-print module to the new modules API Mar 20, 2023
@behenate behenate merged commit 67e2951 into main Mar 20, 2023
@behenate behenate deleted the @behenate-expo-print-migrate-to-new-modules-api branch March 20, 2023 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants