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

@mczernek/app loader migration #8438

Merged
merged 11 commits into from May 28, 2020
Merged

Conversation

mczernek
Copy link
Contributor

Why

If an application is being ejected, and some user updates its previously standalone (managed) application to ejected one, crash is observed when attempting to use AppLoader. Additionally, simple fix to prevent the crash causes helps, but tasks are not being transferred between versions correctly.

How

Root cause of the problem is the fact, that name of explicit AppLoader class implementation is persisted in SharedPreferences. At the same time, it differs between managed and bare workflow.
Current implementation defines names of loader in meta-data. This should cause it to be changed accordingly when migrating from managed to bare workflow.

@mczernek mczernek requested a review from tsapeta May 22, 2020 15:54
@mczernek mczernek requested a review from sjchmiela as a code owner May 22, 2020 15:54
@github-actions
Copy link
Contributor

Native Component List for this branch is ready

Copy link
Contributor

@sjchmiela sjchmiela left a comment

Choose a reason for hiding this comment

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

This is a great change! 👍

@ExpoBot
Copy link

ExpoBot commented May 22, 2020

Fails
🚫

📋 Missing Changelog

🛠 Add missing entires to:

🛠 Suggested fixes:

📋 Missing changelog

Apply suggested changes:

diff --git a/packages/unimodules-app-loader/CHANGELOG.md b/packages/unimodules-app-loader/CHANGELOG.md
index e23a2d85f6..e0e228f655 100644
--- a/packages/unimodules-app-loader/CHANGELOG.md
+++ b/packages/unimodules-app-loader/CHANGELOG.md
@@ -8,4 +8,5 @@
 
 ### 🐛 Bug fixes
 
+- @mczernek/app loader migration. ([#8438](https://github.com/expo/expo/pull/8438) by [@mczernek](https://github.com/mczernek))
 - Fixed `appLoaderRegisteredForName` to not only check if a loader class name is in the cache for the provided name but also verifies that the cached and current class name match. When migrating from managed to bare, the class name cache needs to be updated. ([#8292](https://github.com/expo/expo/pull/8292) by [@thorbenprimke](https://github.com/thorbenprimke))

Generated by 🚫 dangerJS against 4156f32

@github-actions
Copy link
Contributor

github-actions bot commented May 27, 2020

Fails
🚫

📋 Missing Changelog

🛠 Add missing entires to:

🛠 Suggested fixes:

📋 Missing changelog

Apply suggested changes:

diff --git a/packages/unimodules-app-loader/CHANGELOG.md b/packages/unimodules-app-loader/CHANGELOG.md
index 0b0d87d5..754689d2 100644
--- a/packages/unimodules-app-loader/CHANGELOG.md
+++ b/packages/unimodules-app-loader/CHANGELOG.md
@@ -8,6 +8,8 @@
 
 ### 🐛 Bug fixes
 
+- @mczernek/app loader migration ([#8438](https://github.com/expo/expo/pull/8438) by [@mczernek](https://github.com/mczernek))
+
 ## 1.1.0 — 2020-05-27
 
 ### 🐛 Bug fixes

or merge this pull request: #8517

Generated by 🚫 dangerJS against fed2c21

Copy link
Member

@tsapeta tsapeta left a comment

Choose a reason for hiding this comment

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

Sooo many hacks there 😞 But looks like there is no better way right now 😞

Left a few comments, but besides of them

  • All those new files could use Kotlin 😄
  • Would be great if you could add some comments around those repository classes & methods and especially in places where we do these hacks

Copy link
Member

@tsapeta tsapeta left a comment

Choose a reason for hiding this comment

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

Still one comment, but generally looks good now 👍
Could you also update PR's title?

packages/expo-task-manager/CHANGELOG.md Outdated Show resolved Hide resolved
packages/expo-background-fetch/CHANGELOG.md Outdated Show resolved Hide resolved
packages/expo-task-manager/CHANGELOG.md Outdated Show resolved Hide resolved
mczernek and others added 2 commits May 28, 2020 13:57
Co-authored-by: Tomasz Sapeta <1714764+tsapeta@users.noreply.github.com>
@mczernek mczernek merged commit fdd4c59 into master May 28, 2020
@mczernek mczernek deleted the @mczernek/app-loader-migration branch May 28, 2020 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants