ios production local image

This commit is contained in:
feruz 2021-02-04 14:51:57 +02:00
parent 6658b8a860
commit 352cff75b1
2 changed files with 22 additions and 4 deletions

View File

@ -41,6 +41,11 @@ target 'Ecency' do
# Pods for testing
end
post_install do |installer|
find_and_replace("../node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m",
"_currentFrame.CGImage;","_currentFrame.CGImage ;} else { [super displayLayer:layer];")
end
use_native_modules!
end
@ -52,4 +57,17 @@ target 'Ecency-tvOS' do
# 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

View File

@ -331,8 +331,8 @@ PODS:
- React
- react-native-version-number (0.3.6):
- React
- react-native-webview (8.2.1):
- React
- react-native-webview (11.2.1):
- React-Core
- React-RCTActionSheet (0.61.5):
- React-Core/RCTActionSheetHeaders (= 0.61.5)
- React-RCTAnimation (0.61.5):
@ -692,7 +692,7 @@ SPEC CHECKSUMS:
react-native-safe-area-context: b6e0e284002381d2ff29fa4fff42b4d8282e3c94
react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865
react-native-version-number: b415bbec6a13f2df62bf978e85bc0d699462f37f
react-native-webview: 160ac8d6bb974e2933f2de6bb7464a8e934ff31d
react-native-webview: a4751ec8f0a6a397026f22ed54c1efeec4540555
React-RCTActionSheet: 600b4d10e3aea0913b5a92256d2719c0cdd26d76
React-RCTAnimation: 791a87558389c80908ed06cc5dfc5e7920dfa360
React-RCTBlob: d89293cc0236d9cb0933d85e430b0bbe81ad1d72
@ -725,6 +725,6 @@ SPEC CHECKSUMS:
toolbar-android: 85f3ef4d691469f2d304e7dee4bca013aa1ba1ff
Yoga: f2a7cd4280bfe2cca5a7aed98ba0eb3d1310f18b
PODFILE CHECKSUM: 1f30c7da5061dbc47185442a6ab4a3c95ac48c04
PODFILE CHECKSUM: fe3729fa5bd9034637b0c0653446c2895b1c839d
COCOAPODS: 1.9.3