postlink.js 526B

12345678910111213141516171819202122
  1. const path = require('path')
  2. const file = require('./file')
  3. const postlink = () => {
  4. const projectDir = path.dirname(__filename) + '/../../../..'
  5. file.fileReplace(
  6. projectDir + '/android/settings.gradle',
  7. ':@yyyyu/react-native-geetest-sensebot',
  8. ':react-native-geetest-sensebot'
  9. )
  10. file.fileReplace(
  11. projectDir + '/android/app/build.gradle',
  12. ':@yyyyu/react-native-geetest-sensebot',
  13. ':react-native-geetest-sensebot'
  14. )
  15. console.log('\nLink finished, hit <Enter> to continue')
  16. }
  17. postlink()