| /expo/packages/@expo/fingerprint/src/__tests__/ |
| H A D | Dedup-test.ts | 9 filePath: 'android', 14 filePath: 'android/app', 22 filePath: 'android', 37 filePath: 'android', 45 filePath: 'android', 60 filePath: 'android', 68 filePath: 'android', 78 filePath: 'android', 91 filePath: 'android', 135 filePath: 'android', [all …]
|
| H A D | Sort-test.ts | 8 { type: 'file', filePath: '/app/app.json', reasons: ['expoConfig'] }, 9 { type: 'dir', filePath: '/app/ios', reasons: ['bareNativeDir'] }, 13 { type: 'file', filePath: '/app/app.json', reasons: ['expoConfig'] }, 14 { type: 'dir', filePath: '/app/ios', reasons: ['bareNativeDir'] }, 21 { type: 'file', filePath: '/app/eas.json', reasons: ['easBuild'] }, 23 { type: 'dir', filePath: '/app/ios', reasons: ['bareNativeDir'] }, 24 { type: 'file', filePath: '/app/app.json', reasons: ['expoConfig'] }, 26 { type: 'dir', filePath: '/app/android', reasons: ['bareNativeDir'] }, 30 { type: 'file', filePath: '/app/app.json', reasons: ['expoConfig'] }, 31 { type: 'file', filePath: '/app/eas.json', reasons: ['easBuild'] }, [all …]
|
| /expo/packages/@expo/config-plugins/src/plugins/ |
| H A D | withAndroidBaseMods.ts | 121 async read(filePath, config) { 144 async read(filePath, config) { 175 async read(filePath, config) { 234 async read(filePath, config) { 263 async read(filePath, config) { 269 path: filePath, 297 async read(filePath) { 309 async read(filePath) { 321 async read(filePath) { 333 async read(filePath) { [all …]
|
| H A D | withIosBaseMods.ts | 71 async read(filePath) { 72 return Paths.getFileInfo(filePath); 75 await writeFile(filePath, contents); 107 async read(filePath) { 108 const project = xcode.project(filePath); 112 async write(filePath, { modResults }) { 162 async read(filePath, config) { 189 async write(filePath, config) { 221 async read(filePath, config) { 253 async write(filePath, config) { [all …]
|
| /expo/packages/@expo/config-plugins/build/plugins/ |
| H A D | withAndroidBaseMods.js | 146 filePath: '', 172 async write(filePath, { argument 233 path: filePath 252 path: filePath, 274 async read(filePath, { argument 281 path: filePath 300 path: filePath, 327 path: filePath 346 path: filePath, 376 path: filePath, [all …]
|
| H A D | withIosBaseMods.js | 163 async read(filePath) { argument 166 async write(filePath, { argument 186 async read(filePath, { argument 200 async write(filePath, { argument 221 async read(filePath) { argument 226 async write(filePath, { argument 273 async read(filePath, config) { argument 297 async write(filePath, config) { argument 327 async read(filePath, config) { argument 380 async read(filePath) { argument [all …]
|
| /expo/packages/@expo/config-plugins/src/android/ |
| H A D | Paths.ts | 20 const filePath = globSync( constant 24 filePath, 28 return filePath; 32 const extension = path.extname(filePath); 49 path: path.normalize(filePath), 51 language: getLanguage(filePath) as any, 59 return getFileInfo(filePath); 64 return getFileInfo(filePath); 78 return filePath; 116 return filePath; [all …]
|
| /expo/packages/@expo/cli/src/start/server/metro/ |
| H A D | waitForMetroToObserveTypeScriptFile.ts | 26 filePath: string; 39 event.filePath.startsWith(appDir) 41 const { filePath } = event; constant 42 callback(filePath, event.type); 77 filePath: string; 91 const { filePath } = event; constant 95 /\.tsx?$/.test(filePath) || 97 filePath === tsconfigPath 133 filePath: string; 147 const { filePath } = event; constant [all …]
|
| H A D | metroWatchTypeScriptFiles.ts | 24 filePath: string; property 54 !/node_modules/.test(event.filePath) && 56 !/\.d\.ts$/.test(event.filePath) 58 const { filePath } = event; constant 62 /\.tsx?$/.test(filePath) || 64 (tsconfig && filePath === tsconfigPath) 66 debug('Detected TypeScript file changed in the project: ', filePath);
|
| /expo/packages/@expo/config-plugins/src/ios/ |
| H A D | XcodeProjectFile.ts | 18 filePath: string; 21 }> = (config, { filePath, contents, overwrite }) => { 29 filePath: path.join(projectName, filePath), 47 filePath, 53 filePath: string; 57 const absoluteFilePath = path.join(nativeProjectRoot, filePath); 64 const groupName = path.dirname(filePath); 67 if (!project.hasFile(filePath)) { 69 filepath: filePath,
|
| /expo/packages/@expo/config-plugins/build/android/ |
| H A D | Paths.js | 69 return filePath; 71 function getLanguage(filePath) { argument 72 const extension = path().extname(filePath); 86 function getFileInfo(filePath) { argument 88 path: path().normalize(filePath), 90 language: getLanguage(filePath) 95 return getFileInfo(filePath); 99 return getFileInfo(filePath); 110 return filePath; 140 return filePath; [all …]
|
| /expo/packages/@expo/cli/src/start/server/metro/__tests__/ |
| H A D | metroWatchTypeScriptFiles.test.ts | 46 filePath: '/foo.ts', 53 filePath: '/bar.ts', 64 for (const filePath of ['/foo.ts', '/bar/foo.tsx', '/app/tsconfig.json']) { constant 65 it(`invokes the callback only when when throttle is set: (${filePath})`, () => { 73 filePath, 80 filePath: '/foo.ts', 92 for (const filePath of [ constant 101 it(`skips non conforming files: (${filePath})`, () => { 109 filePath, 134 filePath: 'foo.tsx', [all …]
|
| /expo/ios/versioned-react-native/ABI48_0_0/ReactNative/scripts/ |
| H A D | scm-utils.js | 64 for (const filePath of filePaths) { 65 const dirName = path.dirname(filePath); 70 cp(filePath, `${tmpFolder}/${filePath}`); 75 for (const filePath of filePaths) { 76 const absoluteTmpPath = `${tmpFolder}/${filePath}`; 78 cp(absoluteTmpPath, filePath); 81 `It was not possible to revert ${filePath} since ${absoluteTmpPath} does not exist.`,
|
| /expo/packages/@expo/cli/src/prebuild/ |
| H A D | resolveTemplate.ts | 24 filePath: string; 61 const filePath = examplePath ? examplePath.replace(/^\//, '') : file.join('/'); constant 71 return { username, name, branch: info['default_branch'], filePath }; 76 ? `${_branch}/${file.join('/')}`.replace(new RegExp(`/${filePath}|/$`), '') 80 return { username, name, branch, filePath }; 85 function hasRepo({ username, name, branch, filePath }: RepoInfo) { 87 const packagePath = `${filePath ? `/${filePath}` : ''}/package.json`; 94 { username, name, branch, filePath }: RepoInfo 98 const strip = filePath ? filePath.split('/').length + 1 : 1; 106 fileList: [`${name}-${branch}${filePath ? `/${filePath}` : ''}`],
|
| /expo/packages/@expo/config-plugins/build/ios/ |
| H A D | XcodeProjectFile.js | 47 filePath, argument 57 filePath: _path().default.join(projectName, filePath), property 76 filePath, 80 const absoluteFilePath = _path().default.join(nativeProjectRoot, filePath); 87 const groupName = _path().default.dirname(filePath); 90 if (!project.hasFile(filePath)) { 92 filepath: filePath,
|
| /expo/packages/@expo/cli/src/start/server/type-generation/ |
| H A D | routes.ts | 48 async callback({ filePath, type }) { 49 if (!isRouteFile(filePath)) { 56 const route = filePathToRoute(filePath); 61 shouldRegenerate = addFilePath(filePath); 151 function normalizedFilePath(filePath: string) { 157 const filePathToRoute = (filePath: string) => { 158 return normalizedFilePath(filePath) 164 const isRouteFile = (filePath: string) => { 166 if (filePath.match(/_layout\.[tj]sx?$/) || filePath.match(/\/\+/)) { 176 if (!isRouteFile(filePath)) { [all …]
|
| /expo/packages/@expo/cli/src/utils/ |
| H A D | FileNotifier.ts | 39 const filePath = resolveFrom.silent(this.projectRoot, moduleId); constant 40 if (filePath) { 41 return filePath; 63 private startWatchingFile(filePath: string, callback?: (cur: any, prev: any) => void): string { 64 const configName = path.relative(this.projectRoot, filePath); 75 const watcher = watchFile(filePath, callback ?? listener); 81 return filePath;
|
| /expo/packages/expo-modules-core/ios/Swift/Logging/ |
| H A D | PersistentFileLog.swift | 33 private let filePath: String variable 39 …self.filePath = FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask).f… 98 if !FileManager.default.fileExists(atPath: filePath) { in ensureFileExists() 99 FileManager.default.createFile(atPath: filePath, contents: nil) in ensureFileExists() 106 … let attrs: [FileAttributeKey: Any?] = try FileManager.default.attributesOfItem(atPath: filePath) in getFileSize() 115 if let fileHandle = FileHandle(forWritingAtPath: filePath) { in appendTextToFile() 124 return try stringToList(String(contentsOfFile: filePath, encoding: .utf8)) in readFileSync() 132 try contents.joined(separator: "\n").write(toFile: filePath, atomically: true, encoding: .utf8) in writeFileSync() 136 if FileManager.default.fileExists(atPath: filePath) { in deleteFileSync() 137 try FileManager.default.removeItem(atPath: filePath) in deleteFileSync()
|
| /expo/ios/versioned/sdk48/ExpoModulesCore/ios/Swift/Logging/ |
| H A D | PersistentFileLog.swift | 33 private let filePath: String variable 39 …self.filePath = FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask).f… 98 if !FileManager.default.fileExists(atPath: filePath) { in ensureFileExists() 99 FileManager.default.createFile(atPath: filePath, contents: nil) in ensureFileExists() 106 … let attrs: [FileAttributeKey: Any?] = try FileManager.default.attributesOfItem(atPath: filePath) in getFileSize() 115 if let fileHandle = FileHandle(forWritingAtPath: filePath) { in appendTextToFile() 124 return try stringToList(String(contentsOfFile: filePath, encoding: .utf8)) in readFileSync() 132 try contents.joined(separator: "\n").write(toFile: filePath, atomically: true, encoding: .utf8) in writeFileSync() 136 if FileManager.default.fileExists(atPath: filePath) { in deleteFileSync() 137 try FileManager.default.removeItem(atPath: filePath) in deleteFileSync()
|
| /expo/ios/versioned/sdk49/ExpoModulesCore/ios/Swift/Logging/ |
| H A D | PersistentFileLog.swift | 33 private let filePath: String variable 39 …self.filePath = FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask).f… 98 if !FileManager.default.fileExists(atPath: filePath) { in ensureFileExists() 99 FileManager.default.createFile(atPath: filePath, contents: nil) in ensureFileExists() 106 … let attrs: [FileAttributeKey: Any?] = try FileManager.default.attributesOfItem(atPath: filePath) in getFileSize() 115 if let fileHandle = FileHandle(forWritingAtPath: filePath) { in appendTextToFile() 124 return try stringToList(String(contentsOfFile: filePath, encoding: .utf8)) in readFileSync() 132 try contents.joined(separator: "\n").write(toFile: filePath, atomically: true, encoding: .utf8) in writeFileSync() 136 if FileManager.default.fileExists(atPath: filePath) { in deleteFileSync() 137 try FileManager.default.removeItem(atPath: filePath) in deleteFileSync()
|
| /expo/ios/versioned/sdk47/ExpoModulesCore/ios/Swift/Logging/ |
| H A D | PersistentFileLog.swift | 33 private let filePath: String variable 39 …self.filePath = FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask).f… 98 if !FileManager.default.fileExists(atPath: filePath) { in ensureFileExists() 99 FileManager.default.createFile(atPath: filePath, contents: nil) in ensureFileExists() 106 … let attrs: [FileAttributeKey: Any?] = try FileManager.default.attributesOfItem(atPath: filePath) in getFileSize() 115 if let fileHandle = FileHandle(forWritingAtPath: filePath) { in appendTextToFile() 124 return try stringToList(String(contentsOfFile: filePath, encoding: .utf8)) in readFileSync() 132 try contents.joined(separator: "\n").write(toFile: filePath, atomically: true, encoding: .utf8) in writeFileSync() 136 if FileManager.default.fileExists(atPath: filePath) { in deleteFileSync() 137 try FileManager.default.removeItem(atPath: filePath) in deleteFileSync()
|
| /expo/packages/@expo/cli/src/customize/ |
| H A D | templates.ts | 17 const filePath = resolveFrom(projectRoot, `@expo/webpack-config/${folder}/${moduleId}`); constant 18 debug(`Using @expo/webpack-config template for "${moduleId}": ${filePath}`); 19 return filePath; 28 const filePath = resolveFrom(projectRoot, '@expo/cli/static/template/' + moduleId); constant 29 debug(`Using @expo/cli template for "${moduleId}": ${filePath}`); 30 return filePath; 33 const filePath = require.resolve(`@expo/cli/static/template/${moduleId}`); constant 35 … template for "${moduleId}" not found, falling back on template relative to @expo/cli: ${filePath}` 38 return filePath;
|
| /expo/packages/@expo/fingerprint/src/hash/ |
| H A D | Hash.ts | 67 `createDirHashResultsAsync(${source.filePath})` 68 )(source.filePath, limiter, projectRoot, options); 81 filePath: string, 110 if (isIgnoredPath(filePath, options.ignorePaths)) { 116 const stream = createReadStream(path.join(projectRoot, filePath)); 120 resolve({ id: filePath, hex }); 154 const filePath = path.join(dirPath, dirent.name); constant 157 const filePath = path.join(dirPath, dirent.name); constant 158 promises.push(createFileHashResultsAsync(filePath, limiter, projectRoot, options)); 197 return source.filePath; [all …]
|
| /expo/packages/@expo/cli/src/start/server/ |
| H A D | webTemplate.ts | 37 { publicFolder, filePath }: { publicFolder: string; filePath: string } 39 const localFilePath = path.resolve(projectRoot, publicFolder, filePath); 48 let filePath = getFileFromLocalPublicFolder(projectRoot, { 51 filePath: 'index.html', 53 if (!filePath) { 54 filePath = TEMPLATES.find((value) => value.id === 'index.html')!.file(projectRoot); 56 return fs.promises.readFile(filePath, 'utf8');
|
| /expo/packages/@expo/fingerprint/build/hash/ |
| H A D | Hash.js | 45 … result = await createFileHashResultsAsync(source.filePath, limiter, projectRoot, options); 48 …reateDirHashResultsAsync, `createDirHashResultsAsync(${source.filePath})`)(source.filePath, limite… 59 async function createFileHashResultsAsync(filePath, limiter, projectRoot, options) { argument 83 if ((0, Path_1.isIgnoredPath)(filePath, options.ignorePaths)) { 88 const stream = (0, fs_1.createReadStream)(path_1.default.join(projectRoot, filePath)); 92 resolve({ id: filePath, hex }); 118 const filePath = path_1.default.join(dirPath, dirent.name); 122 const filePath = path_1.default.join(dirPath, dirent.name); 123 promises.push(createFileHashResultsAsync(filePath, limiter, projectRoot, options)); 155 return source.filePath; [all …]
|