expo-dev-client 0.4.7 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InstallationPage = void 0;
4
+ exports.InstallationPage = 'https://docs.expo.dev/clients/installation/';
@@ -10,6 +10,7 @@ const app_plugin_1 = __importDefault(require("expo-dev-launcher/app.plugin"));
10
10
  const app_plugin_2 = __importDefault(require("expo-dev-menu/app.plugin"));
11
11
  const fs_1 = __importDefault(require("fs"));
12
12
  const path_1 = __importDefault(require("path"));
13
+ const constants_1 = require("./constants");
13
14
  const withGeneratedAndroidScheme_1 = __importDefault(require("./withGeneratedAndroidScheme"));
14
15
  const withGeneratedIosScheme_1 = __importDefault(require("./withGeneratedIosScheme"));
15
16
  const pkg = require('expo-dev-client/package.json');
@@ -31,7 +32,7 @@ const addReactNativeConfigAsync = async (config) => {
31
32
  try {
32
33
  const config = fs_1.default.readFileSync(filename, 'utf8');
33
34
  if (!config.includes('expo-dev-client/dependencies')) {
34
- throw new Error(`Could not add expo-dev-client dependencies to existing file ${filename}. See expo-dev-client installation instructions to add them manually.`);
35
+ throw new Error(`Could not add expo-dev-client dependencies to existing file ${filename}. See expo-dev-client installation instructions to add them manually: ${constants_1.InstallationPage}`);
35
36
  }
36
37
  }
37
38
  catch (error) {
@@ -0,0 +1 @@
1
+ export const InstallationPage = 'https://docs.expo.dev/clients/installation/';
@@ -7,6 +7,7 @@ import withDevMenu from 'expo-dev-menu/app.plugin';
7
7
  import fs from 'fs';
8
8
  import path from 'path';
9
9
 
10
+ import { InstallationPage } from './constants';
10
11
  import withGeneratedAndroidScheme from './withGeneratedAndroidScheme';
11
12
  import withGeneratedIosScheme from './withGeneratedIosScheme';
12
13
 
@@ -27,13 +28,13 @@ function withReactNativeConfigJs(config: ExpoConfig): ExpoConfig {
27
28
  return config;
28
29
  }
29
30
 
30
- const addReactNativeConfigAsync: Mod = async config => {
31
+ const addReactNativeConfigAsync: Mod = async (config) => {
31
32
  const filename = path.join(config.modRequest.projectRoot, 'react-native.config.js');
32
33
  try {
33
34
  const config = fs.readFileSync(filename, 'utf8');
34
35
  if (!config.includes('expo-dev-client/dependencies')) {
35
36
  throw new Error(
36
- `Could not add expo-dev-client dependencies to existing file ${filename}. See expo-dev-client installation instructions to add them manually.`
37
+ `Could not add expo-dev-client dependencies to existing file ${filename}. See expo-dev-client installation instructions to add them manually: ${InstallationPage}`
37
38
  );
38
39
  }
39
40
  } catch (error) {
@@ -0,0 +1,64 @@
1
+ module.exports = {
2
+ applications: {
3
+ 'dev-client-e2e': {
4
+ preset: 'detox',
5
+ reactVersion: '17.0.1',
6
+ reactNativeVersion: '0.64.2',
7
+ detoxConfigFile: '.detoxrc.json',
8
+ appEntryPoint: 'e2e/app/App.tsx',
9
+ android: {
10
+ mainApplication: 'e2e/android/MainApplication.java',
11
+ mainActivity: 'e2e/android/MainActivity.java',
12
+ detoxTestFile: 'e2e/android/DetoxTest.java',
13
+ },
14
+ ios: {
15
+ appDelegate: 'e2e/ios/AppDelegate.m',
16
+ },
17
+ dependencies: [
18
+ {
19
+ name: 'expo',
20
+ path: '../expo',
21
+ },
22
+ {
23
+ name: 'expo-modules-core',
24
+ path: '../expo-modules-core',
25
+ },
26
+ {
27
+ name: 'expo-modules-autolinking',
28
+ path: '../expo-modules-autolinking',
29
+ },
30
+ {
31
+ name: 'expo-dev-client',
32
+ path: '../expo-dev-client',
33
+ },
34
+ {
35
+ name: 'expo-dev-launcher',
36
+ path: '../expo-dev-launcher',
37
+ },
38
+ {
39
+ name: 'expo-dev-menu',
40
+ path: '../expo-dev-menu',
41
+ },
42
+ {
43
+ name: 'expo-dev-menu-interface',
44
+ path: '../expo-dev-menu-interface',
45
+ },
46
+ {
47
+ name: 'expo-manifests',
48
+ path: '../expo-manifests',
49
+ },
50
+ {
51
+ name: 'expo-updates-interface',
52
+ path: '../expo-updates-interface',
53
+ },
54
+ ],
55
+ additionalFiles: ['e2e'],
56
+ tests: {
57
+ e2e: {
58
+ shouldRunBundler: true,
59
+ configurations: ['ios', 'android'],
60
+ },
61
+ },
62
+ },
63
+ },
64
+ };
@@ -1,31 +0,0 @@
1
- import React from 'react';
2
- import { AppRegistry, View, StyleSheet, Text } from 'react-native';
3
-
4
- const app = () => (
5
- <View style={styles.container}>
6
- <Text testID="BundledAppMainScreen">BundledAppMainScreen</Text>
7
- </View>
8
- );
9
-
10
- AppRegistry.registerComponent('main', () => app);
11
-
12
- const styles = StyleSheet.create({
13
- container: {
14
- flex: 1,
15
- backgroundColor: '#fff',
16
- alignItems: 'center',
17
- justifyContent: 'center',
18
- },
19
- buttonContainer: {
20
- backgroundColor: '#4630eb',
21
- borderRadius: 4,
22
- padding: 12,
23
- marginVertical: 10,
24
- justifyContent: 'center',
25
- alignItems: 'center',
26
- },
27
- buttonText: {
28
- color: '#ffffff',
29
- fontSize: 16,
30
- },
31
- });
@@ -1,9 +0,0 @@
1
- #!/bin/bash
2
-
3
- # Android
4
-
5
- npx react-native bundle \
6
- --platform android \
7
- --dev false \
8
- --entry-file tests/instrumented/app/index.js \
9
- --bundle-output android/src/androidTest/assets/bundled_app.bundle