-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
android(feat):new arch support #4675
Open
gosha212
wants to merge
33
commits into
master
Choose a base branch
from
feat/4175-new-arch
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+702
−354
Open
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
0a0328f
Enabled fabric WIP
gosha212 9b4d3c6
Create isFabric implementation
gosha212 bc925ac
Fixed react native reloader to work with new arch.
gosha212 e86edb9
WIP
gosha212 8f379a9
Implemented fabric idling resources
gosha212 01aa325
Updated proguard to support fabric
gosha212 1fa2bbd
Fixed build for RN 75
gosha212 93ea9d7
Fixed tests
gosha212 47d36d4
Fixed tests
gosha212 3aa86fd
Fixed storage idling resources
gosha212 158f416
Fixed timer idling resources build on rn 75 and 74
gosha212 b0680d0
Fixed release builds for all rn versions
gosha212 1929161
Fixed timers idling resources reflection
gosha212 e83a829
Fixed timers idling resources reflection
gosha212 9694324
Fixed reflection in timers idling resources
gosha212 1f3f97a
Fixed timers idling resources reflection
gosha212 af2a963
Fixed timers idling resources reflection
gosha212 ac8a266
Fixed timers idling resources reflection
gosha212 d9e4ca0
Fixed timers idling resources reflection
gosha212 4f3564a
Fixed screenshot tests
gosha212 e58225f
Fixed tests
gosha212 41024a8
Fixed demo app to work with fabric
gosha212 c84e835
Fixed demo app to work with fabric
gosha212 85265eb
Fixed proguard to support release builds
gosha212 d3943bd
Updated gradle wrapper version
gosha212 178bec8
Changed pipeline names
gosha212 3de2795
Changed pipeline names
gosha212 36ccf80
Fixed scripts to support rn 73
gosha212 10a2877
Minor refacotring
gosha212 c7138bb
Run rn 73 with old arch only
gosha212 fef978d
Fixed React Native Loading Monitoring
gosha212 b21d9d1
Fixed idling resources raise condition
gosha212 3559343
Merge branch 'master' into feat/4175-new-arch
gosha212 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 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 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 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 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 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 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 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
29 changes: 29 additions & 0 deletions
29
detox/android/detox/src/full/java/com/wix/detox/reactnative/ReactApplicationExt.kt
This file contains 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.wix.detox.reactnative | ||
|
||
import android.annotation.SuppressLint | ||
import com.facebook.react.ReactApplication | ||
import com.facebook.react.ReactInstanceManager | ||
import com.facebook.react.bridge.ReactContext | ||
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint | ||
|
||
|
||
fun ReactApplication.getInstanceManagerSafe(): ReactInstanceManager { | ||
return reactNativeHost.reactInstanceManager | ||
?: throw RuntimeException("ReactInstanceManager is null!") | ||
} | ||
|
||
@SuppressLint("VisibleForTests") | ||
fun ReactApplication.getCurrentReactContextSafe(): ReactContext? { | ||
return if (isFabricEnabled()) { | ||
reactHost?.currentReactContext | ||
} else { | ||
getInstanceManagerSafe().currentReactContext | ||
} | ||
} | ||
|
||
/** | ||
* A method to check if Fabric is enabled in the React Native application. | ||
*/ | ||
fun isFabricEnabled(): Boolean { | ||
return DefaultNewArchitectureEntryPoint.fabricEnabled | ||
} |
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not testing both new arch and old arch on .76?
Is that a breaking change?