-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Mobile: Upgrade to React Native 0.79 #12337
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
Draft
personalizedrefrigerator
wants to merge
13
commits into
laurent22:dev
Choose a base branch
from
personalizedrefrigerator:pr/mobile/rn-0.79-try-2
base: dev
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.
Draft
Changes from 9 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
b807614
Mobile: WIP upgrade to React Native 0.79
personalizedrefrigerator 0ea19cd
iOS: Fix notifications
personalizedrefrigerator c5a7b4c
WIP: Android RN upgrade
personalizedrefrigerator ebb82f7
Fix most tests
personalizedrefrigerator f2514a9
Fix ShareManager test
personalizedrefrigerator eeefd37
Fixing more tests
personalizedrefrigerator 42116d4
Fix Note screen tests
personalizedrefrigerator fe6d22d
Lock file
personalizedrefrigerator 914cb7f
Update gradle files
personalizedrefrigerator 10ebfe4
Merge remote-tracking branch 'upstream/dev' into pr/mobile/rn-0.79-try-2
personalizedrefrigerator 51ceb1f
Fix revision viewer tests
personalizedrefrigerator 2c40462
Fix revision viewer tests
personalizedrefrigerator 1f4d05a
Only load the camera after permission has been granted
personalizedrefrigerator 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
2 changes: 1 addition & 1 deletion
2
packages/app-mobile/android/gradle/wrapper/gradle-wrapper.properties
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 |
---|---|---|
@@ -1,10 +1,42 @@ | ||
pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") } | ||
plugins { id("com.facebook.react.settings") } | ||
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() } | ||
pluginManagement { | ||
def reactNativeGradlePlugin = new File( | ||
providers.exec { | ||
workingDir(rootDir) | ||
commandLine("node", "--print", "require.resolve('@react-native/gradle-plugin/package.json', { paths: [require.resolve('react-native/package.json')] })") | ||
}.standardOutput.asText.get().trim() | ||
).getParentFile().absolutePath | ||
includeBuild(reactNativeGradlePlugin) | ||
|
||
def expoPluginsPath = new File( | ||
providers.exec { | ||
workingDir(rootDir) | ||
commandLine("node", "--print", "require.resolve('expo-modules-autolinking/package.json', { paths: [require.resolve('expo/package.json')] })") | ||
}.standardOutput.asText.get().trim(), | ||
"../android/expo-gradle-plugin" | ||
).absolutePath | ||
includeBuild(expoPluginsPath) | ||
} | ||
|
||
plugins { | ||
id("com.facebook.react.settings") | ||
id("expo-autolinking-settings") | ||
} | ||
|
||
extensions.configure(com.facebook.react.ReactSettingsExtension) { ex -> | ||
if (System.getenv('EXPO_USE_COMMUNITY_AUTOLINKING') == '1') { | ||
ex.autolinkLibrariesFromCommand() | ||
} else { | ||
ex.autolinkLibrariesFromCommand(expoAutolinking.rnConfigCommand) | ||
} | ||
} | ||
expoAutolinking.useExpoModules() | ||
|
||
rootProject.name = 'Joplin' | ||
|
||
expoAutolinking.useExpoVersionCatalog() | ||
|
||
include ':react-native-vector-icons' | ||
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android') | ||
|
||
include ':app' | ||
includeBuild('../node_modules/@react-native/gradle-plugin') | ||
apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle") | ||
useExpoModules() | ||
includeBuild(expoAutolinking.reactNativeGradlePlugin) |
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
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
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ import * as React from 'react'; | |
import { mockMobilePlatform, setupDatabaseAndSynchronizer, switchClient } from '@joplin/lib/testing/test-utils'; | ||
|
||
import { render, screen, userEvent, waitFor } from '@testing-library/react-native'; | ||
import '@testing-library/react-native/extend-expect'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Jest matchers are now extended by default and |
||
|
||
import pluginServiceSetup from './testUtils/pluginServiceSetup'; | ||
import createMockReduxStore from '../../../../utils/testing/createMockReduxStore'; | ||
|
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
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
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.
The new
@testing-library/react-native
version removed *AccessibilityState queries.