Skip to content

Commit 06edb18

Browse files
committed
Fix CI
1 parent 390c6c5 commit 06edb18

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

fabricexample/ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ SPEC CHECKSUMS:
14771477
React-perflogger: e3596db7e753f51766bceadc061936ef1472edc3
14781478
React-RCTActionSheet: 17ab132c748b4471012abbcdcf5befe860660485
14791479
React-RCTAnimation: c8bbaab62be5817d2a31c36d5f2571e3f7dcf099
1480-
React-RCTAppDelegate: 7347d0d6f979e0ff694273dfc7a74df71a2a53a8
1480+
React-RCTAppDelegate: 4c3062b01f5f321d5cdd1603ffecbde943c8da96
14811481
React-RCTBlob: 1bcf3a0341eb8d6950009b1ddb8aefaf46996b8c
14821482
React-RCTFabric: 2d72175df6e0e230a13ec2a7eef184ac0a122fd3
14831483
React-RCTImage: 670a3486b532292649b1aef3ffddd0b495a5cee4

fabricexample/src/Tests/Tests.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ import { useClient } from "./useClient";
1616
import { Screens } from "./Screens";
1717

1818
export const CI = process.env.CI === "true";
19-
const scale = 3 / PixelRatio.get();
19+
const s = 3;
20+
const scale = s / PixelRatio.get();
2021
const size = 256 * scale;
2122
// Maximum time to draw: 250 on iOS, 500ms on Android, 1000ms on CI
2223
// eslint-disable-next-line no-nested-ternary
@@ -40,10 +41,12 @@ export const Tests = ({ assets }: TestsProps) => {
4041
client.send(
4142
JSON.stringify(
4243
eval(
43-
`(function Main(){return (${tree.code})(this.Skia, this.ctx); })`
44+
`(function Main(){return (${tree.code})(this.Skia, this.ctx, this.size, this.scale); })`
4445
).call({
4546
Skia,
4647
ctx: parseProps(tree.ctx, assets),
48+
size: size * PixelRatio.get(),
49+
scale: s,
4750
})
4851
)
4952
);

0 commit comments

Comments
 (0)