Skip to content

Commit bb7617d

Browse files
kelsetOlimpiaZurek
authored andcommitted
chore: re-align version to be 1000.0.0 on main everywhere (facebook#34817)
Summary: While working on facebook#34513 I noticed that on main branch the versioning is not really consistent everywhere. So this PR is an attempt at realigning so that on the main branch, RN is 1000.0.0 everywhere - in a way, it's cleaning up the room for the monorepo work to go flawlessly). It's just a pass of `node scripts/set-rn-version.js --to-version 1000.0.0`. There's the small chance that some versions where kept to 0.0.0 on purpose (build tools are weird), so we might just have to close this off. No big deal :) ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [Internal] [Changed] - re-align version to be 1000.0.0 on main everywhere Pull Request resolved: facebook#34817 Test Plan: CI is green and when imported, nothing breaks. Reviewed By: cortinico Differential Revision: D39926953 Pulled By: cortinico fbshipit-source-id: ff66530382f891e17c00b35edf97c03591b6a9a8
1 parent b82007c commit bb7617d

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

Libraries/Core/ReactNativeVersion.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/**
2+
* @generated by scripts/set-rn-version.js
3+
*
24
* Copyright (c) Meta Platforms, Inc. and affiliates.
35
*
46
* This source code is licensed under the MIT license found in the
57
* LICENSE file in the root directory of this source tree.
68
*
7-
* @format
8-
* @generated by scripts/set-rn-version.js
99
* @flow strict
1010
*/
1111

1212
exports.version = {
13-
major: 0,
13+
major: 1000,
1414
minor: 0,
1515
patch: 0,
1616
prerelease: null,

React/Base/RCTVersion.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
static dispatch_once_t onceToken;
2222
dispatch_once(&onceToken, ^(void){
2323
__rnVersion = @{
24-
RCTVersionMajor: @(0),
25-
RCTVersionMinor: @(0),
26-
RCTVersionPatch: @(0),
27-
RCTVersionPrerelease: [NSNull null],
28-
};
24+
RCTVersionMajor: @(1000),
25+
RCTVersionMinor: @(0),
26+
RCTVersionPatch: @(0),
27+
RCTVersionPrerelease: [NSNull null],
28+
};
2929
});
3030
return __rnVersion;
3131
}

ReactAndroid/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION_NAME=1000.0.0-main
1+
VERSION_NAME=1000.0.0
22
GROUP=com.facebook.react
33

44
POM_NAME=ReactNative

ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
public class ReactNativeVersion {
1717
public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
18-
"major", 0,
18+
"major", 1000,
1919
"minor", 0,
2020
"patch", 0,
2121
"prerelease", null);

ReactCommon/cxxreact/ReactNativeVersion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
namespace facebook::react {
1616

1717
constexpr struct {
18-
int32_t Major = 0;
18+
int32_t Major = 1000;
1919
int32_t Minor = 0;
2020
int32_t Patch = 0;
2121
std::string_view Prerelease = "";

0 commit comments

Comments
 (0)