-
Notifications
You must be signed in to change notification settings - Fork 46
Update expo and remove expo-updates #445
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
Merged
Merged
Changes from all commits
Commits
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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 6821609e885d4b68f4066751949a9211f4196ab36df9d63f7a5f9037ca64e2d6 android-commandline.zip | ||
| 2d2d50857e4eb553af5a6dc3ad507a17adf43d115264b1afc116f95c92e5e258 android-commandline.zip |
This file contains hidden or 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 hidden or 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 hidden or 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
Binary file not shown.
This file contains hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,7 @@ build/ | |
| local.properties | ||
| *.iml | ||
| *.hprof | ||
| .cxx/ | ||
|
|
||
| # Bundle artifacts | ||
| *.jsbundle | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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
43 changes: 28 additions & 15 deletions
43
e2e/android/app/src/main/java/com/e2eoktareactnative/MainApplication.kt
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,44 +1,57 @@ | ||
| package com.e2eoktareactnative | ||
|
|
||
| import android.app.Application | ||
| import android.content.res.Configuration | ||
|
|
||
| import com.facebook.react.PackageList | ||
| import com.facebook.react.ReactApplication | ||
| import com.facebook.react.ReactNativeHost | ||
| import com.facebook.react.ReactPackage | ||
| import com.facebook.react.ReactHost | ||
| import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load | ||
| import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost | ||
| import com.facebook.react.defaults.DefaultReactNativeHost | ||
| import com.facebook.react.soloader.OpenSourceMergedSoMapping | ||
| import com.facebook.soloader.SoLoader | ||
|
|
||
| import expo.modules.ApplicationLifecycleDispatcher | ||
| import expo.modules.ReactNativeHostWrapper | ||
|
|
||
| class MainApplication : Application(), ReactApplication { | ||
| override val reactNativeHost: ReactNativeHost = | ||
| object : DefaultReactNativeHost(this) { | ||
| override fun getPackages(): List<ReactPackage> = | ||
| PackageList(this).packages.apply { | ||
| // Packages that cannot be autolinked yet can be added manually here, for example: | ||
| // add(MyReactNativePackage()) | ||
| } | ||
|
|
||
| override fun getJSMainModuleName(): String = "index" | ||
| override val reactNativeHost: ReactNativeHost = ReactNativeHostWrapper( | ||
| this, | ||
| object : DefaultReactNativeHost(this) { | ||
| override fun getPackages(): List<ReactPackage> { | ||
| val packages = PackageList(this).packages | ||
| // Packages that cannot be autolinked yet can be added manually here, for example: | ||
| // packages.add(new MyReactNativePackage()); | ||
| return packages | ||
| } | ||
|
|
||
| override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG | ||
| override fun getJSMainModuleName(): String = ".expo/.virtual-metro-entry" | ||
|
|
||
| override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED | ||
| override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED | ||
| } | ||
| override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG | ||
|
|
||
| override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED | ||
| override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED | ||
| } | ||
| ) | ||
|
|
||
| override val reactHost: ReactHost | ||
| get() = getDefaultReactHost(applicationContext, reactNativeHost) | ||
| get() = ReactNativeHostWrapper.createReactHost(applicationContext, reactNativeHost) | ||
|
|
||
| override fun onCreate() { | ||
| super.onCreate() | ||
| SoLoader.init(this, false) | ||
| SoLoader.init(this, OpenSourceMergedSoMapping) | ||
| if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { | ||
| // If you opted-in for the New Architecture, we load the native entry point for this app. | ||
| load() | ||
| } | ||
| ApplicationLifecycleDispatcher.onApplicationCreate(this) | ||
| } | ||
|
|
||
| override fun onConfigurationChanged(newConfig: Configuration) { | ||
| super.onConfigurationChanged(newConfig) | ||
| ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig) | ||
| } | ||
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.22 KB
e2e/android/app/src/main/res/drawable-night-hdpi/splashscreen_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.48 KB
e2e/android/app/src/main/res/drawable-night-mdpi/splashscreen_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.56 KB
e2e/android/app/src/main/res/drawable-night-xhdpi/splashscreen_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.1 KB
e2e/android/app/src/main/res/drawable-night-xxhdpi/splashscreen_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.8 KB
e2e/android/app/src/main/res/drawable-night-xxxhdpi/splashscreen_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
Uh oh!
There was an error while loading. Please reload this page.