Files
react-native-wechat-1/scripts/postlink.js
2018-06-14 16:18:04 +08:00

22 lines
486 B
JavaScript

const path = require('path')
const file = require('./file')
const postlink = () => {
const projectDir = path.dirname(__filename) + '/../../../..'
file.fileReplace(
projectDir + '/android/settings.gradle',
':@yyyyu/react-native-wechat',
':react-native-wechat'
)
file.fileReplace(
projectDir + '/android/app/build.gradle',
':@yyyyu/react-native-wechat',
':react-native-wechat'
)
console.log('\nLink finished, hit <Enter> to continue')
}
postlink()