peachsim 0.1.2411 → 0.1.2421
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cli/catalog/content.ts +6 -3
- package/cli/catalog/meta.ts +63 -17
- package/cli/catalog/routes.ts +4 -0
- package/cli/cloud-box-artifact.ts +45 -24
- package/cli/cloud-client.ts +6 -2
- package/cli/command-registry.ts +3 -1
- package/cli/commands/control.ts +74 -55
- package/cli/commands/desktop.ts +3 -3
- package/cli/commands/electron.ts +7 -5
- package/cli/commands/kotlin.ts +8 -1
- package/cli/commands/platform.ts +5 -7
- package/cli/commands/profile.ts +2 -2
- package/cli/commands/settings.ts +90 -0
- package/cli/commands/shell-url.ts +18 -10
- package/cli/commands/swift.ts +3 -1
- package/cli/main.ts +6 -0
- package/cli/outbound-endpoints.ts +17 -15
- package/cli/settings-flags.ts +115 -0
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +3706 -1818
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +3 -7
- package/dist-lib/config.mjs +3 -7
- package/dist-lib/detox/index.cjs +4 -4
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +17144 -15295
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +63288 -62269
- package/dist-lib/host/fetch-proxy-handler.cjs +1598 -211
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +3007 -1512
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +972 -246
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +1742 -247
- package/dist-lib/native-app-identity-project.cjs +40 -204
- package/dist-lib/native-app-identity-project.mjs +40 -204
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +26 -24
- package/dist-lib/public-origins-lib.json +198 -117
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +2 -2
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +21765 -20511
- package/dist-lib/swift-compile.cjs +48 -228
- package/dist-lib/swift-compile.mjs +48 -228
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -199
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +227 -251
- package/dist-lib/vite.cjs +5240 -3788
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/config.d.ts +1 -4
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +5 -0
- package/kotlin/README.md +4 -3
- package/kotlin/sdk.tar.gz +0 -0
- package/kotlin/toolchain.json +3 -6
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +1 -43
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayerContents.h +55 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap +3 -3
- package/sdk/ios/usr/include/ObjectiveC.apinotes +0 -24
- package/sdk/ios/usr/include/grp.h +93 -0
- package/sdk/ios/usr/include/netinet/tcp.h +299 -0
- package/sdk/ios/wasm/include/netinet/tcp.h +6 -0
- package/sdk/ios/wasm/include/stdlib.h +1 -0
- package/sdk/ios/wasm/include/unistd.h +2 -0
- package/skills/contrast/SKILL.md +1 -0
- package/skills/peach-setup/SKILL.md +11 -1
- package/src/android-bridge-dependencies.ts +1 -1
- package/src/app-config.ts +7 -0
- package/src/binaryen.lock.json +21 -0
- package/src/cocoapods-trunk.ts +52 -0
- package/src/config.ts +21 -31
- package/src/expo-native-workspace.ts +4 -0
- package/src/kotlin-host.ts +1 -1
- package/src/kotlin-sdk.ts +7 -7
- package/src/kotlin-toolchain.ts +28 -24
- package/src/kotlinSdkContract.ts +2 -2
- package/src/native-bundles.ts +5 -2
- package/src/native-static-libraries.ts +38 -5
- package/src/podfile-cocoapods.ts +1473 -0
- package/src/podspec-cocoapods.ts +331 -106
- package/src/podspec-ruby-stdlib.ts +134 -19
- package/src/podspec-ruby.ts +199 -46
- package/src/settingsContract.ts +74 -0
- package/src/swift-compile.ts +1 -1
- package/src/swift-compiler-digest.ts +1 -0
- package/src/swift-host.ts +107 -15
- package/src/swift-objc-compile.ts +5 -0
- package/src/swift-packages.ts +75 -0
- package/src/swift-shared-sdk.ts +19 -0
- package/src/swift-toolchain.ts +2 -201
- package/src/turbo-source.ts +7 -37
- package/src/wasm-optimize.ts +4 -27
- package/src/xcode-project.ts +22 -7
package/src/kotlin-sdk.ts
CHANGED
|
@@ -5,13 +5,13 @@ import path from 'node:path'
|
|
|
5
5
|
import { promisify } from 'node:util'
|
|
6
6
|
import { kotlinHome } from './kotlin-toolchain'
|
|
7
7
|
import { KOTLIN_SDK_FILES, readKotlinSdkManifest } from './kotlinSdkContract'
|
|
8
|
-
import type { KotlinSdkManifest } from './kotlinSdkContract'
|
|
8
|
+
import type { KotlinSdkManifest, KotlinToolchain } from './kotlinSdkContract'
|
|
9
9
|
|
|
10
10
|
const run = promisify(execFile)
|
|
11
11
|
|
|
12
12
|
export function verifyKotlinSdkDirectory(
|
|
13
13
|
root: string,
|
|
14
|
-
|
|
14
|
+
compiler: KotlinToolchain['compiler'],
|
|
15
15
|
): KotlinSdkManifest {
|
|
16
16
|
const expectedNames = ['manifest.json', ...KOTLIN_SDK_FILES]
|
|
17
17
|
const names = fs.readdirSync(root)
|
|
@@ -25,7 +25,7 @@ export function verifyKotlinSdkDirectory(
|
|
|
25
25
|
throw new Error('Kotlin SDK manifest is not a regular file')
|
|
26
26
|
const manifest = readKotlinSdkManifest(
|
|
27
27
|
fs.readFileSync(path.join(root, 'manifest.json'), 'utf8'),
|
|
28
|
-
|
|
28
|
+
compiler.upstreamSha256,
|
|
29
29
|
)
|
|
30
30
|
for (const [name, expected] of Object.entries(manifest.files)) {
|
|
31
31
|
const target = path.join(root, name)
|
|
@@ -44,13 +44,13 @@ export function verifyKotlinSdkDirectory(
|
|
|
44
44
|
|
|
45
45
|
export async function installKotlinSdkArchive(
|
|
46
46
|
archive: Buffer,
|
|
47
|
-
|
|
47
|
+
compiler: KotlinToolchain['compiler'],
|
|
48
48
|
): Promise<{ root: string; sha256: string; manifest: KotlinSdkManifest }> {
|
|
49
49
|
const sha256 = createHash('sha256').update(archive).digest('hex')
|
|
50
50
|
const parent = path.join(kotlinHome(), 'sdk')
|
|
51
51
|
const root = path.join(parent, sha256)
|
|
52
52
|
if (fs.existsSync(root))
|
|
53
|
-
return { root, sha256, manifest: verifyKotlinSdkDirectory(root,
|
|
53
|
+
return { root, sha256, manifest: verifyKotlinSdkDirectory(root, compiler) }
|
|
54
54
|
fs.mkdirSync(parent, { recursive: true })
|
|
55
55
|
const work = fs.mkdtempSync(path.join(parent, '.install-'))
|
|
56
56
|
try {
|
|
@@ -67,12 +67,12 @@ export async function installKotlinSdkArchive(
|
|
|
67
67
|
throw new Error('Kotlin SDK archive contains unexpected inputs')
|
|
68
68
|
await run('tar', ['-xzf', packed, '-C', work, '--', ...expected])
|
|
69
69
|
fs.rmSync(packed)
|
|
70
|
-
const manifest = verifyKotlinSdkDirectory(work,
|
|
70
|
+
const manifest = verifyKotlinSdkDirectory(work, compiler)
|
|
71
71
|
try {
|
|
72
72
|
fs.renameSync(work, root)
|
|
73
73
|
} catch (error) {
|
|
74
74
|
if (!fs.existsSync(root)) throw error
|
|
75
|
-
verifyKotlinSdkDirectory(root,
|
|
75
|
+
verifyKotlinSdkDirectory(root, compiler)
|
|
76
76
|
}
|
|
77
77
|
return { root, sha256, manifest }
|
|
78
78
|
} finally {
|
package/src/kotlin-toolchain.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { createHash } from 'node:crypto'
|
|
|
3
3
|
import fs from 'node:fs'
|
|
4
4
|
import path from 'node:path'
|
|
5
5
|
import { promisify } from 'node:util'
|
|
6
|
+
import { installVerifiedTarball } from '@contrast/runtime-delivery'
|
|
6
7
|
import { rnxHomeDir } from './home-paths'
|
|
7
8
|
import { isRecord } from './is-record'
|
|
8
9
|
import type {
|
|
@@ -21,7 +22,8 @@ export function readToolchain(moduleRoot: string): KotlinToolchain {
|
|
|
21
22
|
if (
|
|
22
23
|
!isRecord(value) ||
|
|
23
24
|
typeof value.url !== 'string' ||
|
|
24
|
-
typeof value.sha256 !== 'string'
|
|
25
|
+
typeof value.sha256 !== 'string' ||
|
|
26
|
+
!/^[a-f0-9]{64}$/.test(value.sha256)
|
|
25
27
|
)
|
|
26
28
|
throw new Error(
|
|
27
29
|
'peachsim kotlin/toolchain.json names a download without url and sha256',
|
|
@@ -38,9 +40,13 @@ export function readToolchain(moduleRoot: string): KotlinToolchain {
|
|
|
38
40
|
typeof parsed.composeRuntime.name !== 'string'
|
|
39
41
|
)
|
|
40
42
|
throw new Error('peachsim kotlin/toolchain.json has no compiler and libraries')
|
|
41
|
-
const version = parsed.compiler
|
|
42
|
-
if (
|
|
43
|
-
|
|
43
|
+
const { version, upstreamSha256 } = parsed.compiler
|
|
44
|
+
if (
|
|
45
|
+
typeof version !== 'string' ||
|
|
46
|
+
typeof upstreamSha256 !== 'string' ||
|
|
47
|
+
!/^[a-f0-9]{64}$/.test(upstreamSha256)
|
|
48
|
+
)
|
|
49
|
+
throw new Error('peachsim kotlin/toolchain.json has no upstream compiler pin')
|
|
44
50
|
const libraries = (values: unknown[]) =>
|
|
45
51
|
values.map((library) => {
|
|
46
52
|
if (!isRecord(library) || typeof library.name !== 'string')
|
|
@@ -51,7 +57,7 @@ export function readToolchain(moduleRoot: string): KotlinToolchain {
|
|
|
51
57
|
compiler: {
|
|
52
58
|
...download(parsed.compiler),
|
|
53
59
|
version,
|
|
54
|
-
|
|
60
|
+
upstreamSha256,
|
|
55
61
|
},
|
|
56
62
|
libraries: libraries(parsed.libraries),
|
|
57
63
|
composeLibraries: libraries(parsed.composeLibraries),
|
|
@@ -118,24 +124,22 @@ export function ensureToolchain(
|
|
|
118
124
|
if (pending) return pending
|
|
119
125
|
const ready = (async () => {
|
|
120
126
|
const dir = path.join(kotlinHome(), toolchain.compiler.version)
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
await
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
fs.writeFileSync(patched, toolchain.compiler.jar.sha256)
|
|
138
|
-
}
|
|
127
|
+
const compilerDir = path.join(dir, `compiler-${toolchain.compiler.sha256}`)
|
|
128
|
+
const installedMarker = 'bin/kotlinc-wasm'
|
|
129
|
+
const kotlinc = path.join(compilerDir, installedMarker)
|
|
130
|
+
if (!fs.existsSync(kotlinc))
|
|
131
|
+
await installVerifiedTarball({
|
|
132
|
+
url: toolchain.compiler.url,
|
|
133
|
+
digest: {
|
|
134
|
+
algorithm: 'sha256',
|
|
135
|
+
encoding: 'hex',
|
|
136
|
+
value: toolchain.compiler.sha256,
|
|
137
|
+
},
|
|
138
|
+
destDir: compilerDir,
|
|
139
|
+
installedMarker,
|
|
140
|
+
stripComponents: 1,
|
|
141
|
+
label: `Kotlin compiler ${toolchain.compiler.version}`,
|
|
142
|
+
})
|
|
139
143
|
// kotlinc runs on the JVM an android build already needs; it finds it
|
|
140
144
|
// through JAVA_HOME or PATH, as gradle does
|
|
141
145
|
const java = process.env.JAVA_HOME
|
|
@@ -151,7 +155,7 @@ export function ensureToolchain(
|
|
|
151
155
|
const javaHome = /^\s*java\.home\s*=\s*(.+)$/m.exec(stderr)?.[1]?.trim()
|
|
152
156
|
if (!javaHome || !path.isAbsolute(javaHome))
|
|
153
157
|
throw new Error('the configured Java runtime did not report an absolute java.home')
|
|
154
|
-
const libraries = [path.join(
|
|
158
|
+
const libraries = [path.join(compilerDir, 'lib', 'kotlin-stdlib-wasm-js.klib')]
|
|
155
159
|
for (const library of toolchain.libraries) {
|
|
156
160
|
const target = path.join(dir, library.name)
|
|
157
161
|
await fetchVerified(library, target)
|
package/src/kotlinSdkContract.ts
CHANGED
|
@@ -111,8 +111,8 @@ export function readKotlinSdkManifest(
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
export interface KotlinToolchain {
|
|
114
|
-
//
|
|
115
|
-
compiler: Download & { version: string;
|
|
114
|
+
// the SDK binds the upstream compiler release, while the archive carries its patched build.
|
|
115
|
+
compiler: Download & { version: string; upstreamSha256: string }
|
|
116
116
|
libraries: (Download & { name: string })[]
|
|
117
117
|
composeLibraries: (Download & { name: string })[]
|
|
118
118
|
composeRuntime: Download & { name: string }
|
package/src/native-bundles.ts
CHANGED
|
@@ -44,7 +44,7 @@ export interface NativeBundleMetadata {
|
|
|
44
44
|
export async function buildNativeBundles(
|
|
45
45
|
projectRoot: string,
|
|
46
46
|
platform: 'ios' | 'android',
|
|
47
|
-
configuration: 'Debug' | 'Release',
|
|
47
|
+
configuration: 'Debug' | 'Release' | (() => Promise<'Debug' | 'Release'>),
|
|
48
48
|
): Promise<NativeBundles> {
|
|
49
49
|
return getRuntimePlatformAdapter(platform).select<() => Promise<NativeBundles>>({
|
|
50
50
|
ios: async () => {
|
|
@@ -73,7 +73,10 @@ export async function buildNativeBundles(
|
|
|
73
73
|
expoSwift,
|
|
74
74
|
nitro: await (
|
|
75
75
|
await import('./nitro-bundle')
|
|
76
|
-
).buildNitroBundle(
|
|
76
|
+
).buildNitroBundle(
|
|
77
|
+
projectRoot,
|
|
78
|
+
typeof configuration === 'function' ? await configuration() : configuration,
|
|
79
|
+
),
|
|
77
80
|
turbo: await (await import('./turbo-bundle')).buildTurboBundle(projectRoot),
|
|
78
81
|
expoKotlin: null,
|
|
79
82
|
}
|
|
@@ -48,14 +48,21 @@ export const NATIVE_STATIC_LIBRARY_RECIPES = [
|
|
|
48
48
|
name: 'libsodium',
|
|
49
49
|
nativeSha256: 'a7e8af90a9d712ce8a2474f310e21682b690cb57c7ef74ce4b02dbfeeca62aa8',
|
|
50
50
|
upstream: '9e4285c7a419e82dedb0be63a72eea357d6943bc3e28e6735bf600dd4883feaf',
|
|
51
|
-
recipe: '
|
|
51
|
+
recipe: '56c6b6b1efb99664e1e6df169387c4859a2887ae913b9e558314974575e564e7',
|
|
52
|
+
archive: 'libsodium.a',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'libsodium_1_0_18',
|
|
56
|
+
nativeSha256: '0c3210c5ef0fe234065913732c1da7853a492d68702158c77d8d94cd703fb556',
|
|
57
|
+
upstream: 'a08a945c589462f524efddbc8d62427bb002bb6a',
|
|
58
|
+
recipe: '56c6b6b1efb99664e1e6df169387c4859a2887ae913b9e558314974575e564e7',
|
|
52
59
|
archive: 'libsodium.a',
|
|
53
60
|
},
|
|
54
61
|
{
|
|
55
62
|
name: 'libsodium_1_0_22',
|
|
56
63
|
nativeSha256: 'b59ff5ecd5d00674d1dd52c8155b613ebbcaf630cf6a7b29e0710dff7dd38e17',
|
|
57
64
|
upstream: '8cda270b3b18ca103c57085752cece1ebbf5abee',
|
|
58
|
-
recipe: '
|
|
65
|
+
recipe: '56c6b6b1efb99664e1e6df169387c4859a2887ae913b9e558314974575e564e7',
|
|
59
66
|
archive: 'libsodium.a',
|
|
60
67
|
},
|
|
61
68
|
{
|
|
@@ -79,7 +86,7 @@ export const NATIVE_STATIC_LIBRARY_RECIPES = [
|
|
|
79
86
|
runtime: 'rust',
|
|
80
87
|
nativeSha256: '03b721dd9e98ec2767f7952aa65cde57d0c33d7ec80c9aaf7ab5ba77e055a25c',
|
|
81
88
|
upstream: 'e41ad6375fd80b64c4183d1a3f901d1f640a7953',
|
|
82
|
-
recipe: '
|
|
89
|
+
recipe: '58ff1780697f345f416a3295e76aa150155bd050fff2b0a439d32db2df3764ee',
|
|
83
90
|
archive: 'libanydoc_mobile.a',
|
|
84
91
|
},
|
|
85
92
|
{
|
|
@@ -88,7 +95,7 @@ export const NATIVE_STATIC_LIBRARY_RECIPES = [
|
|
|
88
95
|
nativeSha256: '8c41abcd8dd4e562e65cf5b88467a3493089c359d0863360dc65a5b88149e837',
|
|
89
96
|
upstream: 'a4296fa21cd40a56543602511bcf417014f4fee7cf5e1eaab58e0ac9610e3f63',
|
|
90
97
|
// the unchanged source build, pinned Rust release and committed Cargo.lock.
|
|
91
|
-
recipe: '
|
|
98
|
+
recipe: 'bb11c20e8fff731891345aacd97e7f520561b4be2d0a6f0db36275e86712bc39',
|
|
92
99
|
archive: 'libratex_ffi.a',
|
|
93
100
|
},
|
|
94
101
|
{
|
|
@@ -96,7 +103,7 @@ export const NATIVE_STATIC_LIBRARY_RECIPES = [
|
|
|
96
103
|
runtime: 'rust',
|
|
97
104
|
nativeSha256: 'bdd2bf679fcc981d98d36733b3bd083225a7397bb82bbd462c89088c6e0580a8',
|
|
98
105
|
upstream: '2da907eb5dfcb464c7eef3b4c657fbdee144e3c6633e81efb1e56dcf1c76e01b',
|
|
99
|
-
recipe: '
|
|
106
|
+
recipe: '8559a7f6c289af27a9a93e92b8a9b93026884d19efdb9ffc0e7137556370f164',
|
|
100
107
|
archive: 'libratex_ffi.a',
|
|
101
108
|
},
|
|
102
109
|
// react-native-skia 2.14.0 (apple-ios 154.0.0), then 3.8.0 (157): installed apps pin either.
|
|
@@ -221,6 +228,32 @@ export const NATIVE_STATIC_LIBRARY_RECIPES = [
|
|
|
221
228
|
},
|
|
222
229
|
]
|
|
223
230
|
|
|
231
|
+
// stasel/WebRTC 152.0.0 (WebRTC-M152.xcframework): its simulator slice, the
|
|
232
|
+
// official source its version stamp names, and its scripts/build.sh arguments.
|
|
233
|
+
export const WEBRTC_NATIVE_FRAMEWORK = {
|
|
234
|
+
name: 'WebRTC',
|
|
235
|
+
nativeSha256: '4113055e8d7c6de13ad550bd35be0f5cbb0d88b7a0fab2cd055abface8ed1552',
|
|
236
|
+
repository: 'https://webrtc.googlesource.com/src.git',
|
|
237
|
+
upstream: '6f37672d358475cd17544121a12494da454d85fb',
|
|
238
|
+
recipe: '07da5d3d28deb6ceef587ecb413234c04c98519467b81f375bebe5fbcb5e8c3c',
|
|
239
|
+
archive: 'WebRTC',
|
|
240
|
+
gnArgs: {
|
|
241
|
+
is_debug: false,
|
|
242
|
+
rtc_libvpx_build_vp9: true,
|
|
243
|
+
is_component_build: false,
|
|
244
|
+
rtc_include_tests: false,
|
|
245
|
+
rtc_enable_objc_symbol_export: true,
|
|
246
|
+
use_lld: true,
|
|
247
|
+
rtc_ios_use_opengl_rendering: true,
|
|
248
|
+
rtc_system_openh264: true,
|
|
249
|
+
rtc_use_h265: true,
|
|
250
|
+
target_os: 'ios',
|
|
251
|
+
target_environment: 'simulator',
|
|
252
|
+
ios_deployment_target: '12.0',
|
|
253
|
+
ios_enable_code_signing: false,
|
|
254
|
+
},
|
|
255
|
+
}
|
|
256
|
+
|
|
224
257
|
export function nativeStaticLibraryEntry(
|
|
225
258
|
recipe: (typeof NATIVE_STATIC_LIBRARY_RECIPES)[number],
|
|
226
259
|
compiler: string,
|