-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2105 from Shopify/revert-2103-m121
Revert "⬆️ m121"
- Loading branch information
Showing
10 changed files
with
70 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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,7 +1,7 @@ | ||
[submodule "externals/skia"] | ||
path = externals/skia | ||
url = https://chromium.googlesource.com/skia/ | ||
branch = chrome/m121 | ||
branch = chrome/m119 | ||
[submodule "externals/depot_tools"] | ||
path = externals/depot_tools | ||
url = https://chromium.googlesource.com/chromium/tools/depot_tools.git |
Binary file not shown.
Submodule skia
updated
from e8d7db to 89907a
Binary file modified
BIN
+2.75 KB
(110%)
package/src/__tests__/snapshots/paragraph/paragraph-bounding-box-ios.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import os from "os"; | ||
import fs from "fs"; | ||
import { executeCmdSync } from "./utils"; | ||
|
||
// Build instructions for building build-libgrapheme-ios | ||
export const buildLibGraphemeiOS = async () => { | ||
// Empty the generate_headers.py file | ||
console.log("Patching the Skia buildscript 'generate_headers.py'..."); | ||
const file = fs.openSync( | ||
"./third_party/libgrapheme/generate_headers.py", | ||
"w" | ||
); | ||
fs.writeSync( | ||
file, | ||
"print('[generate_headers.py] This file has been patched by the RN Skia build script.')" | ||
); | ||
fs.closeSync(file); | ||
console.log("Finished patching generate_headers.py."); | ||
|
||
console.log("Building libgrapheme for iOS..."); | ||
|
||
// Change to the third_party/libgrapheme directory | ||
const currentDir = process.cwd(); | ||
try { | ||
process.chdir("./third_party/externals/libgrapheme"); | ||
// Check if the output has been created - if so skip the build | ||
if (!fs.existsSync("./gen/case.o")) { | ||
// Run configure | ||
console.log("Configuring libgrapheme..."); | ||
executeCmdSync("./configure"); | ||
// Up the file handle limit on mac: | ||
if (os.platform() === "darwin") { | ||
console.log( | ||
"Extending file handle count on Mac to avoid `Too many open files` error..." | ||
); | ||
executeCmdSync("ulimit -n 4096"); | ||
} | ||
// Run make | ||
console.log("Building libgrapheme..."); | ||
executeCmdSync("make"); | ||
console.log("libgrapheme successfully built."); | ||
} else { | ||
console.log("Skipping configuring libgrapheme as it is already built."); | ||
} | ||
} finally { | ||
process.chdir(currentDir); | ||
} | ||
}; |
This file contains 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 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 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