Skip to content

[0.64] Pull in upstream fixes to expose hover props on Pressable #884 #922

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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
2313d45
chore: ignore broken Hermes job
grabbou Nov 4, 2020
06fedcd
Upgrade metro to 0.64.0
Nov 6, 2020
fb2991e
Build rn-codegen in a temporary directory (#30292)
janicduplessis Nov 12, 2020
0f5fb5e
Android OSS: fixed unbound variable error for codegen build script
fkgozali Nov 12, 2020
68110d4
Use codegen from source in default iOS template apps
fkgozali Nov 13, 2020
9f49f8a
Fix :ReactAndroid:androidJavadoc task (#30417)
NickGerleman Nov 18, 2020
e79ecb5
fix android npm (#30452)
dulmandakh Nov 21, 2020
727d755
fix: pin hermes-engine to 0.7.x
grabbou Nov 19, 2020
65003d7
Use [email protected] in new app template
hramos Nov 21, 2020
f7d0b83
chore: updated url of deprecated modules (#30422)
Naturalclar Nov 20, 2020
017dc45
Add possibility to disable buttons in action sheet ios (#28979)
lukewalczak Nov 19, 2020
0117077
[0.64.0-rc.0] Bump version numbers
grabbou Nov 23, 2020
9f0f8a5
chore: revert changes to test-manual-e2e.sh
grabbou Nov 24, 2020
e2be26a
fix: android artifacts in publish-npm.js
grabbou Nov 25, 2020
cda29d2
chore: Bump CLI to ^5.0.1-alpha.0 (#30420)
thymikee Nov 19, 2020
d197e95
[0.64.0-rc.1] Bump version numbers
grabbou Nov 25, 2020
a99676e
Fix cannot working Modal's onDismiss. (#29882)
kkoudev Nov 14, 2020
d8a0a9b
Integrate Native Module codegen into Xcode build pipeline (#30449)
hramos Dec 2, 2020
d823aef
Fix Circle CI iOS Tests: Make FBReactNativeSpec dir as needed
hramos Dec 3, 2020
15f2413
Fix path to react-native-codegen
hramos Dec 3, 2020
fffa4d1
Update template devDependencies (#30489)
Bardiamist Dec 8, 2020
eb85d1d
Add instructions to template/ios/Podfile for enabling hermes (#30461)
SConaway Dec 4, 2020
52129b2
Bump Hermes to 0.7.2
Huxpro Dec 10, 2020
2ba3ef5
fix: default template on iOS (#30571)
grabbou Dec 15, 2020
5c09b3f
fix: building in release mode for simulator (#30543)
grabbou Dec 14, 2020
ed237b4
Exclude `i386` from valid architectures when building with Hermes on …
grabbou Dec 15, 2020
4481d09
Fix infinite loop in KeyboardAvoidingView
sammy-SC Dec 15, 2020
1eb7d4a
[0.64.0-rc.2] Bump version numbers
grabbou Dec 18, 2020
70ba9ac
Expose the testID to black-box testing frameworks on Android (#29610)
jdeff Jan 6, 2021
052447c
Remove dependency on Folly in TurboModuleUtils.h (#30672)
vmoroz Jan 4, 2021
7ec38b9
Avoid eating clicks/taps into ScrollView when using physical keyboard…
NickGerleman Nov 19, 2020
224c85a
Update iOS Fabric-related files to compile on OSS (#29810)
empyrical Dec 22, 2020
0636c45
Use Fabric builds in iOS tests (#30639)
hramos Dec 24, 2020
e5888de
Add use_react_native_codegen!
hramos Dec 30, 2020
937ced3
Optionally override codegen script defaults via envvars
hramos Jan 4, 2021
5ada078
Make codegen more reliable on iOS (#30792)
janicduplessis Feb 1, 2021
7004cac
Invoke `node` directly in generate-specs.sh (#30781)
ivanmoskalev Feb 2, 2021
c023a40
chore: bump codegen script
grabbou Feb 5, 2021
e846740
[0.64.0-rc.3] Bump version numbers
grabbou Feb 5, 2021
7159bcb
Update flipper in RNTester and template (#31010)
janicduplessis Feb 24, 2021
4b68734
Generalize node search logic
grabbou Mar 1, 2021
14db556
fix: React Native CodeGen integration for 0.64-stable (#31027)
grabbou Mar 1, 2021
e7e4b00
fix: disable fabric
grabbou Mar 1, 2021
48a97d7
chore: fix conflict in Podfile.lock
grabbou Mar 1, 2021
1aa4f47
[0.64.0-rc.4] Bump version numbers
grabbou Mar 1, 2021
7f3f80f
Fix RefreshControl layout when removed from window (#31024)
janicduplessis Feb 23, 2021
138fdbc
fix: restore refresh control fix
grabbou Mar 11, 2021
8a6ac1f
chore: Update React.podspec to require cocoapods >= 1.10.1
grabbou Mar 11, 2021
728d55a
Fixing the git attrs for all the people and all the files and all fut…
grabbou Mar 11, 2021
ace025d
[0.64.0] Bump version numbers
grabbou Mar 12, 2021
3912fef
Update validateBaseUrl to use latest regex
FBNeal Apr 29, 2021
76f45d3
[local] update RNTester files for 0.64
kelset Apr 30, 2021
1c4ac48
[local] yarn lock update (?)
kelset Apr 30, 2021
cf8a364
[local] change post-install to patch RTC-Folly
kelset Apr 30, 2021
787567a
[0.64.1] Bump version numbers
kelset May 5, 2021
cda77c7
`Android`: font-family is not apply when secureTextEntry is true (#30…
hank121314 Nov 6, 2020
a6a4d33
Update the cached dimensions when orientation changes (#30324)
ajpaulingalls Nov 11, 2020
a05d179
Add a fatal error handler for Hermes
Jan 11, 2021
d894163
Refactor UIManagerHelper.getUIManager to return null when there's no …
mdvacca May 6, 2021
eaed48f
Fix ScrollViewStickyHeader to push up header above it
kacieb Mar 25, 2021
09dd3e9
find-node.sh supports Homebrew on M1 (#31622)
dulmandakh Jun 2, 2021
395e8ec
[LOCAL] bump CLI to alpha 1 to fix CLI issue
kelset Jun 3, 2021
f7ce3f0
[LOCAL] auto-generated files
kelset Jun 3, 2021
757bb75
[0.64.2] Bump version numbers
kelset Jun 3, 2021
f517622
Merge from upstream 0.64-stable to v0.64.0 (#863)
amgleitman Oct 26, 2021
0e09744
Applying package update to 0.64.1 ***NO_CI***
rnbot Oct 26, 2021
8779794
Merge commit '757bb75fbf837714725d7b2af62149e8e2a7ee51' into amgleitm…
amgleitman Oct 26, 2021
1dc7d83
[0.64] Fix publish builds by removing workspace from package.json bef…
acoates-ms Oct 28, 2021
21e43cf
publish fix
acoates-ms Oct 28, 2021
e101d80
Build fix
acoates-ms Oct 29, 2021
c316e36
Applying package update to 0.64.2 ***NO_CI***
rnbot Oct 29, 2021
343961b
Another attempt at a build fix
acoates-ms Oct 29, 2021
277d52b
publish fix
acoates-ms Oct 29, 2021
4cc0c77
Another attempt
acoates-ms Oct 29, 2021
c88c118
push env to bump-oss-version
acoates-ms Oct 29, 2021
08191ad
fix typo
acoates-ms Oct 29, 2021
240ee43
use ubuntu for publish
acoates-ms Oct 29, 2021
bb78347
use mac image
acoates-ms Oct 29, 2021
1dd8d79
pod update
acoates-ms Oct 29, 2021
38d823c
Applying package update to 0.64.3 ***NO_CI***
rnbot Oct 29, 2021
f132f70
Merge branch '0.64-stable' into amgleitman/0.64-merge-0.64.2
acoates-ms Oct 29, 2021
4afed1c
Dont use branch name to bump package version in CI
acoates-ms Nov 1, 2021
f2d5241
Merge pull request #868 from amgleitman/amgleitman/0.64-merge-0.64.2
acoates-ms Nov 1, 2021
d0015fa
Applying package update to 0.64.4 ***NO_CI***
rnbot Nov 1, 2021
05210d0
Applying package update to 0.64.5 ***NO_CI***
rnbot Nov 1, 2021
3bf2fda
[0.64] Fix nonnull compat issue (#881)
HeyImChris Nov 4, 2021
d3f3c3d
Applying package update to 0.64.6 ***NO_CI***
rnbot Nov 4, 2021
00ea5d1
Rename directory for ship .so files to be ship instead of release
rasaha91 Nov 4, 2021
28f2b13
Merge pull request #889 from microsoft/rasaha-0.64-stable
acoates-ms Nov 5, 2021
8f318da
Applying package update to 0.64.7 ***NO_CI***
rnbot Nov 5, 2021
763bb08
Attaching RootView to instance in RootView.startReactApplication
mganandraj Nov 6, 2021
31275df
Merge pull request #894 from mganandraj/RootViewAttachFinal
acoates-ms Nov 8, 2021
9ee4a14
Applying package update to 0.64.8 ***NO_CI***
rnbot Nov 8, 2021
8418b8e
Port #896 to 0.64
acoates-ms Nov 9, 2021
c094548
Merge pull request #897 from acoates-ms/notnull64
acoates-ms Nov 9, 2021
049bf51
Applying package update to 0.64.9 ***NO_CI***
rnbot Nov 9, 2021
1f2c7ed
nullable (#899)
HeyImChris Nov 10, 2021
f9588cd
Applying package update to 0.64.10 ***NO_CI***
rnbot Nov 10, 2021
a76dff9
Remove the redundant reactnativejniutils .so from packaging (#901)
msgharpu Nov 17, 2021
72028c0
Applying package update to 0.64.11 ***NO_CI***
rnbot Nov 17, 2021
acca3c1
Disable dev mode on ship builds (#888) (#903)
HeyImChris Nov 18, 2021
68f067c
Applying package update to 0.64.12 ***NO_CI***
rnbot Nov 18, 2021
ea8ae98
Load Required Libraries in ReactBridge's static init (#910)
msgharpu Nov 23, 2021
7ab2cec
Applying package update to 0.64.13 ***NO_CI***
rnbot Nov 23, 2021
cb5e0e5
ci: add a pipeline for consuming react-native-macos (#909)
tido64 Nov 25, 2021
92c1110
Applying package update to 0.64.14 ***NO_CI***
rnbot Nov 25, 2021
b7752ec
Scene support for alerts (#917)
HeyImChris Dec 2, 2021
a0bbaee
Applying package update to 0.64.15 ***NO_CI***
rnbot Dec 2, 2021
63cb5cd
Expose Pressability Hover config props in Pressable (#32405)
Saadnajmi Oct 26, 2021
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
22 changes: 18 additions & 4 deletions .ado/android-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,24 @@ jobs:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
githubApiToken: $(githubApiToken)

- task: CmdLine@2
displayName: gradlew clean
inputs:
script: ./gradlew clean
# In RN64 "clean" task tries to run the build again. It is reproing in 0.64-stable branch but fixed in 0.65-stable.
# I can't zero on the exact cause .. but turns out the issue is with rntester clean task.
#
# mganandraj@RNDroid:~/github/rnm-64$ ./gradlew :packages:rn-tester:android:app:clean --dry-run
# :packages:react-native-codegen:android:buildCodegenCLI SKIPPED
# :packages:rn-tester:android:app:generateCodegenSchemaFromJavaScript SKIPPED
# :packages:rn-tester:android:app:generateCodegenArtifactsFromSchema SKIPPED
# :ReactAndroid:extractAARHeaders SKIPPED
# :ReactAndroid:extractJNIFiles SKIPPED
# :ReactAndroid:generateCodegenSchemaFromJavaScript SKIPPED
# :ReactAndroid:generateCodegenArtifactsFromSchema SKIPPED
# :ReactAndroid:prepareBoost SKIPPED
# :ReactAndroid:createNativeDepsDirectories SKIPPED
# ..
# - task: CmdLine@2
# displayName: gradlew clean
# inputs:
# script: ./gradlew clean

- task: PublishBuildArtifacts@1
displayName: 'Publish final artifacts'
Expand Down
97 changes: 97 additions & 0 deletions .ado/apple-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: Integrate $(Date:yyyyMMdd).$(Rev:.r)
variables:
- template: variables/mac.yml
trigger:
branches:
include:
- master
- '*-stable'
paths:
exclude:
- '*.md'
pr:
branches:
include:
- master
- '*-stable'
paths:
exclude:
- '*.md'
jobs:
- job: react_native_test_app
displayName: react-native-test-app
pool:
vmImage: $(VmImage)
demands: ['npm', 'sh', 'xcode']
workspace:
clean: all
timeoutInMinutes: 60
cancelTimeoutInMinutes: 5
steps:
- template: templates/apple-node-setup.yml
- template: templates/apple-xcode-select.yml
parameters:
slice_name: $(slice_name)
xcode_version: $(xcode_version)
- bash: |
echo "##vso[task.setvariable variable=package_version]$(cat package.json | jq .version | awk '{ print substr($0, 2, length($0) - 2) }')"
echo "##vso[task.setvariable variable=react_version]$(cat package.json | jq .peerDependencies.react)"
echo "##vso[task.setvariable variable=rncli_version]$(cat package.json | jq '.dependencies."@react-native-community/cli"')"
displayName: 'Determine react-native-macos version'
- bash: |
npm pack
displayName: 'Pack react-native-macos'
- bash: |
git clone --progress https://github.com/microsoft/react-native-test-app.git
displayName: Checkout react-native-test-app
- bash: |
set -eo pipefail
cat package.json |
jq '.devDependencies["react"] = $(react_version)' |
jq '.devDependencies["react-native"] = "^0.64"' |
jq '.devDependencies["react-native-macos"] = "../react-native-macos-$(package_version).tgz"' |
jq 'del(.devDependencies["@react-native-community/cli"])' |
jq 'del(.devDependencies["@react-native-community/cli-platform-android"])' |
jq 'del(.devDependencies["@react-native-community/cli-platform-ios"])' |
jq 'del(.devDependencies["react-native-windows"])' > .package.json
mv .package.json package.json
cat package.json | jq .devDependencies
displayName: Modify react-native-test-app dependencies
workingDirectory: react-native-test-app
- bash: |
set -eo pipefail
cat package.json |
jq '.devDependencies["@react-native-community/cli"] = $(rncli_version)' |
jq '.devDependencies["@react-native-community/cli-platform-android"] = $(rncli_version)' |
jq '.devDependencies["@react-native-community/cli-platform-ios"] = $(rncli_version)' |
jq '.devDependencies["react"] = $(react_version)' |
jq '.devDependencies["react-native"] = "^0.64"' |
jq '.devDependencies["react-native-macos"] = "../../react-native-macos-$(package_version).tgz"' |
jq 'del(.devDependencies["react-native-windows"])' > .package.json
mv .package.json package.json
cat package.json | jq .devDependencies
displayName: Modify example app dependencies
workingDirectory: react-native-test-app/example
- bash: |
yarn --no-immutable
displayName: Install npm dependencies
workingDirectory: react-native-test-app
- bash: |
yarn build:macos || yarn build:macos
displayName: Bundle JavaScript
workingDirectory: react-native-test-app/example
- bash: |
pod install --project-directory=macos
displayName: Install Pods
workingDirectory: react-native-test-app/example
- bash: |
set -eo pipefail
../scripts/xcodebuild.sh macos/Example.xcworkspace build
displayName: Build Intel
workingDirectory: react-native-test-app/example
- bash: |
set -eo pipefail
../scripts/xcodebuild.sh macos/Example.xcworkspace clean
../scripts/xcodebuild.sh macos/Example.xcworkspace build ARCHS=arm64
displayName: Build ARM
workingDirectory: react-native-test-app/example
2 changes: 1 addition & 1 deletion .ado/gitTagRelease.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function doPublish() {
exec(`git config --global user.email "[email protected]"`);
exec(`git config --global user.name "React-Native Bot"`);

exec(`git add ${pkgJsonPath}`);
exec(`git add .`);
exec(`git commit -m "Applying package update to ${releaseVersion} ***NO_CI***"`);
exec(`git tag v${releaseVersion}`);
exec(`git push origin HEAD:${tempPublishBranch} --follow-tags --verbose`);
Expand Down
2 changes: 1 addition & 1 deletion .ado/npmOfficePack.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function doPublish(fakeMode) {
if (!onlyTagSource) {
// -------- Generating Android Artifacts with JavaDoc
const depsEnvPrefix = "REACT_NATIVE_BOOST_PATH=" + path.join(process.env.BUILD_SOURCESDIRECTORY, "build_deps");
const gradleCommand = path.join(process.env.BUILD_SOURCESDIRECTORY, "gradlew") + " installArchives";
const gradleCommand = path.join(process.env.BUILD_SOURCESDIRECTORY, "gradlew") + " installArchives -Pparam=\"excludeLibs\"";
exec( depsEnvPrefix + " " + gradleCommand );

// undo uncommenting javadoc setting
Expand Down
43 changes: 39 additions & 4 deletions .ado/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ trigger:

pr: none

variables:
- template: variables/mac.yml

jobs:
- job: RNGithubNpmJSPublish
displayName: React-Native GitHub Publish to npmjs.org
pool:
vmImage: vs2017-win2016
vmImage: $(VmImage)
timeoutInMinutes: 90 # how long to run the job before automatically cancelling
cancelTimeoutInMinutes: 5 # how much time to give 'run always even if cancelled tasks' before killing them
steps:
Expand All @@ -47,6 +50,8 @@ jobs:
displayName: Set dist-tag to v0.x-stable
condition: and(ne(variables['Build.SourceBranchName'], 'master'), ne(variables['Build.SourceBranchName'], variables.latestStableBranch))

- template: templates/apple-node-setup.yml

- task: CmdLine@2
displayName: yarn install
inputs:
Expand All @@ -56,17 +61,39 @@ jobs:
displayName: Bump stable package version
inputs:
script: node .ado/bumpFileVersions.js
condition: ne(variables['Build.SourceBranchName'], 'master')
condition: and(succeeded(), ne(variables['Build.SourceBranchName'], 'master'))
env:
BUILD_SOURCEBRANCH: $(Build.SourceBranch)

- task: CmdLine@2
displayName: pod update
inputs:
script: |
cd packages/rn-tester
pod update React-TurboModuleCxx-RNW
condition: and(succeeded(), ne(variables['Build.SourceBranchName'], 'master'))

- task: CmdLine@2
displayName: Bump canary package version
inputs:
script: node scripts/bump-oss-version.js --nightly
condition: eq(variables['Build.SourceBranchName'], 'master')
condition: and(succeeded(), eq(variables['Build.SourceBranchName'], 'master'))

# Publish will fail if package.json is marked as private
- task: CmdLine@2
displayName: Remove workspace config from package.json
inputs:
script: node .ado/removeWorkspaceConfig.js

- script: npm publish --tag $(npmDistTag) --registry https://registry.npmjs.org/ --//registry.npmjs.org/:_authToken=$(npmAuthToken)
displayName: Publish react-native-macos to npmjs.org

# Put the private flag back so that the removal does not get committed by the tag release step
- task: CmdLine@2
displayName: Restore package.json workspace config
inputs:
script: node .ado/restoreWorkspaceConfig.js

- task: CmdLine@2
displayName: 'Tag published release'
inputs:
Expand All @@ -76,7 +103,7 @@ jobs:
BUILD_SOURCEBRANCH: $(Build.SourceBranch)
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
githubApiToken: $(githubApiToken)
condition: ne(variables['Build.SourceBranchName'], 'master')
condition: and(succeeded(), ne(variables['Build.SourceBranchName'], 'master'))


- job: RNMacOSInitNpmJSPublish
Expand Down Expand Up @@ -136,6 +163,14 @@ jobs:
displayName: Bump package version
inputs:
script: node .ado/bumpOfficeFileVersions.js
env:
BUILD_SOURCEBRANCH: $(Build.SourceBranch)

# Publish will fail if package.json is marked as private
- task: CmdLine@2
displayName: Remove workspace config from package.json
inputs:
script: node .ado/removeWorkspaceConfig.js

- task: CmdLine@2
displayName: gradlew installArchives
Expand Down
3 changes: 3 additions & 0 deletions .ado/removeWorkspaceConfig.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// @ts-check
const {removeWorkspaceConfig} = require('./versionUtils');
removeWorkspaceConfig();
3 changes: 3 additions & 0 deletions .ado/restoreWorkspaceConfig.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// @ts-check
const {restoreWorkspaceConfig} = require('./versionUtils');
restoreWorkspaceConfig();
21 changes: 19 additions & 2 deletions .ado/templates/android-build-office.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,29 @@ steps:
inputs:
script: yarn install --frozen-lockfile

# scripts/bump-oss-version.js
#
# update the following files to the commit id.
# package.json (-> npm package version)
# gradle.properties (-> aar version)
# gradle.properties (-> aar version)
#
# The following files are updated for runtime version checking.
# ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java
# React/Base/RCTVersion.m
# ReactCommon/cxxreact/ReactNativeVersion.h
# Libraries/Core/ReactNativeVersion.js
#
# --nightly => version = `0.0.0-${currentCommit.slice(0, 9)}`;
# When on master branch or non-stable branch.
- task: CmdLine@2
displayName: Bump canary package version
inputs:
script: node scripts/bump-oss-version.js --nightly
condition: eq(variables['Build.SourceBranchName'], 'master')

condition: or(eq(variables['Build.SourceBranchName'], 'master'), not(contains(variables['Build.SourceBranchName'], '-stable')))

# TODO: We don't seem to be running bump-oss-version.js for stable branches, hence we would end up publishing using the values in the repository.

- task: CmdLine@2
displayName: nuget restore
inputs:
Expand Down
2 changes: 1 addition & 1 deletion .ado/templates/apple-droid-node-patching.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ steps:
- task: CmdLine@2
displayName: Apply Android specific patches for Office consumption
inputs:
script: node $(System.DefaultWorkingDirectory)/android-patches/bundle/bundle.js patch $(System.DefaultWorkingDirectory) Build OfficeRNHost V8 Focus --patch-store $(System.DefaultWorkingDirectory)/android-patches/patches --log-folder $(System.DefaultWorkingDirectory)/android-patches/logs --confirm ${{ parameters.apply_office_patches }}
script: node $(System.DefaultWorkingDirectory)/android-patches/bundle/bundle.js patch $(System.DefaultWorkingDirectory) Build OfficeRNHost V8 Focus MAC ImageColor RootViewAttach JniUtils --patch-store $(System.DefaultWorkingDirectory)/android-patches/patches --log-folder $(System.DefaultWorkingDirectory)/android-patches/logs --confirm ${{ parameters.apply_office_patches }}
25 changes: 23 additions & 2 deletions .ado/versionUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
const fs = require("fs");
const path = require("path");
const semver = require('semver');
const {execSync} = require('child_process');

const pkgJsonPath = path.resolve(__dirname, "../package.json");
let publishBranchName = '';
Expand Down Expand Up @@ -41,15 +42,35 @@ function updateVersionsInFiles(patchVersionPrefix) {
}

pkgJson.version = releaseVersion;
fs.writeFileSync(pkgJsonPath, JSON.stringify(pkgJson, null, 2));
console.log(`Updating package.json to version ${releaseVersion}`);
console.log(`Bumping files to version ${releaseVersion}`);
execSync(`node ./scripts/bump-oss-version.js --rnmpublish ${releaseVersion}`, {stdio: 'inherit', env: process.env});

return {releaseVersion, branchVersionSuffix};
}


const workspaceJsonPath = path.resolve(require('os').tmpdir(), 'rnpkg.json');

function removeWorkspaceConfig() {
let {pkgJson} = gatherVersionInfo();
fs.writeFileSync(workspaceJsonPath, JSON.stringify(pkgJson, null, 2));
delete pkgJson.private;
delete pkgJson.workspaces;
fs.writeFileSync(pkgJsonPath, JSON.stringify(pkgJson, null, 2));
console.log(`Removing workspace config from package.json to prepare to publish.`);
}

function restoreWorkspaceConfig() {
let pkgJson = JSON.parse(fs.readFileSync(workspaceJsonPath, "utf8"));
fs.writeFileSync(pkgJsonPath, JSON.stringify(pkgJson, null, 2));
console.log(`Restoring workspace config from package.json`);
}

module.exports = {
gatherVersionInfo,
publishBranchName,
pkgJsonPath,
removeWorkspaceConfig,
restoreWorkspaceConfig,
updateVersionsInFiles
}
18 changes: 10 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ jobs:
steps:
- run:
name: Generate RNTesterPods Workspace
command: cd packages/rn-tester && bundle exec pod install --verbose
command: cd packages/rn-tester && USE_FABRIC=1 bundle exec pod install --verbose

# -------------------------
# Runs iOS unit tests
Expand Down Expand Up @@ -790,13 +790,15 @@ workflows:
run_unit_tests: true
requires:
- setup_ios
- test_ios:
name: test_ios_unit_frameworks_hermes
use_hermes: true
use_frameworks: true
run_unit_tests: true
requires:
- setup_ios
# Hermes doesn't support dynamic frameworks right now.
# The following configuration will fail.
# - test_ios:
# name: test_ios_unit_frameworks_hermes
# use_hermes: true
# use_frameworks: true
# run_unit_tests: true
# requires:
# - setup_ios
# - test_ios:
# name: test_ios_detox
# run_detox_tests: true
Expand Down
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ indent_size = 4

[BUCK]
indent_size = 4

# Windows files
[*.bat]
end_of_line = crlf
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Ensure scripts always have Unix newlines, even on Windows.
*.command text eol=lf
*.sh text eol=lf
# Windows files should use crlf line endings
# https://help.github.com/articles/dealing-with-line-endings/
*.bat text eol=crlf
Loading