Bluesky app fork with some witchin' additions 馃挮 witchsky.app
bluesky fork client
119
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 39 lines 1.0 kB view raw
1const {withXcodeProject} = require('expo/config-plugins') 2const path = require('path') 3const fs = require('fs') 4 5const FILES = ['AppDelegate.swift', 'ViewController.swift'] 6 7const withFiles = (config, {targetName}) => { 8 return withXcodeProject(config, config => { 9 const basePath = path.join( 10 config.modRequest.projectRoot, 11 'modules', 12 targetName, 13 ) 14 15 for (const file of FILES) { 16 const sourcePath = path.join(basePath, file) 17 const targetPath = path.join( 18 config.modRequest.platformProjectRoot, 19 targetName, 20 file, 21 ) 22 23 fs.mkdirSync(path.dirname(targetPath), {recursive: true}) 24 fs.copyFileSync(sourcePath, targetPath) 25 } 26 27 const imagesBasePath = path.join(basePath, 'Images.xcassets') 28 const imagesTargetPath = path.join( 29 config.modRequest.platformProjectRoot, 30 targetName, 31 'Images.xcassets', 32 ) 33 fs.cpSync(imagesBasePath, imagesTargetPath, {recursive: true}) 34 35 return config 36 }) 37} 38 39module.exports = {withFiles}