Skip to content

OPS: Update to Nav 6#5404

Merged
Overtorment merged 48 commits intomasterfrom
nav6
Nov 11, 2023
Merged

OPS: Update to Nav 6#5404
Overtorment merged 48 commits intomasterfrom
nav6

Conversation

@marcosrdz
Copy link
Copy Markdown
Member

No description provided.

@marcosrdz marcosrdz requested a review from Overtorment March 26, 2023 16:24
@marcosrdz marcosrdz self-assigned this Mar 26, 2023
@marcosrdz marcosrdz changed the title Nav6 OPS: Update to Nav 6 Mar 26, 2023
@marcosrdz marcosrdz removed the request for review from Overtorment March 26, 2023 16:24
@socket-security
Copy link
Copy Markdown

socket-security bot commented Mar 26, 2023

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

@Overtorment
Copy link
Copy Markdown
Member

some tests failed

@marcosrdz
Copy link
Copy Markdown
Member Author

@limpbrains @Overtorment i ts-ignored useNavigation in a commit so it passes CI. Either of you know what changes are needed to avoid using ts-ignore?

@limpbrains
Copy link
Copy Markdown
Collaborator

@marcosrdz I believe there is not easy fix. You need to type whole Navigation. I tried to type one screen, but failed :)
This is definetly should be a separate task to do.

@Overtorment
Copy link
Copy Markdown
Member

e2e still fails?

@Overtorment
Copy link
Copy Markdown
Member

@marcosrdz ^^^

@socket-security
Copy link
Copy Markdown

socket-security bot commented Aug 28, 2023

@limpbrains
Copy link
Copy Markdown
Collaborator

Can't run detox locally on this branch.
Getting

    The app has crashed, see the details below:

    @Thread detox.primary(146):
    java.lang.RuntimeException: java.util.concurrent.ExecutionException: androidx.test.espresso.IdlingResourceTimeoutException: Wait for [com.wix.detox.reactnative.idlingresources.NetworkIdlingResource] to become idle timed out
    	at androidx.test.espresso.Espresso.onIdle(Espresso.java:15)
    	at com.wix.detox.TestEngineFacade.awaitIdle(TestEngineFacade.kt:12)
    	at com.wix.detox.adapters.server.ReadyActionHandler.handle(DetoxActionHandlers.kt:25)
    	at com.wix.detox.adapters.server.ActionsExecutor.executeAction$lambda-2$lambda-1(DetoxActionsDispatcher.kt:64)
    	at com.wix.detox.adapters.server.ActionsExecutor.$r8$lambda$nk3cF8ntnfFqbJOcVqd04vjb5nY(Unknown Source:0)
    	at com.wix.detox.adapters.server.ActionsExecutor$$ExternalSyntheticLambda0.run(Unknown Source:8)
    	at android.os.Handler.handleCallback(Handler.java:942)
    	at android.os.Handler.dispatchMessage(Handler.java:99)
    	at android.os.Looper.loopOnce(Looper.java:201)
    	at android.os.Looper.loop(Looper.java:288)
    	at com.wix.detox.adapters.server.ActionsExecutor._init_$lambda-0(DetoxActionsDispatcher.kt:50)
    	at com.wix.detox.adapters.server.ActionsExecutor.$r8$lambda$Hi5vyewqQiQqk57AkJy_cHqNGKY(Unknown Source:0)
    	at com.wix.detox.adapters.server.ActionsExecutor$$ExternalSyntheticLambda1.run(Unknown Source:4)
    	at java.lang.Thread.run(Thread.java:1012)
    Caused by: java.util.concurrent.ExecutionException: androidx.test.espresso.IdlingResourceTimeoutException: Wait for [com.wix.detox.reactnative.idlingresources.NetworkIdlingResource] to become idle timed out
    	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    	at java.util.concurrent.FutureTask.get(FutureTask.java:191)
    	at androidx.test.espresso.Espresso.onIdle(Espresso.java:10

Strange
Maybe RN 72 will help

@marcosrdz
Copy link
Copy Markdown
Member Author

@limpbrains some screens were coded "incorrectly" and need to have their params modified to add "merge: true"

@limpbrains
Copy link
Copy Markdown
Collaborator

Do you mean that every screen should be written assuming that route.params could be undefined?
I kinda don't like it

package.json Outdated
"react-native-haptic-feedback": "2.2.0",
"react-native-idle-timer": "https://github.com/BlueWallet/react-native-idle-timer#8587876d68ab5920e79619726aeca9e672beaf2b",
"react-native-image-picker": "4.8.5",
"react-native-image-picker": "5.2.0",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Older version wouldn't compile with any sdk past 32

@@ -0,0 +1,11 @@
--- ../node_modules/react-native-camera-kit/android/src/main/java/com/rncamerakit/CKCamera.kt
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't think patch is needed with latest version of camera kit

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Its needed for v13. V14 is still beta

const handleBackButton = useCallback(() => {
// @ts-ignore: Ignore
navigation.dangerouslyGetParent()?.pop();
navigation.getParent()?.pop();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

? Might not be needed

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Nav 6 deprecated the "dangerously" part

kotlin_version = '1.9.20'
kotlinVersion = '1.8.0'

kotlin_version = '1.7.21'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why are decreasing kotlin version?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

My bad. That was during the trial and error process

@marcosrdz marcosrdz requested a review from limpbrains November 10, 2023 10:57
@GladosBlueWallet
Copy link
Copy Markdown
Collaborator

♫ This was a triumph. I'm making a note here: HUGE SUCCESS ♫

[android in browser] https://appetize.io/app/wq3kgjgt7st4jqqp4zna4w5fne?device=pixel4

download apk

@GladosBlueWallet
Copy link
Copy Markdown
Collaborator

Wake the fuck up samurai, we have PRs to merge

image

[all PRs for @Overtorment] https://github.com/BlueWallet/BlueWallet/pulls/review-requested/Overtorment

@Overtorment Overtorment merged commit 42966ea into master Nov 11, 2023
@Overtorment Overtorment deleted the nav6 branch November 11, 2023 11:33
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.

4 participants