mirror of
https://github.com/zhigang1992/react-native-wechat-1.git
synced 2026-01-12 22:51:14 +08:00
19 lines
492 B
JavaScript
19 lines
492 B
JavaScript
const path = require('path')
|
|
const file = require('./file')
|
|
|
|
const nodeModuleDir = path.dirname(__filename) + '/../../..'
|
|
|
|
const modifies = {
|
|
get reactSpec () {
|
|
const avoidDupSign = '# Dependency'
|
|
return [
|
|
nodeModuleDir + '/react-native/React.podspec',
|
|
avoidDupSign + '\n s.subspec "Dependency" do |ss|\n ss.source_files = "React/**/*.h"\n end\n\n ',
|
|
's.subspec "Core" do |ss|',
|
|
avoidDupSign
|
|
]
|
|
}
|
|
}
|
|
|
|
file.fileInsert(...modifies.reactSpec)
|