Skip to content

Commit

Permalink
Merge pull request #14188 from wordpress-mobile/gutenberg/try-enablin…
Browse files Browse the repository at this point in the history
…g-build-from-monorepo

[Gutenberg] Enable build from monorepo
  • Loading branch information
mchowning authored Jun 23, 2020
2 parents 934b630 + 567a30a commit 95f2f1a
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 83 deletions.
8 changes: 5 additions & 3 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ end

def gutenberg(options)
options[:git] = 'http://github.com/wordpress-mobile/gutenberg-mobile/'
options[:submodules] = true
local_gutenberg = ENV['LOCAL_GUTENBERG']
if local_gutenberg
options = { :path => local_gutenberg.include?('/') ? local_gutenberg : '../gutenberg-mobile' }
Expand Down Expand Up @@ -119,7 +120,8 @@ def gutenberg_dependencies(options)
'RNSVG',
'ReactNativeDarkMode',
'react-native-slider',
'react-native-linear-gradient'
'react-native-linear-gradient',
'react-native-get-random-values'
]
if options[:path]
podspec_prefix = options[:path]
Expand All @@ -129,7 +131,7 @@ def gutenberg_dependencies(options)
end

for pod_name in dependencies do
pod pod_name, :podspec => "#{podspec_prefix}/react-native-gutenberg-bridge/third-party-podspecs/#{pod_name}.podspec.json"
pod pod_name, :podspec => "#{podspec_prefix}/third-party-podspecs/#{pod_name}.podspec.json"
end
end

Expand All @@ -146,7 +148,7 @@ target 'WordPress' do
## Gutenberg (React Native)
## =====================
##
gutenberg :commit => '74f2bb2c58b1fcd9a10125b78673318d5ef8d0a4'
gutenberg :commit => '41f12f65649bb86ffa3de2ebb0046a96065e18ee'

## Third party libraries
## =====================
Expand Down
Loading

0 comments on commit 95f2f1a

Please sign in to comment.