Skip to content

Commit

Permalink
[packages] Fixes for differences between platforms in mocked funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
sjchmiela committed Jan 30, 2020
1 parent 620d8b0 commit e7ae829
Show file tree
Hide file tree
Showing 19 changed files with 28 additions and 22 deletions.
2 changes: 1 addition & 1 deletion packages/expo-application/build/Application.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/expo-application/build/Application.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/expo-application/src/Application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export const applicationName: string | null = ExpoApplication
export const applicationId: string | null = ExpoApplication
? ExpoApplication.applicationId || null
: null;
export const androidId: string | null = ExpoApplication ? ExpoApplication.androidId || null : null;
export const androidId: string | null =
'androidId' in ExpoApplication ? ExpoApplication.androidId || null : null;

export async function getInstallReferrerAsync(): Promise<string> {
if (!ExpoApplication.getInstallReferrerAsync) {
Expand Down
4 changes: 3 additions & 1 deletion packages/expo-device/build/Device.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e7ae829

Please sign in to comment.