You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
2.0 KiB

import xcode from 'xcode';
import { ConfigPlugin } from '../Plugin.types';
import { ExpoConfigUpdates } from '../utils/Updates';
import { ExpoPlist } from './IosConfig.types';
export declare enum Config {
ENABLED = "EXUpdatesEnabled",
CHECK_ON_LAUNCH = "EXUpdatesCheckOnLaunch",
LAUNCH_WAIT_MS = "EXUpdatesLaunchWaitMs",
RUNTIME_VERSION = "EXUpdatesRuntimeVersion",
SDK_VERSION = "EXUpdatesSDKVersion",
UPDATE_URL = "EXUpdatesURL",
RELEASE_CHANNEL = "EXUpdatesReleaseChannel",
UPDATES_CONFIGURATION_REQUEST_HEADERS_KEY = "EXUpdatesRequestHeaders",
CODE_SIGNING_CERTIFICATE = "EXUpdatesCodeSigningCertificate",
CODE_SIGNING_METADATA = "EXUpdatesCodeSigningMetadata"
}
export declare const withUpdates: ConfigPlugin<{
expoUsername: string | null;
}>;
export declare function setUpdatesConfig(projectRoot: string, config: ExpoConfigUpdates, expoPlist: ExpoPlist, username: string | null, expoUpdatesPackageVersion?: string | null): ExpoPlist;
export declare function setVersionsConfig(config: ExpoConfigUpdates, expoPlist: ExpoPlist): ExpoPlist;
interface ShellScriptBuildPhase {
isa: 'PBXShellScriptBuildPhase';
name: string;
shellScript: string;
[key: string]: any;
}
export declare function getBundleReactNativePhase(project: xcode.XcodeProject): ShellScriptBuildPhase;
export declare function ensureBundleReactNativePhaseContainsConfigurationScript(projectRoot: string, project: xcode.XcodeProject): xcode.XcodeProject;
export declare function isShellScriptBuildPhaseConfigured(projectRoot: string, project: xcode.XcodeProject): boolean;
export declare function isPlistConfigurationSet(expoPlist: ExpoPlist): boolean;
export declare function isPlistConfigurationSynced(projectRoot: string, config: ExpoConfigUpdates, expoPlist: ExpoPlist, username: string | null): boolean;
export declare function isPlistVersionConfigurationSynced(config: Pick<ExpoConfigUpdates, 'sdkVersion' | 'runtimeVersion'>, expoPlist: ExpoPlist): boolean;
export {};