@expo/fingerprint 0.0.1 → 0.0.2
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.
- package/e2e/__tests__/__snapshots__/managed-test.ts.snap +60 -60
- package/e2e/__tests__/managed-test.ts +9 -9
- package/e2e/jest.config.js +1 -0
- package/package.json +8 -8
- package/src/__tests__/Fingerprint-test.ts +13 -13
- package/src/hash/__tests__/Hash-test.ts +6 -6
- package/src/sourcer/__tests__/__snapshots__/Bare-test.ts.snap +9 -9
- package/src/sourcer/__tests__/__snapshots__/Expo-test.ts.snap +40 -40
|
@@ -1,197 +1,197 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`getHashSourcesAsync - managed project should match snapshot 1`] = `
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
[
|
|
5
|
+
{
|
|
6
6
|
"filePath": "node_modules/expo/android",
|
|
7
|
-
"reasons":
|
|
7
|
+
"reasons": [
|
|
8
8
|
"expoAutolinkingAndroid",
|
|
9
9
|
],
|
|
10
10
|
"type": "dir",
|
|
11
11
|
},
|
|
12
|
-
|
|
12
|
+
{
|
|
13
13
|
"filePath": "node_modules/expo-application/android",
|
|
14
|
-
"reasons":
|
|
14
|
+
"reasons": [
|
|
15
15
|
"expoAutolinkingAndroid",
|
|
16
16
|
],
|
|
17
17
|
"type": "dir",
|
|
18
18
|
},
|
|
19
|
-
|
|
19
|
+
{
|
|
20
20
|
"filePath": "node_modules/expo-constants/android",
|
|
21
|
-
"reasons":
|
|
21
|
+
"reasons": [
|
|
22
22
|
"expoAutolinkingAndroid",
|
|
23
23
|
],
|
|
24
24
|
"type": "dir",
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
{
|
|
27
27
|
"filePath": "node_modules/expo-error-recovery/android",
|
|
28
|
-
"reasons":
|
|
28
|
+
"reasons": [
|
|
29
29
|
"expoAutolinkingAndroid",
|
|
30
30
|
],
|
|
31
31
|
"type": "dir",
|
|
32
32
|
},
|
|
33
|
-
|
|
33
|
+
{
|
|
34
34
|
"filePath": "node_modules/expo-file-system/android",
|
|
35
|
-
"reasons":
|
|
35
|
+
"reasons": [
|
|
36
36
|
"expoAutolinkingAndroid",
|
|
37
37
|
],
|
|
38
38
|
"type": "dir",
|
|
39
39
|
},
|
|
40
|
-
|
|
40
|
+
{
|
|
41
41
|
"filePath": "node_modules/expo-font/android",
|
|
42
|
-
"reasons":
|
|
42
|
+
"reasons": [
|
|
43
43
|
"expoAutolinkingAndroid",
|
|
44
44
|
],
|
|
45
45
|
"type": "dir",
|
|
46
46
|
},
|
|
47
|
-
|
|
47
|
+
{
|
|
48
48
|
"filePath": "node_modules/expo-keep-awake/android",
|
|
49
|
-
"reasons":
|
|
49
|
+
"reasons": [
|
|
50
50
|
"expoAutolinkingAndroid",
|
|
51
51
|
],
|
|
52
52
|
"type": "dir",
|
|
53
53
|
},
|
|
54
|
-
|
|
54
|
+
{
|
|
55
55
|
"filePath": "node_modules/expo-modules-core/android",
|
|
56
|
-
"reasons":
|
|
56
|
+
"reasons": [
|
|
57
57
|
"expoAutolinkingAndroid",
|
|
58
58
|
],
|
|
59
59
|
"type": "dir",
|
|
60
60
|
},
|
|
61
|
-
|
|
62
|
-
"contents": "{
|
|
61
|
+
{
|
|
62
|
+
"contents": "{"modules":[{"packageName":"expo","packageVersion":"47.0.8","projects":[{"name":"expo","sourceDir":"node_modules/expo/android"}],"modules":[]},{"packageName":"expo-application","packageVersion":"5.0.1","projects":[{"name":"expo-application","sourceDir":"node_modules/expo-application/android"}],"modules":[]},{"packageName":"expo-constants","packageVersion":"14.0.2","projects":[{"name":"expo-constants","sourceDir":"node_modules/expo-constants/android"}],"modules":[]},{"packageName":"expo-error-recovery","packageVersion":"4.0.1","projects":[{"name":"expo-error-recovery","sourceDir":"node_modules/expo-error-recovery/android"}],"modules":[]},{"packageName":"expo-file-system","packageVersion":"15.1.1","projects":[{"name":"expo-file-system","sourceDir":"node_modules/expo-file-system/android"}],"modules":[]},{"packageName":"expo-font","packageVersion":"11.0.1","projects":[{"name":"expo-font","sourceDir":"node_modules/expo-font/android"}],"modules":[]},{"packageName":"expo-keep-awake","packageVersion":"11.0.1","projects":[{"name":"expo-keep-awake","sourceDir":"node_modules/expo-keep-awake/android"}],"modules":[]},{"packageName":"expo-modules-core","packageVersion":"1.0.3","projects":[{"name":"expo-modules-core","sourceDir":"node_modules/expo-modules-core/android"}],"modules":[]}]}",
|
|
63
63
|
"id": "expoAutolinkingConfig:android",
|
|
64
|
-
"reasons":
|
|
64
|
+
"reasons": [
|
|
65
65
|
"expoAutolinkingAndroid",
|
|
66
66
|
],
|
|
67
67
|
"type": "contents",
|
|
68
68
|
},
|
|
69
|
-
|
|
69
|
+
{
|
|
70
70
|
"filePath": "node_modules/expo",
|
|
71
|
-
"reasons":
|
|
71
|
+
"reasons": [
|
|
72
72
|
"expoAutolinkingIos",
|
|
73
73
|
],
|
|
74
74
|
"type": "dir",
|
|
75
75
|
},
|
|
76
|
-
|
|
76
|
+
{
|
|
77
77
|
"filePath": "node_modules/expo-application/ios",
|
|
78
|
-
"reasons":
|
|
78
|
+
"reasons": [
|
|
79
79
|
"expoAutolinkingIos",
|
|
80
80
|
],
|
|
81
81
|
"type": "dir",
|
|
82
82
|
},
|
|
83
|
-
|
|
83
|
+
{
|
|
84
84
|
"filePath": "node_modules/expo-constants/ios",
|
|
85
|
-
"reasons":
|
|
85
|
+
"reasons": [
|
|
86
86
|
"expoAutolinkingIos",
|
|
87
87
|
],
|
|
88
88
|
"type": "dir",
|
|
89
89
|
},
|
|
90
|
-
|
|
90
|
+
{
|
|
91
91
|
"filePath": "node_modules/expo-error-recovery/ios",
|
|
92
|
-
"reasons":
|
|
92
|
+
"reasons": [
|
|
93
93
|
"expoAutolinkingIos",
|
|
94
94
|
],
|
|
95
95
|
"type": "dir",
|
|
96
96
|
},
|
|
97
|
-
|
|
97
|
+
{
|
|
98
98
|
"filePath": "node_modules/expo-file-system/ios",
|
|
99
|
-
"reasons":
|
|
99
|
+
"reasons": [
|
|
100
100
|
"expoAutolinkingIos",
|
|
101
101
|
],
|
|
102
102
|
"type": "dir",
|
|
103
103
|
},
|
|
104
|
-
|
|
104
|
+
{
|
|
105
105
|
"filePath": "node_modules/expo-font/ios",
|
|
106
|
-
"reasons":
|
|
106
|
+
"reasons": [
|
|
107
107
|
"expoAutolinkingIos",
|
|
108
108
|
],
|
|
109
109
|
"type": "dir",
|
|
110
110
|
},
|
|
111
|
-
|
|
111
|
+
{
|
|
112
112
|
"filePath": "node_modules/expo-keep-awake/ios",
|
|
113
|
-
"reasons":
|
|
113
|
+
"reasons": [
|
|
114
114
|
"expoAutolinkingIos",
|
|
115
115
|
],
|
|
116
116
|
"type": "dir",
|
|
117
117
|
},
|
|
118
|
-
|
|
118
|
+
{
|
|
119
119
|
"filePath": "node_modules/expo-modules-core",
|
|
120
|
-
"reasons":
|
|
120
|
+
"reasons": [
|
|
121
121
|
"expoAutolinkingIos",
|
|
122
122
|
],
|
|
123
123
|
"type": "dir",
|
|
124
124
|
},
|
|
125
|
-
|
|
126
|
-
"contents": "{
|
|
125
|
+
{
|
|
126
|
+
"contents": "{"modules":[{"packageName":"expo","packageVersion":"47.0.8","pods":[{"podName":"Expo","podspecDir":"node_modules/expo"}],"swiftModuleNames":["Expo"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-application","packageVersion":"5.0.1","pods":[{"podName":"EXApplication","podspecDir":"node_modules/expo-application/ios"}],"swiftModuleNames":["EXApplication"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-constants","packageVersion":"14.0.2","pods":[{"podName":"EXConstants","podspecDir":"node_modules/expo-constants/ios"}],"swiftModuleNames":["EXConstants"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-error-recovery","packageVersion":"4.0.1","pods":[{"podName":"EXErrorRecovery","podspecDir":"node_modules/expo-error-recovery/ios"}],"swiftModuleNames":["EXErrorRecovery"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-file-system","packageVersion":"15.1.1","pods":[{"podName":"EXFileSystem","podspecDir":"node_modules/expo-file-system/ios"}],"swiftModuleNames":["EXFileSystem"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-font","packageVersion":"11.0.1","pods":[{"podName":"EXFont","podspecDir":"node_modules/expo-font/ios"}],"swiftModuleNames":["EXFont"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-keep-awake","packageVersion":"11.0.1","pods":[{"podName":"ExpoKeepAwake","podspecDir":"node_modules/expo-keep-awake/ios"}],"swiftModuleNames":["ExpoKeepAwake"],"modules":["KeepAwakeModule"],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-modules-core","packageVersion":"1.0.3","pods":[{"podName":"ExpoModulesCore","podspecDir":"node_modules/expo-modules-core"}],"swiftModuleNames":["ExpoModulesCore"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false}]}",
|
|
127
127
|
"id": "expoAutolinkingConfig:ios",
|
|
128
|
-
"reasons":
|
|
128
|
+
"reasons": [
|
|
129
129
|
"expoAutolinkingIos",
|
|
130
130
|
],
|
|
131
131
|
"type": "contents",
|
|
132
132
|
},
|
|
133
|
-
|
|
133
|
+
{
|
|
134
134
|
"filePath": "app.json",
|
|
135
|
-
"reasons":
|
|
135
|
+
"reasons": [
|
|
136
136
|
"expoConfig",
|
|
137
137
|
],
|
|
138
138
|
"type": "file",
|
|
139
139
|
},
|
|
140
|
-
|
|
140
|
+
{
|
|
141
141
|
"filePath": "./assets/icon.png",
|
|
142
|
-
"reasons":
|
|
142
|
+
"reasons": [
|
|
143
143
|
"expoConfigExternalFile",
|
|
144
144
|
],
|
|
145
145
|
"type": "file",
|
|
146
146
|
},
|
|
147
|
-
|
|
147
|
+
{
|
|
148
148
|
"filePath": "./assets/adaptive-icon.png",
|
|
149
|
-
"reasons":
|
|
149
|
+
"reasons": [
|
|
150
150
|
"expoConfigExternalFile",
|
|
151
151
|
],
|
|
152
152
|
"type": "file",
|
|
153
153
|
},
|
|
154
|
-
|
|
154
|
+
{
|
|
155
155
|
"filePath": "./assets/splash.png",
|
|
156
|
-
"reasons":
|
|
156
|
+
"reasons": [
|
|
157
157
|
"expoConfigExternalFile",
|
|
158
158
|
],
|
|
159
159
|
"type": "file",
|
|
160
160
|
},
|
|
161
|
-
|
|
161
|
+
{
|
|
162
162
|
"filePath": ".gitignore",
|
|
163
|
-
"reasons":
|
|
163
|
+
"reasons": [
|
|
164
164
|
"bareGitIgnore",
|
|
165
165
|
],
|
|
166
166
|
"type": "file",
|
|
167
167
|
},
|
|
168
|
-
|
|
169
|
-
"contents": "{
|
|
168
|
+
{
|
|
169
|
+
"contents": "{"start":"expo start","android":"expo start --android","ios":"expo start --ios","web":"expo start --web"}",
|
|
170
170
|
"id": "packageJson:scripts",
|
|
171
|
-
"reasons":
|
|
171
|
+
"reasons": [
|
|
172
172
|
"packageJson:scripts",
|
|
173
173
|
],
|
|
174
174
|
"type": "contents",
|
|
175
175
|
},
|
|
176
|
-
|
|
176
|
+
{
|
|
177
177
|
"filePath": "node_modules/expo",
|
|
178
|
-
"reasons":
|
|
178
|
+
"reasons": [
|
|
179
179
|
"bareRncliAutolinking",
|
|
180
180
|
],
|
|
181
181
|
"type": "dir",
|
|
182
182
|
},
|
|
183
|
-
|
|
184
|
-
"contents": "{
|
|
183
|
+
{
|
|
184
|
+
"contents": "{"sourceDir":"node_modules/expo/android","packageImportPath":"import expo.modules.ExpoModulesPackage;","packageInstance":"new ExpoModulesPackage()","buildTypes":[],"componentDescriptors":[],"androidMkPath":"node_modules/expo/android/build/generated/source/codegen/jni/Android.mk","cmakeListsPath":"node_modules/expo/android/build/generated/source/codegen/jni/CMakeLists.txt"}",
|
|
185
185
|
"id": "rncliAutolinkingConfig:expo:android",
|
|
186
|
-
"reasons":
|
|
186
|
+
"reasons": [
|
|
187
187
|
"bareRncliAutolinking",
|
|
188
188
|
],
|
|
189
189
|
"type": "contents",
|
|
190
190
|
},
|
|
191
|
-
|
|
192
|
-
"contents": "{
|
|
191
|
+
{
|
|
192
|
+
"contents": "{"podspecPath":"node_modules/expo/Expo.podspec","configurations":[],"scriptPhases":[]}",
|
|
193
193
|
"id": "rncliAutolinkingConfig:expo:ios",
|
|
194
|
-
"reasons":
|
|
194
|
+
"reasons": [
|
|
195
195
|
"bareRncliAutolinking",
|
|
196
196
|
],
|
|
197
197
|
"type": "contents",
|
|
@@ -100,29 +100,29 @@ describe('managed project test', () => {
|
|
|
100
100
|
});
|
|
101
101
|
const diff = await diffFingerprintChangesAsync(fingerprint, projectRoot);
|
|
102
102
|
expect(diff).toMatchInlineSnapshot(`
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
[
|
|
104
|
+
{
|
|
105
105
|
"filePath": "node_modules/@react-native-community/netinfo",
|
|
106
106
|
"hash": "9864bf3bf95283fe99774aaeec91965d70f3eab3",
|
|
107
|
-
"reasons":
|
|
107
|
+
"reasons": [
|
|
108
108
|
"bareRncliAutolinking",
|
|
109
109
|
],
|
|
110
110
|
"type": "dir",
|
|
111
111
|
},
|
|
112
|
-
|
|
113
|
-
"contents": "{
|
|
112
|
+
{
|
|
113
|
+
"contents": "{"sourceDir":"node_modules/@react-native-community/netinfo/android","packageImportPath":"import com.reactnativecommunity.netinfo.NetInfoPackage;","packageInstance":"new NetInfoPackage()","buildTypes":[],"componentDescriptors":[],"androidMkPath":"node_modules/@react-native-community/netinfo/android/build/generated/source/codegen/jni/Android.mk","cmakeListsPath":"node_modules/@react-native-community/netinfo/android/build/generated/source/codegen/jni/CMakeLists.txt"}",
|
|
114
114
|
"hash": "cb4dfbb38f9151ecd6621bc9e36055540495c463",
|
|
115
115
|
"id": "rncliAutolinkingConfig:@react-native-community/netinfo:android",
|
|
116
|
-
"reasons":
|
|
116
|
+
"reasons": [
|
|
117
117
|
"bareRncliAutolinking",
|
|
118
118
|
],
|
|
119
119
|
"type": "contents",
|
|
120
120
|
},
|
|
121
|
-
|
|
122
|
-
"contents": "{
|
|
121
|
+
{
|
|
122
|
+
"contents": "{"podspecPath":"node_modules/@react-native-community/netinfo/react-native-netinfo.podspec","configurations":[],"scriptPhases":[]}",
|
|
123
123
|
"hash": "40eebce5caf94df11096238a5a2ca648ea9f242e",
|
|
124
124
|
"id": "rncliAutolinkingConfig:@react-native-community/netinfo:ios",
|
|
125
|
-
"reasons":
|
|
125
|
+
"reasons": [
|
|
126
126
|
"bareRncliAutolinking",
|
|
127
127
|
],
|
|
128
128
|
"type": "contents",
|
package/e2e/jest.config.js
CHANGED
|
@@ -2,6 +2,7 @@ const path = require('path');
|
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
testEnvironment: 'node',
|
|
5
|
+
preset: 'ts-jest',
|
|
5
6
|
testRegex: '/__tests__/.*(test|spec)\\.[jt]sx?$',
|
|
6
7
|
watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
|
|
7
8
|
rootDir: path.resolve(__dirname),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/fingerprint",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "A library to generate a fingerprint from a React Native project",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -45,26 +45,26 @@
|
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/find-up": "^4.0.0",
|
|
48
|
-
"@types/jest": "^
|
|
48
|
+
"@types/jest": "^29.2.1",
|
|
49
49
|
"@types/rimraf": "^3.0.0",
|
|
50
|
-
"eslint": "^8.
|
|
50
|
+
"eslint": "^8.29.0",
|
|
51
51
|
"eslint-config-universe": "^11.1.0",
|
|
52
|
-
"expo": "^
|
|
52
|
+
"expo": "^48.0.0-beta.0",
|
|
53
53
|
"glob": "^7.1.7",
|
|
54
|
-
"jest": "^
|
|
55
|
-
"jest-watch-typeahead": "
|
|
54
|
+
"jest": "^29.2.1",
|
|
55
|
+
"jest-watch-typeahead": "2.2.1",
|
|
56
56
|
"memfs": "^3.4.12",
|
|
57
57
|
"rimraf": "^3.0.2",
|
|
58
58
|
"temp-dir": "^2.0.0",
|
|
59
59
|
"typescript": "^4.3.5"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"expo": "
|
|
62
|
+
"expo": "48.0.0-beta.0"
|
|
63
63
|
},
|
|
64
64
|
"peerDependenciesMeta": {
|
|
65
65
|
"expo": {
|
|
66
66
|
"optional": true
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "1815e2eaad8c753588c7b1eb74420174a28e01f4"
|
|
70
70
|
}
|
|
@@ -28,11 +28,11 @@ describe(diffFingerprintChangesAsync, () => {
|
|
|
28
28
|
|
|
29
29
|
const diff = await diffFingerprintChangesAsync(fingerprint, '/app', normalizeOptions());
|
|
30
30
|
expect(diff).toMatchInlineSnapshot(`
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
[
|
|
32
|
+
{
|
|
33
33
|
"filePath": "app.json",
|
|
34
34
|
"hash": "1fd2d92d50dc1da96b41795046b9ea4e30dd2b48",
|
|
35
|
-
"reasons":
|
|
35
|
+
"reasons": [
|
|
36
36
|
"expoConfig",
|
|
37
37
|
],
|
|
38
38
|
"type": "file",
|
|
@@ -60,12 +60,12 @@ describe(diffFingerprintChangesAsync, () => {
|
|
|
60
60
|
diff = await diffFingerprintChangesAsync(fingerprint, '/app', normalizeOptions());
|
|
61
61
|
jest.dontMock('/app/package.json');
|
|
62
62
|
expect(diff).toMatchInlineSnapshot(`
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"contents": "{
|
|
63
|
+
[
|
|
64
|
+
{
|
|
65
|
+
"contents": "{"start":"expo start","android":"expo start --android","ios":"expo start --ios","web":"expo start --web","postinstall":"echo \\"hello\\""}",
|
|
66
66
|
"hash": "47f4d7bae018eb17440153f09977113501eace30",
|
|
67
67
|
"id": "packageJson:scripts",
|
|
68
|
-
"reasons":
|
|
68
|
+
"reasons": [
|
|
69
69
|
"packageJson:scripts",
|
|
70
70
|
],
|
|
71
71
|
"type": "contents",
|
|
@@ -82,11 +82,11 @@ describe(diffFingerprintChangesAsync, () => {
|
|
|
82
82
|
vol.writeFileSync('/app/app.json', JSON.stringify(config, null, 2));
|
|
83
83
|
const diff = await diffFingerprintChangesAsync(fingerprint, '/app', normalizeOptions());
|
|
84
84
|
expect(diff).toMatchInlineSnapshot(`
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
[
|
|
86
|
+
{
|
|
87
87
|
"filePath": "app.json",
|
|
88
88
|
"hash": "9ff1b51ca9b9435e8b849bcc82e3900d70f0feee",
|
|
89
|
-
"reasons":
|
|
89
|
+
"reasons": [
|
|
90
90
|
"expoConfig",
|
|
91
91
|
],
|
|
92
92
|
"type": "file",
|
|
@@ -101,11 +101,11 @@ describe(diffFingerprintChangesAsync, () => {
|
|
|
101
101
|
vol.writeFileSync('/app/ios/README.md', '# Adding new file in ios dir');
|
|
102
102
|
const diff = await diffFingerprintChangesAsync(fingerprint, '/app', normalizeOptions());
|
|
103
103
|
expect(diff).toMatchInlineSnapshot(`
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
[
|
|
105
|
+
{
|
|
106
106
|
"filePath": "ios",
|
|
107
107
|
"hash": "e4190c0af9142fe4add4842777d9aec713213cd4",
|
|
108
|
-
"reasons":
|
|
108
|
+
"reasons": [
|
|
109
109
|
"bareNativeDir",
|
|
110
110
|
],
|
|
111
111
|
"type": "dir",
|
|
@@ -33,22 +33,22 @@ describe(createFingerprintFromSourcesAsync, () => {
|
|
|
33
33
|
|
|
34
34
|
expect(await createFingerprintFromSourcesAsync(sources, '/app', normalizeOptions()))
|
|
35
35
|
.toMatchInlineSnapshot(`
|
|
36
|
-
|
|
36
|
+
{
|
|
37
37
|
"hash": "ec7d81780f735d5e289b27cdcc04a6c99d2621dc",
|
|
38
|
-
"sources":
|
|
39
|
-
|
|
38
|
+
"sources": [
|
|
39
|
+
{
|
|
40
40
|
"contents": "HelloWorld",
|
|
41
41
|
"hash": "db8ac1c259eb89d4a131b253bacfca5f319d54f2",
|
|
42
42
|
"id": "foo",
|
|
43
|
-
"reasons":
|
|
43
|
+
"reasons": [
|
|
44
44
|
"foo",
|
|
45
45
|
],
|
|
46
46
|
"type": "contents",
|
|
47
47
|
},
|
|
48
|
-
|
|
48
|
+
{
|
|
49
49
|
"filePath": "app.json",
|
|
50
50
|
"hash": "bf21a9e8fbc5a3846fb05b4fa0859e0917b2202f",
|
|
51
|
-
"reasons":
|
|
51
|
+
"reasons": [
|
|
52
52
|
"expoConfig",
|
|
53
53
|
],
|
|
54
54
|
"type": "file",
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`getRncliAutolinkingSourcesAsync should contain rn-cli autolinking projects 1`] = `
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
[
|
|
5
|
+
{
|
|
6
6
|
"filePath": "node_modules/react-native-reanimated",
|
|
7
|
-
"reasons":
|
|
7
|
+
"reasons": [
|
|
8
8
|
"bareRncliAutolinking",
|
|
9
9
|
],
|
|
10
10
|
"type": "dir",
|
|
11
11
|
},
|
|
12
|
-
|
|
13
|
-
"contents": "{
|
|
12
|
+
{
|
|
13
|
+
"contents": "{"sourceDir":"node_modules/react-native-reanimated/android","packageImportPath":"import com.swmansion.reanimated.ReanimatedPackage;","packageInstance":"new ReanimatedPackage()","buildTypes":[],"componentDescriptors":[],"androidMkPath":"node_modules/react-native-reanimated/android/build/generated/source/codegen/jni/Android.mk","cmakeListsPath":"node_modules/react-native-reanimated/android/build/generated/source/codegen/jni/CMakeLists.txt"}",
|
|
14
14
|
"id": "rncliAutolinkingConfig:react-native-reanimated:android",
|
|
15
|
-
"reasons":
|
|
15
|
+
"reasons": [
|
|
16
16
|
"bareRncliAutolinking",
|
|
17
17
|
],
|
|
18
18
|
"type": "contents",
|
|
19
19
|
},
|
|
20
|
-
|
|
21
|
-
"contents": "{
|
|
20
|
+
{
|
|
21
|
+
"contents": "{"podspecPath":"node_modules/react-native-reanimated/RNReanimated.podspec","configurations":[],"scriptPhases":[]}",
|
|
22
22
|
"id": "rncliAutolinkingConfig:react-native-reanimated:ios",
|
|
23
|
-
"reasons":
|
|
23
|
+
"reasons": [
|
|
24
24
|
"bareRncliAutolinking",
|
|
25
25
|
],
|
|
26
26
|
"type": "contents",
|
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`getExpoAutolinkingSourcesAsync should contain expo autolinking projects 1`] = `
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
[
|
|
5
|
+
{
|
|
6
6
|
"filePath": "node_modules/expo/android",
|
|
7
|
-
"reasons":
|
|
7
|
+
"reasons": [
|
|
8
8
|
"expoAutolinkingAndroid",
|
|
9
9
|
],
|
|
10
10
|
"type": "dir",
|
|
11
11
|
},
|
|
12
|
-
|
|
12
|
+
{
|
|
13
13
|
"filePath": "node_modules/expo-application/android",
|
|
14
|
-
"reasons":
|
|
14
|
+
"reasons": [
|
|
15
15
|
"expoAutolinkingAndroid",
|
|
16
16
|
],
|
|
17
17
|
"type": "dir",
|
|
18
18
|
},
|
|
19
|
-
|
|
19
|
+
{
|
|
20
20
|
"filePath": "node_modules/expo-constants/android",
|
|
21
|
-
"reasons":
|
|
21
|
+
"reasons": [
|
|
22
22
|
"expoAutolinkingAndroid",
|
|
23
23
|
],
|
|
24
24
|
"type": "dir",
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
{
|
|
27
27
|
"filePath": "node_modules/expo-error-recovery/android",
|
|
28
|
-
"reasons":
|
|
28
|
+
"reasons": [
|
|
29
29
|
"expoAutolinkingAndroid",
|
|
30
30
|
],
|
|
31
31
|
"type": "dir",
|
|
32
32
|
},
|
|
33
|
-
|
|
33
|
+
{
|
|
34
34
|
"filePath": "node_modules/expo-file-system/android",
|
|
35
|
-
"reasons":
|
|
35
|
+
"reasons": [
|
|
36
36
|
"expoAutolinkingAndroid",
|
|
37
37
|
],
|
|
38
38
|
"type": "dir",
|
|
39
39
|
},
|
|
40
|
-
|
|
40
|
+
{
|
|
41
41
|
"filePath": "node_modules/expo-font/android",
|
|
42
|
-
"reasons":
|
|
42
|
+
"reasons": [
|
|
43
43
|
"expoAutolinkingAndroid",
|
|
44
44
|
],
|
|
45
45
|
"type": "dir",
|
|
46
46
|
},
|
|
47
|
-
|
|
47
|
+
{
|
|
48
48
|
"filePath": "node_modules/expo-keep-awake/android",
|
|
49
|
-
"reasons":
|
|
49
|
+
"reasons": [
|
|
50
50
|
"expoAutolinkingAndroid",
|
|
51
51
|
],
|
|
52
52
|
"type": "dir",
|
|
53
53
|
},
|
|
54
|
-
|
|
54
|
+
{
|
|
55
55
|
"filePath": "node_modules/expo-modules-core/android",
|
|
56
|
-
"reasons":
|
|
56
|
+
"reasons": [
|
|
57
57
|
"expoAutolinkingAndroid",
|
|
58
58
|
],
|
|
59
59
|
"type": "dir",
|
|
60
60
|
},
|
|
61
|
-
|
|
62
|
-
"contents": "{
|
|
61
|
+
{
|
|
62
|
+
"contents": "{"modules":[{"packageName":"expo","packageVersion":"47.0.3","projects":[{"name":"expo","sourceDir":"node_modules/expo/android"}],"modules":[]},{"packageName":"expo-application","packageVersion":"5.0.1","projects":[{"name":"expo-application","sourceDir":"node_modules/expo-application/android"}],"modules":[]},{"packageName":"expo-constants","packageVersion":"14.0.2","projects":[{"name":"expo-constants","sourceDir":"node_modules/expo-constants/android"}],"modules":[]},{"packageName":"expo-error-recovery","packageVersion":"4.0.1","projects":[{"name":"expo-error-recovery","sourceDir":"node_modules/expo-error-recovery/android"}],"modules":[]},{"packageName":"expo-file-system","packageVersion":"15.1.1","projects":[{"name":"expo-file-system","sourceDir":"node_modules/expo-file-system/android"}],"modules":[]},{"packageName":"expo-font","packageVersion":"11.0.1","projects":[{"name":"expo-font","sourceDir":"node_modules/expo-font/android"}],"modules":[]},{"packageName":"expo-keep-awake","packageVersion":"11.0.1","projects":[{"name":"expo-keep-awake","sourceDir":"node_modules/expo-keep-awake/android"}],"modules":[]},{"packageName":"expo-modules-core","packageVersion":"1.0.2","projects":[{"name":"expo-modules-core","sourceDir":"node_modules/expo-modules-core/android"}],"modules":[]}]}",
|
|
63
63
|
"id": "expoAutolinkingConfig:android",
|
|
64
|
-
"reasons":
|
|
64
|
+
"reasons": [
|
|
65
65
|
"expoAutolinkingAndroid",
|
|
66
66
|
],
|
|
67
67
|
"type": "contents",
|
|
@@ -70,67 +70,67 @@ Array [
|
|
|
70
70
|
`;
|
|
71
71
|
|
|
72
72
|
exports[`getExpoAutolinkingSourcesAsync should contain expo autolinking projects 2`] = `
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
[
|
|
74
|
+
{
|
|
75
75
|
"filePath": "node_modules/expo",
|
|
76
|
-
"reasons":
|
|
76
|
+
"reasons": [
|
|
77
77
|
"expoAutolinkingIos",
|
|
78
78
|
],
|
|
79
79
|
"type": "dir",
|
|
80
80
|
},
|
|
81
|
-
|
|
81
|
+
{
|
|
82
82
|
"filePath": "node_modules/expo-application/ios",
|
|
83
|
-
"reasons":
|
|
83
|
+
"reasons": [
|
|
84
84
|
"expoAutolinkingIos",
|
|
85
85
|
],
|
|
86
86
|
"type": "dir",
|
|
87
87
|
},
|
|
88
|
-
|
|
88
|
+
{
|
|
89
89
|
"filePath": "node_modules/expo-constants/ios",
|
|
90
|
-
"reasons":
|
|
90
|
+
"reasons": [
|
|
91
91
|
"expoAutolinkingIos",
|
|
92
92
|
],
|
|
93
93
|
"type": "dir",
|
|
94
94
|
},
|
|
95
|
-
|
|
95
|
+
{
|
|
96
96
|
"filePath": "node_modules/expo-error-recovery/ios",
|
|
97
|
-
"reasons":
|
|
97
|
+
"reasons": [
|
|
98
98
|
"expoAutolinkingIos",
|
|
99
99
|
],
|
|
100
100
|
"type": "dir",
|
|
101
101
|
},
|
|
102
|
-
|
|
102
|
+
{
|
|
103
103
|
"filePath": "node_modules/expo-file-system/ios",
|
|
104
|
-
"reasons":
|
|
104
|
+
"reasons": [
|
|
105
105
|
"expoAutolinkingIos",
|
|
106
106
|
],
|
|
107
107
|
"type": "dir",
|
|
108
108
|
},
|
|
109
|
-
|
|
109
|
+
{
|
|
110
110
|
"filePath": "node_modules/expo-font/ios",
|
|
111
|
-
"reasons":
|
|
111
|
+
"reasons": [
|
|
112
112
|
"expoAutolinkingIos",
|
|
113
113
|
],
|
|
114
114
|
"type": "dir",
|
|
115
115
|
},
|
|
116
|
-
|
|
116
|
+
{
|
|
117
117
|
"filePath": "node_modules/expo-keep-awake/ios",
|
|
118
|
-
"reasons":
|
|
118
|
+
"reasons": [
|
|
119
119
|
"expoAutolinkingIos",
|
|
120
120
|
],
|
|
121
121
|
"type": "dir",
|
|
122
122
|
},
|
|
123
|
-
|
|
123
|
+
{
|
|
124
124
|
"filePath": "node_modules/expo-modules-core",
|
|
125
|
-
"reasons":
|
|
125
|
+
"reasons": [
|
|
126
126
|
"expoAutolinkingIos",
|
|
127
127
|
],
|
|
128
128
|
"type": "dir",
|
|
129
129
|
},
|
|
130
|
-
|
|
131
|
-
"contents": "{
|
|
130
|
+
{
|
|
131
|
+
"contents": "{"modules":[{"packageName":"expo","packageVersion":"47.0.3","pods":[{"podName":"Expo","podspecDir":"node_modules/expo"}],"swiftModuleNames":["Expo"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-application","packageVersion":"5.0.1","pods":[{"podName":"EXApplication","podspecDir":"node_modules/expo-application/ios"}],"swiftModuleNames":["EXApplication"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-constants","packageVersion":"14.0.2","pods":[{"podName":"EXConstants","podspecDir":"node_modules/expo-constants/ios"}],"swiftModuleNames":["EXConstants"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-error-recovery","packageVersion":"4.0.1","pods":[{"podName":"EXErrorRecovery","podspecDir":"node_modules/expo-error-recovery/ios"}],"swiftModuleNames":["EXErrorRecovery"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-file-system","packageVersion":"15.1.1","pods":[{"podName":"EXFileSystem","podspecDir":"node_modules/expo-file-system/ios"}],"swiftModuleNames":["EXFileSystem"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-font","packageVersion":"11.0.1","pods":[{"podName":"EXFont","podspecDir":"node_modules/expo-font/ios"}],"swiftModuleNames":["EXFont"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-keep-awake","packageVersion":"11.0.1","pods":[{"podName":"ExpoKeepAwake","podspecDir":"node_modules/expo-keep-awake/ios"}],"swiftModuleNames":["ExpoKeepAwake"],"modules":["KeepAwakeModule"],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-modules-core","packageVersion":"1.0.2","pods":[{"podName":"ExpoModulesCore","podspecDir":"node_modules/expo-modules-core"}],"swiftModuleNames":["ExpoModulesCore"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false}]}",
|
|
132
132
|
"id": "expoAutolinkingConfig:ios",
|
|
133
|
-
"reasons":
|
|
133
|
+
"reasons": [
|
|
134
134
|
"expoAutolinkingIos",
|
|
135
135
|
],
|
|
136
136
|
"type": "contents",
|