Skip to content

Commit

Permalink
[core] Add uuid to expo-modules-core (expo#23249)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanjhughes authored Jul 4, 2023
1 parent 033ea1f commit 8fbec2e
Show file tree
Hide file tree
Showing 92 changed files with 731 additions and 65 deletions.
4 changes: 2 additions & 2 deletions apps/jest-expo-mock-generator/App.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import mux from '@expo/mux';
import { setStringAsync } from 'expo-clipboard';
import Constants from 'expo-constants';
import { uuidv4 } from 'expo-modules-core';
import getInstallationIdAsync from 'expo/build/environment/getInstallationIdAsync';
import React from 'react';
import { Button, NativeModules, StyleSheet, Text, View } from 'react-native';
import { v4 as uuidV4 } from 'uuid';

// A workaround for `TypeError: Cannot read property 'now' of undefined` error thrown from reanimated code.
global.performance = {
now: () => 0,
};

const logUrl = Constants.expoGoConfig.logUrl;
const sessionId = uuidV4();
const sessionId = uuidv4();

const { ExpoNativeModuleIntrospection } = NativeModules;

Expand Down
2 changes: 1 addition & 1 deletion home/api/__tests__/AuthSessions-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { uuidv4 } from 'expo-modules-core';
import gql from 'graphql-tag';
import { v4 as uuidv4 } from 'uuid';

jest.mock('@react-native-async-storage/async-storage', () => ({
setItem: jest.fn(() => new Promise((resolve) => resolve(null))),
Expand Down
2 changes: 2 additions & 0 deletions packages/expo-constants/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

### 💡 Others

- Fork `[email protected]` and move into `expo-modules-core`. Remove the original dependency. ([#23249](https://github.com/expo/expo/pull/23249) by [@alanhughes](https://github.com/alanjhughes))

## 14.4.2 — 2023-06-24

### 💡 Others
Expand Down

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

3 changes: 1 addition & 2 deletions packages/expo-constants/build/ExponentConstants.web.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-constants/build/ExponentConstants.web.js.map

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

3 changes: 1 addition & 2 deletions packages/expo-constants/src/ExponentConstants.web.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Platform } from 'expo-modules-core';
import { v4 as uuidv4 } from 'uuid';
import { Platform, uuidv4 } from 'expo-modules-core';

import {
ExecutionEnvironment,
Expand Down
2 changes: 2 additions & 0 deletions packages/expo-contacts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

### 💡 Others

- Fork `[email protected]` and move into `expo-modules-core`. Remove the original dependency. ([#23249](https://github.com/expo/expo/pull/23249) by [@alanhughes](https://github.com/alanjhughes))

## 12.2.0 — 2023-06-21

### 🐛 Bug fixes
Expand Down
Loading

0 comments on commit 8fbec2e

Please sign in to comment.