ecency-mobile/ios/Podfile
2021-07-31 11:32:42 +03:00

41 lines
903 B
Ruby

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '10.0'
target 'Ecency' do
config = use_native_modules!
# Pods for Ecency
use_react_native!(:path => config["reactNativePath"])
target 'EcencyTests' do
inherit! :complete
# Pods for testing
end
end
target 'Ecency-tvOS' do
# Pods for Ecency-tvOS
target 'Ecency-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
def find_and_replace(dir, findstr, replacestr)
Dir[dir].each do |name|
text = File.read(name)
replace = text.gsub(findstr,replacestr)
if text != replace
puts "Fix: " + name
File.open(name, "w") { |file| file.puts replace }
STDOUT.flush
end
end
Dir[dir + '*/'].each(&method(:find_and_replace))
end