Skip to content

Commit 0a29a3a

Browse files
committed
fix: align remote config platform enum
1 parent bd60330 commit 0a29a3a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/remote-config-schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type {
55
LeaseBackend,
66
SessionIsolationMode,
77
} from './contracts.ts';
8-
import type { DeviceTarget, PlatformSelector } from './utils/device.ts';
8+
import { PLATFORM_SELECTORS, type DeviceTarget, type PlatformSelector } from './utils/device.ts';
99
import type { MetroPrepareKind } from './client-metro.ts';
1010

1111
export type RemoteConfigMetroOptions = {
@@ -81,7 +81,7 @@ export const REMOTE_CONFIG_FIELD_SPECS = [
8181
type: 'enum',
8282
enumValues: ['ios-simulator', 'ios-instance', 'android-instance'],
8383
},
84-
{ key: 'platform', type: 'enum', enumValues: ['ios', 'macos', 'android', 'linux', 'apple'] },
84+
{ key: 'platform', type: 'enum', enumValues: PLATFORM_SELECTORS },
8585
{ key: 'target', type: 'enum', enumValues: ['mobile', 'tv', 'desktop'] },
8686
{ key: 'device', type: 'string' },
8787
{ key: 'udid', type: 'string' },

0 commit comments

Comments
 (0)