Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gutenberg] Enable build from monorepo #14188

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