expo-application
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -7,3 +7,3 @@ export declare const nativeApplicationVersion: string | null; | ||
export declare function getInstallReferrerAsync(): Promise<string>; | ||
export declare function getIosIdForVendorAsync(): Promise<string>; | ||
export declare function getIosIdForVendorAsync(): Promise<string | null>; | ||
export declare enum ApplicationReleaseType { | ||
@@ -10,0 +10,0 @@ UNKNOWN = 0, |
@@ -26,3 +26,3 @@ import { UnavailabilityError } from '@unimodules/core'; | ||
} | ||
return await ExpoApplication.getIosIdForVendorAsync(); | ||
return (await ExpoApplication.getIosIdForVendorAsync()) ?? null; | ||
} | ||
@@ -29,0 +29,0 @@ export var ApplicationReleaseType; |
@@ -11,2 +11,8 @@ # Changelog | ||
## 2.4.1 — 2020-11-25 | ||
### 🐛 Bug fixes | ||
- Fixed return type of `getIosIdForVendorAsync` to include possible `null` value which can be returned if the device hasn't been unlocked yet (for more information consult the [Apple documentation for `identifierForVendor`](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor?language=objc)). ([#10997](https://github.com/expo/expo/pull/10997) by [@sjchmiela](https://github.com/sjchmiela)) | ||
## 2.4.0 — 2020-11-17 | ||
@@ -13,0 +19,0 @@ |
{ | ||
"name": "expo-application", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "A universal module that gets native application information such as its ID, app name, and build version at runtime", | ||
@@ -38,3 +38,3 @@ "main": "build/Application.js", | ||
}, | ||
"gitHead": "bc6b4b3bc3cb5e44e477f145c72c07ed09588651" | ||
"gitHead": "88260c85792ac0d8e382de5d2e104cdd13158792" | ||
} |
@@ -26,7 +26,7 @@ import { UnavailabilityError } from '@unimodules/core'; | ||
export async function getIosIdForVendorAsync(): Promise<string> { | ||
export async function getIosIdForVendorAsync(): Promise<string | null> { | ||
if (!ExpoApplication.getIosIdForVendorAsync) { | ||
throw new UnavailabilityError('expo-application', 'getIosIdForVendorAsync'); | ||
} | ||
return await ExpoApplication.getIosIdForVendorAsync(); | ||
return (await ExpoApplication.getIosIdForVendorAsync()) ?? null; | ||
} | ||
@@ -33,0 +33,0 @@ |
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
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
34916