Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@expo/config-plugins

Package Overview
Dependencies
Maintainers
23
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@expo/config-plugins - npm Package Compare versions

Comparing version 4.0.0 to 4.0.2

20

build/android/Updates.d.ts

@@ -0,3 +1,3 @@

import { ExpoConfig } from '@expo/config-types';
import { ConfigPlugin } from '../Plugin.types';
import { ExpoConfigUpdates } from '../utils/Updates';
import { AndroidManifest } from './Manifest';

@@ -21,9 +21,9 @@ export declare enum Config {

*/
export declare function getRuntimeVersionNullable(config: Pick<ExpoConfigUpdates, 'runtimeVersion'>): string | null;
export declare function getSDKVersion(config: Pick<ExpoConfigUpdates, 'sdkVersion'>): string | null;
export declare function getUpdatesEnabled(config: Pick<ExpoConfigUpdates, 'updates'>): boolean;
export declare function getUpdatesTimeout(config: Pick<ExpoConfigUpdates, 'updates'>): number;
export declare function getUpdatesCheckOnLaunch(config: Pick<ExpoConfigUpdates, 'updates'>): 'NEVER' | 'ALWAYS';
export declare function setUpdatesConfig(config: ExpoConfigUpdates, androidManifest: AndroidManifest, username: string | null): AndroidManifest;
export declare function setVersionsConfig(config: Pick<ExpoConfigUpdates, 'sdkVersion' | 'runtimeVersion'>, androidManifest: AndroidManifest): AndroidManifest;
export declare function getRuntimeVersionNullable(config: Pick<ExpoConfig, 'runtimeVersion'>): string | null;
export declare function getSDKVersion(config: Pick<ExpoConfig, 'sdkVersion'>): string | null;
export declare function getUpdatesEnabled(config: Pick<ExpoConfig, 'updates'>): boolean;
export declare function getUpdatesTimeout(config: Pick<ExpoConfig, 'updates'>): number;
export declare function getUpdatesCheckOnLaunch(config: Pick<ExpoConfig, 'updates'>): 'NEVER' | 'ALWAYS';
export declare function setUpdatesConfig(config: ExpoConfig, androidManifest: AndroidManifest, username: string | null): AndroidManifest;
export declare function setVersionsConfig(config: Pick<ExpoConfig, 'sdkVersion' | 'runtimeVersion'>, androidManifest: AndroidManifest): AndroidManifest;
export declare function ensureBuildGradleContainsConfigurationScript(projectRoot: string, buildGradleContents: string): string;

@@ -33,3 +33,3 @@ export declare function formatApplyLineForBuildGradle(projectRoot: string): string;

export declare function isMainApplicationMetaDataSet(androidManifest: AndroidManifest): boolean;
export declare function isMainApplicationMetaDataSynced(config: ExpoConfigUpdates, androidManifest: AndroidManifest, username: string | null): boolean;
export declare function areVersionsSynced(config: Pick<ExpoConfigUpdates, 'runtimeVersion' | 'sdkVersion'>, androidManifest: AndroidManifest): boolean;
export declare function isMainApplicationMetaDataSynced(config: ExpoConfig, androidManifest: AndroidManifest, username: string | null): boolean;
export declare function areVersionsSynced(config: Pick<ExpoConfig, 'runtimeVersion' | 'sdkVersion'>, androidManifest: AndroidManifest): boolean;

@@ -57,4 +57,4 @@ "use strict";

) {
return false;
}
return false;
}

@@ -61,0 +61,0 @@ return true;

@@ -5,3 +5,2 @@ import { ExpoConfig } from '@expo/config-types';

import { ExpoPlist } from './IosConfig.types';
declare type ExpoConfigUpdates = Pick<ExpoConfig, 'sdkVersion' | 'owner' | 'runtimeVersion' | 'updates' | 'slug'>;
export declare enum Config {

@@ -21,12 +20,12 @@ ENABLED = "EXUpdatesEnabled",

*/
export declare function getRuntimeVersionNullable(config: Pick<ExpoConfigUpdates, 'runtimeVersion'>): string | null;
export declare function getSDKVersion(config: Pick<ExpoConfigUpdates, 'sdkVersion'>): string | null;
export declare function getUpdatesEnabled(config: Pick<ExpoConfigUpdates, 'updates'>): boolean;
export declare function getUpdatesTimeout(config: Pick<ExpoConfigUpdates, 'updates'>): number;
export declare function getUpdatesCheckOnLaunch(config: Pick<ExpoConfigUpdates, 'updates'>): 'NEVER' | 'ALWAYS';
export declare function getRuntimeVersionNullable(config: Pick<ExpoConfig, 'runtimeVersion'>): string | null;
export declare function getSDKVersion(config: Pick<ExpoConfig, 'sdkVersion'>): string | null;
export declare function getUpdatesEnabled(config: Pick<ExpoConfig, 'updates'>): boolean;
export declare function getUpdatesTimeout(config: Pick<ExpoConfig, 'updates'>): number;
export declare function getUpdatesCheckOnLaunch(config: Pick<ExpoConfig, 'updates'>): 'NEVER' | 'ALWAYS';
export declare const withUpdates: ConfigPlugin<{
expoUsername: string | null;
}>;
export declare function setUpdatesConfig(config: ExpoConfigUpdates, expoPlist: ExpoPlist, username: string | null): ExpoPlist;
export declare function setVersionsConfig(config: ExpoConfigUpdates, expoPlist: ExpoPlist): ExpoPlist;
export declare function setUpdatesConfig(config: ExpoConfig, expoPlist: ExpoPlist, username: string | null): ExpoPlist;
export declare function setVersionsConfig(config: ExpoConfig, expoPlist: ExpoPlist): ExpoPlist;
interface ShellScriptBuildPhase {

@@ -42,4 +41,4 @@ isa: 'PBXShellScriptBuildPhase';

export declare function isPlistConfigurationSet(expoPlist: ExpoPlist): boolean;
export declare function isPlistConfigurationSynced(config: ExpoConfigUpdates, expoPlist: ExpoPlist, username: string | null): boolean;
export declare function isPlistVersionConfigurationSynced(config: Pick<ExpoConfigUpdates, 'sdkVersion' | 'runtimeVersion'>, expoPlist: ExpoPlist): boolean;
export declare function isPlistConfigurationSynced(config: ExpoConfig, expoPlist: ExpoPlist, username: string | null): boolean;
export declare function isPlistVersionConfigurationSynced(config: Pick<ExpoConfig, 'sdkVersion' | 'runtimeVersion'>, expoPlist: ExpoPlist): boolean;
export {};
import { Android, ExpoConfig, IOS } from '@expo/config-types';
export declare type ExpoConfigUpdates = Pick<ExpoConfig, 'sdkVersion' | 'owner' | 'runtimeVersion' | 'updates' | 'slug'>;
declare type TempRuntimeVersion = {
runtimeVersion?: string | {
policy: 'nativeVersion' | 'sdkVersion';
};
};
export declare function getUpdateUrl(config: Pick<ExpoConfigUpdates, 'owner' | 'slug' | 'updates'>, username: string | null): string | null;
export declare function getUpdateUrl(config: Pick<ExpoConfig, 'owner' | 'slug' | 'updates'>, username: string | null): string | null;
export declare function getNativeVersion(config: Pick<ExpoConfig, 'version'> & {
android?: Pick<Android, 'versionCode'> & TempRuntimeVersion;
ios?: Pick<IOS, 'buildNumber'> & TempRuntimeVersion;
android?: Pick<Android, 'versionCode' | 'runtimeVersion'>;
ios?: Pick<IOS, 'buildNumber' | 'runtimeVersion'>;
}, platform: 'android' | 'ios'): string;

@@ -17,10 +11,6 @@ /**

*/
export declare const withRuntimeVersion: (config: ExpoConfig & {
ios?: TempRuntimeVersion;
android?: TempRuntimeVersion;
}) => ExpoConfig;
export declare function getRuntimeVersion(config: Pick<ExpoConfig, 'version' | 'sdkVersion'> & TempRuntimeVersion & {
android?: Pick<Android, 'versionCode'> & TempRuntimeVersion;
ios?: Pick<IOS, 'buildNumber'> & TempRuntimeVersion;
export declare const withRuntimeVersion: (config: ExpoConfig) => ExpoConfig;
export declare function getRuntimeVersion(config: Pick<ExpoConfig, 'version' | 'sdkVersion' | 'runtimeVersion'> & {
android?: Pick<Android, 'versionCode' | 'runtimeVersion'>;
ios?: Pick<IOS, 'buildNumber' | 'runtimeVersion'>;
}, platform: 'android' | 'ios'): string;
export {};

@@ -85,3 +85,3 @@ "use strict";

runtimeVersion: getRuntimeVersion(config, 'ios')
}; //TODO(JJ) remove this cast in SDK 43 https://linear.app/expo/issue/ENG-1869/remove-tempruntimeversion-in-expoconfig
};
}

@@ -92,3 +92,3 @@

runtimeVersion: getRuntimeVersion(config, 'android')
}; //TODO(JJ) remove this cast in SDK 43 https://linear.app/expo/issue/ENG-1869/remove-tempruntimeversion-in-expoconfig
};
}

@@ -113,7 +113,7 @@

return runtimeVersion;
} else if (runtimeVersion.policy === 'nativeVersion') {
} else if (runtimeVersion.policy === 'nativeBuildVersion') {
return getNativeVersion(config, platform);
} else if (runtimeVersion.policy === 'sdkVersion') {
if (!config.sdkVersion) {
throw new Error("An sdk version must be defined when using the 'sdkVersion' runtime policy.");
throw new Error("An SDK version must be defined when using the 'sdkVersion' runtime policy.");
}

@@ -120,0 +120,0 @@

{
"name": "@expo/config-plugins",
"version": "4.0.0",
"version": "4.0.2",
"description": "A library for Expo config plugins",

@@ -35,3 +35,3 @@ "main": "build/index.js",

"dependencies": {
"@expo/config-types": "^42.0.0",
"@expo/config-types": "^43.0.0",
"@expo/json-file": "8.2.33",

@@ -38,0 +38,0 @@ "@expo/plist": "0.0.15",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc