expo-application
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -8,3 +8,13 @@ export declare const nativeApplicationVersion: string | null; | ||
export declare function getIosIdForVendorAsync(): Promise<string>; | ||
export declare enum ApplicationReleaseType { | ||
UNKNOWN = 0, | ||
SIMULATOR = 1, | ||
ENTERPRISE = 2, | ||
DEVELOPMENT = 3, | ||
AD_HOC = 4, | ||
APP_STORE = 5 | ||
} | ||
export declare function getIosApplicationReleaseTypeAsync(): Promise<ApplicationReleaseType>; | ||
export declare function getIosPushNotificationServiceEnvironmentAsync(): Promise<string>; | ||
export declare function getInstallationTimeAsync(): Promise<Date>; | ||
export declare function getLastUpdateTimeAsync(): Promise<Date>; |
@@ -28,2 +28,23 @@ import { UnavailabilityError } from '@unimodules/core'; | ||
} | ||
export var ApplicationReleaseType; | ||
(function (ApplicationReleaseType) { | ||
ApplicationReleaseType[ApplicationReleaseType["UNKNOWN"] = 0] = "UNKNOWN"; | ||
ApplicationReleaseType[ApplicationReleaseType["SIMULATOR"] = 1] = "SIMULATOR"; | ||
ApplicationReleaseType[ApplicationReleaseType["ENTERPRISE"] = 2] = "ENTERPRISE"; | ||
ApplicationReleaseType[ApplicationReleaseType["DEVELOPMENT"] = 3] = "DEVELOPMENT"; | ||
ApplicationReleaseType[ApplicationReleaseType["AD_HOC"] = 4] = "AD_HOC"; | ||
ApplicationReleaseType[ApplicationReleaseType["APP_STORE"] = 5] = "APP_STORE"; | ||
})(ApplicationReleaseType || (ApplicationReleaseType = {})); | ||
export async function getIosApplicationReleaseTypeAsync() { | ||
if (!ExpoApplication.getApplicationReleaseTypeAsync) { | ||
throw new UnavailabilityError('expo-application', 'getApplicationReleaseTypeAsync'); | ||
} | ||
return await ExpoApplication.getApplicationReleaseTypeAsync(); | ||
} | ||
export async function getIosPushNotificationServiceEnvironmentAsync() { | ||
if (!ExpoApplication.getPushNotificationServiceEnvironmentAsync) { | ||
throw new UnavailabilityError('expo-application', 'getPushNotificationServiceEnvironmentAsync'); | ||
} | ||
return await ExpoApplication.getPushNotificationServiceEnvironmentAsync(); | ||
} | ||
export async function getInstallationTimeAsync() { | ||
@@ -30,0 +51,0 @@ if (!ExpoApplication.getInstallationTimeAsync) { |
@@ -1,6 +0,2 @@ | ||
declare const _default: { | ||
[propertyName: string]: any; | ||
addListener: (eventName: string) => void; | ||
removeListeners: (count: number) => void; | ||
}; | ||
declare const _default: import("@unimodules/core").ProxyNativeModule; | ||
export default _default; |
{ | ||
"name": "expo-application", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "A universal module that gets native application information such as its ID, app name, and build version at runtime", | ||
@@ -33,3 +33,3 @@ "main": "build/Application.js", | ||
"devDependencies": { | ||
"expo-module-scripts": "~1.1.1" | ||
"expo-module-scripts": "~1.2.0" | ||
}, | ||
@@ -39,3 +39,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "ec7878b9ce54f2537721218ae0fe4017e4004806" | ||
"gitHead": "3ad68bbd9847ebc8a55272c263b17d998a92f64f" | ||
} |
@@ -33,2 +33,25 @@ import { UnavailabilityError } from '@unimodules/core'; | ||
export enum ApplicationReleaseType { | ||
UNKNOWN = 0, | ||
SIMULATOR = 1, | ||
ENTERPRISE = 2, | ||
DEVELOPMENT = 3, | ||
AD_HOC = 4, | ||
APP_STORE = 5, | ||
} | ||
export async function getIosApplicationReleaseTypeAsync(): Promise<ApplicationReleaseType> { | ||
if (!ExpoApplication.getApplicationReleaseTypeAsync) { | ||
throw new UnavailabilityError('expo-application', 'getApplicationReleaseTypeAsync'); | ||
} | ||
return await ExpoApplication.getApplicationReleaseTypeAsync(); | ||
} | ||
export async function getIosPushNotificationServiceEnvironmentAsync(): Promise<string> { | ||
if (!ExpoApplication.getPushNotificationServiceEnvironmentAsync) { | ||
throw new UnavailabilityError('expo-application', 'getPushNotificationServiceEnvironmentAsync'); | ||
} | ||
return await ExpoApplication.getPushNotificationServiceEnvironmentAsync(); | ||
} | ||
export async function getInstallationTimeAsync(): Promise<Date> { | ||
@@ -35,0 +58,0 @@ if (!ExpoApplication.getInstallationTimeAsync) { |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34074
31
219
1