Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{
"groupName": "Metro",
"allowedVersions": "^0.84.0",
"matchSourceUrls": ["https://github.com/facebook/metro{/,}**"]
"matchSourceUrls": ["https://github.com/react/metro{/,}**"]
},
{
"groupName": "TypeScript type definitions",
Expand Down
4 changes: 2 additions & 2 deletions packages/app/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ react {
// We don't want the React plugin to bundle.
tasks.whenTaskAdded { task ->
// The task name can be found in `react-native-gradle-plugin`:
// https://github.com/facebook/react-native/blob/0.71-stable/packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt#L54
// https://github.com/react/react-native/blob/0.71-stable/packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt#L54
if (task.name.startsWith("createBundle") && task.name.endsWith("JsAndAssets")) {
task.enabled = false
}
Expand Down Expand Up @@ -222,7 +222,7 @@ dependencies {
implementation(libraries.mlKitBarcodeScanning)
}

// https://github.com/facebook/react-native/blob/b0c0bb45911434ea654ba7e2feff4686061eba7a/packages/react-native-gradle-plugin/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt#L162
// https://github.com/react/react-native/blob/b0c0bb45911434ea654ba7e2feff4686061eba7a/packages/react-native-gradle-plugin/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt#L162
autolinkingInfo(buildDir).each { path, info ->
info.configurations.each { configuration ->
add(configuration, project(path))
Expand Down
2 changes: 1 addition & 1 deletion packages/app/android/app/src/main/jni/OnLoad.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// https://github.com/facebook/react-native/blob/main/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp
// https://github.com/react/react-native/blob/main/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp
#if __has_include(<DefaultTurboModuleManagerDelegate.h>)

#include <DefaultComponentsRegistry.h>
Expand Down
2 changes: 1 addition & 1 deletion packages/app/android/autolink.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { mkdir_p, writeJSONFile } from "../scripts/utils/filesystem.mjs";
*/

/**
* @see {@link https://github.com/facebook/react-native/blob/924fb3de9bc9328c3315316fbb796b933be5bcbe/packages/react-native-gradle-plugin/shared/src/main/kotlin/com/facebook/react/model/ModelAutolinkingDependenciesJson.kt#L17}
* @see {@link https://github.com/react/react-native/blob/924fb3de9bc9328c3315316fbb796b933be5bcbe/packages/react-native-gradle-plugin/shared/src/main/kotlin/com/facebook/react/model/ModelAutolinkingDependenciesJson.kt#L17}
* @param {string} name
* @returns {string}
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/app/android/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ ext {
if (rootProject.hasProperty("ANDROID_NDK_VERSION")) {
ndkVersion = rootProject.properties["ANDROID_NDK_VERSION"]
} else {
// https://github.com/facebook/react-native/commit/9ce7b564131c5b2075489c09ff05325ddc28014a
// https://github.com/react/react-native/commit/9ce7b564131c5b2075489c09ff05325ddc28014a
ndkVersion = getDependencyVersionFromCatalog(versionCatalog, "ndkVersion", "26.1.10909125")
}

Expand Down
2 changes: 1 addition & 1 deletion packages/app/android/media-types.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ext.rnta_media_types_gradle = true

ext.isFontFile = { File file ->
// https://github.com/facebook/react-native/blob/3dfedbc1aec18a4255e126fde96d5dc7b1271ea7/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/assets/ReactFontManager.java#L28
// https://github.com/react/react-native/blob/3dfedbc1aec18a4255e126fde96d5dc7b1271ea7/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/assets/ReactFontManager.java#L28
return [".otf", ".ttf"].any { file.name.endsWith(it) }
}

Expand Down
2 changes: 1 addition & 1 deletion packages/app/example/src/RemoteDebugging.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function RemoteDebugging(): React.ReactElement | null {
}

// Remote debugging was removed in 0.79:
// https://github.com/facebook/react-native/commit/9aae84a688b5af87faf4b68676b6357de26f797f
// https://github.com/react/react-native/commit/9aae84a688b5af87faf4b68676b6357de26f797f
try {
const {
isAsyncDebugging,
Expand Down
6 changes: 3 additions & 3 deletions packages/app/example/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type ReactNativeVersion = {
};

export const ReactNativeVersion: ReactNativeVersion = (() => {
// https://github.com/facebook/react-native/commit/ec5638abd0e872be62b6ea5d8df9bed6335c2191
// https://github.com/react/react-native/commit/ec5638abd0e872be62b6ea5d8df9bed6335c2191
const { ReactNativeVersion } = require("react-native");
const { major, minor, patch, prerelease } =
ReactNativeVersion ??
Expand Down Expand Up @@ -57,9 +57,9 @@ export function isFabricInstance<T>(
ref: NativeSyntheticEvent<T>["currentTarget"]
): boolean {
return Boolean(
// @ts-expect-error — https://github.com/facebook/react-native/blob/0.76-stable/packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstanceUtils.js
// @ts-expect-error — https://github.com/react/react-native/blob/0.76-stable/packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstanceUtils.js
ref["__nativeTag"] ||
// @ts-expect-error — https://github.com/facebook/react-native/blob/0.76-stable/packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstanceUtils.js
// @ts-expect-error — https://github.com/react/react-native/blob/0.76-stable/packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstanceUtils.js
ref["_internalInstanceHandle"]?.stateNode?.canonical
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/app/example/src/styles.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useMemo } from "react";
import { StyleSheet, useColorScheme } from "react-native";

// https://github.com/facebook/react-native/blob/0.82-stable/packages/new-app-screen/src/Theme.js#L16-L33
// https://github.com/react/react-native/blob/0.82-stable/packages/new-app-screen/src/Theme.js#L16-L33
const COLORS = {
light: {
background: "#f3f3f3",
Expand Down
2 changes: 1 addition & 1 deletion packages/app/ios/ReactTestApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# https://github.com/facebook/react-native/blob/0.74-stable/packages/react-native/scripts/react-native-xcode.sh#L13-L28\nif [[ ! \"$SKIP_BUNDLING_METRO_IP\" && \"$CONFIGURATION\" = *Debug* && ! \"$PLATFORM_NAME\" == *simulator ]]; then\n for num in 0 1 2 3 4 5 6 7 8; do\n IP=$(ipconfig getifaddr en${num} || echo \"\")\n if [ ! -z \"$IP\" ]; then\n break\n fi\n done\n if [ -z \"$IP\" ]; then\n IP=$(ifconfig | grep 'inet ' | grep -v ' 127.' | grep -v ' 169.254.' |cut -d\\ -f2 | awk 'NR==1{print $1}')\n fi\n echo \"$IP\" > \"$CONFIGURATION_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH/ip.txt\"\nfi\n";
shellScript = "# https://github.com/react/react-native/blob/0.74-stable/packages/react-native/scripts/react-native-xcode.sh#L13-L28\nif [[ ! \"$SKIP_BUNDLING_METRO_IP\" && \"$CONFIGURATION\" = *Debug* && ! \"$PLATFORM_NAME\" == *simulator ]]; then\n for num in 0 1 2 3 4 5 6 7 8; do\n IP=$(ipconfig getifaddr en${num} || echo \"\")\n if [ ! -z \"$IP\" ]; then\n break\n fi\n done\n if [ -z \"$IP\" ]; then\n IP=$(ifconfig | grep 'inet ' | grep -v ' 127.' | grep -v ' 169.254.' |cut -d\\ -f2 | awk 'NR==1{print $1}')\n fi\n echo \"$IP\" > \"$CONFIGURATION_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH/ip.txt\"\nfi\n";
};
1936CB1C2768EC280085FD98 /* Embed Manifest */ = {
isa = PBXShellScriptBuildPhase;
Expand Down
2 changes: 1 addition & 1 deletion packages/app/ios/ReactTestApp/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ final class ContentViewController: UITableViewController {

let bundleRoot = manifest.bundleRoot
// As of 0.74, we can no longer instantiate on a background thread:
// https://github.com/facebook/react-native/commit/b7025fe1569349d90d26821b2b8de64a8ec9f352
// https://github.com/react/react-native/commit/b7025fe1569349d90d26821b2b8de64a8ec9f352
DispatchQueue.main.async { [weak self] in
self?.reactInstance.initReact(bundleRoot: bundleRoot) {
if !components.isEmpty,
Expand Down
2 changes: 1 addition & 1 deletion packages/app/ios/ReactTestApp/React+Compatibility.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ IMP RTASwizzleSelector(Class class, SEL originalSelector, SEL swizzledSelector)
}

// MARK: - [0.79.0] `isDebuggingRemotely` was removed
// See https://github.com/facebook/react-native/commit/9aae84a688b5af87faf4b68676b6357de26f797f
// See https://github.com/react/react-native/commit/9aae84a688b5af87faf4b68676b6357de26f797f

void RTADisableRemoteDebugging()
{
Expand Down
2 changes: 1 addition & 1 deletion packages/app/ios/ReactTestApp/ReactTestApp-DevSupport.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
NSNotificationName const ReactTestAppSceneDidOpenURLNotification =
ReactAppSceneDidOpenURLNotification;

// https://github.com/facebook/react-native/blob/v0.73.4/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm#L448
// https://github.com/react/react-native/blob/v0.73.4/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm#L448
NSNotificationName const ReactInstanceDidLoadBundle = @"RCTInstanceDidLoadBundle";
2 changes: 1 addition & 1 deletion packages/app/macos/ReactTestApp/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ extension AppDelegate {

let bundleRoot = manifest.bundleRoot
// As of 0.74, we can no longer instantiate on a background thread:
// https://github.com/facebook/react-native/commit/b7025fe1569349d90d26821b2b8de64a8ec9f352
// https://github.com/react/react-native/commit/b7025fe1569349d90d26821b2b8de64a8ec9f352
DispatchQueue.main.async { [weak self] in
self?.reactInstance.initReact(bundleRoot: bundleRoot) {
DispatchQueue.main.async { [weak self] in
Expand Down
2 changes: 1 addition & 1 deletion packages/app/scripts/configure.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export function validatePlatforms(input) {
}

// Autolinking currently assumes that `ios` is always present:
// https://github.com/facebook/react-native/blob/0.76-stable/packages/react-native/scripts/cocoapods/autolinking.rb#L41
// https://github.com/react/react-native/blob/0.76-stable/packages/react-native/scripts/cocoapods/autolinking.rb#L41
// We need to include iOS if we want to target other Apple platforms.
if (includesApplePlatforms && !includesIOS) {
platforms.push("ios");
Expand Down
4 changes: 2 additions & 2 deletions packages/app/test-app.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ext.applyTestAppSettings = { DefaultSettings settings ->
settings.includeBuild(reactNativeGradlePlugin)
}

// https://github.com/facebook/react-native/blob/b0c0bb45911434ea654ba7e2feff4686061eba7a/packages/react-native-gradle-plugin/settings-plugin/src/main/kotlin/com/facebook/react/ReactSettingsExtension.kt#L39
// https://github.com/react/react-native/blob/b0c0bb45911434ea654ba7e2feff4686061eba7a/packages/react-native-gradle-plugin/settings-plugin/src/main/kotlin/com/facebook/react/ReactSettingsExtension.kt#L39
def output = file("${rootDir}/app/build/generated/rnta/autolinking.json")
def projectRoot = file(findFile("package.json").getParent())
def dependencies = autolinkModules(projectRoot, output, testAppDir)
Expand Down Expand Up @@ -117,7 +117,7 @@ ext.applyTestAppModule = { Project project ->
def generatedSrcDir = file("${generatedMainDir}/java")
generatedSrcDir.mkdirs()

// https://github.com/facebook/react-native/blob/3dfedbc1aec18a4255e126fde96d5dc7b1271ea7/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/assets/ReactFontManager.java#L25
// https://github.com/react/react-native/blob/3dfedbc1aec18a4255e126fde96d5dc7b1271ea7/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/assets/ReactFontManager.java#L25
def generatedFontsDir = file("${generatedAssetsDir}/fonts")
generatedFontsDir.mkdirs()

Expand Down
Loading