Skip to content

Commit

Permalink
iOS Checkpoint: Upgrade react-native to version 0.64
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltout committed May 19, 2021
1 parent 4302051 commit 17c7dd0
Show file tree
Hide file tree
Showing 27 changed files with 5,829 additions and 2,230 deletions.
4 changes: 4 additions & 0 deletions .snyk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.19.0
ignore: {}
patch: {}
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @format */
import 'react-native-gesture-handler'
//import 'react-native-gesture-handler'
import { AppRegistry } from 'react-native';
import App from './App';
import {name as appName} from './app.json';
Expand Down
152 changes: 64 additions & 88 deletions ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,132 +1,108 @@
platform :ios, '13.0'
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
$dynamic_frameworks = [
'react-native-verus-light-client',
'React',
'React-Core',
'Folly',
'boost-for-react-native',
'DoubleConversion',
'glog',
'React-cxxreact',
'React-jsinspector',
'React-jsi',
'React-jsiexecutor',
'Yoga',
'React-RCTActionSheet',
'React-RCTAnimation',
'React-RCTBlob',
'React-RCTNetwork',
'React-RCTImage',
'React-RCTLinking',
'React-RCTSettings',
'React-RCTText',
'React-RCTVibration',
'ZcashLightClientKit',
'SwiftGRPC',
'gRPC-Core',
'gRPC-Swift',
'react-native-verus-light-client',
'MnemonicSwift',
'React',
'React-Core',
'RCT-Folly',
'boost-for-react-native',
'DoubleConversion',
'glog',
'React-cxxreact',
'React-jsinspector',
'React-callinvoker',
'React-runtimeexecutor',
'React-jsi',
'React-perflogger',
'React-jsiexecutor',
'Yoga',
'React-RCTActionSheet',
'React-RCTAnimation',
'RCTTypeSafety',
'FBLazyVector',
'RCTRequired',
'ReactCommon',
'FBReactNativeSpec',
'React-RCTBlob',
'React-RCTNetwork',
'React-RCTImage',
'React-RCTLinking',
'React-RCTSettings',
'React-RCTText',
'React-RCTVibration',
'ZcashLightClientKit',
'gRPC-Swift',
'Logging',
'SwiftNIO',
'CNIOLinux',
'CNIODarwin',
'CNIOWindows',
'SwiftNIOConcurrencyHelpers',
'CNIOAtomics',
'CNIOSHA1',
'SwiftNIOHTTP2',
'SwiftNIOHTTP1',
'CNIOHTTPParser',
'SwiftNIOTLS',
'SwiftNIOHPACK',
'SwiftNIOSSL',
'CNIOBoringSSL',
'CNIOWindows',
'CNIOBoringSSLShims',
'SwiftNIOTransportServices',
'SwiftNIOFoundationCompat',
'SwiftProtobuf',
'CGRPCZlib',
'BoringSSL-GRPC',
'nanopb',
'SwiftProtobuf',
'SQLite.swift',
'MnemonicSwift'
'SQLite.swift'
]

platform :ios, '13.0'

pre_install do |installer|
installer.pod_targets.each do |pod|
if !$dynamic_frameworks.include?(pod.name)
puts "Overriding the static_framework? method for #{pod.name}"
def pod.build_type;
Pod::Target::BuildType.static_library
Pod::BuildType.static_library
end
end
end
end

target 'verusmobile' do
use_native_modules!
config = use_native_modules!
use_frameworks!
permissions_path = '../node_modules/react-native-permissions/ios'

use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => false
)

# Pods for Verus-Mobile
pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
pod 'React', :path => '../node_modules/react-native/'
pod 'React-Core', :path => '../node_modules/react-native/'
pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'
pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
pod 'RNInputMask', :path => '../node_modules/react-native-text-input-mask/ios/InputMask'
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod 'Permission-Camera', :path => "#{permissions_path}/Camera.podspec"
pod 'ZcashLightClientKit', :git => 'https://github.com/michaeltout/ZcashLightClientKit.git', :branch => '0.9.1', :testspecs => ['Tests']
pod 'ReactNativeART', :path => '../node_modules/@react-native-community/art'
pod 'MnemonicSwift', '~> 2.0.0'
pod 'RNInputMask', :path => '../node_modules/react-native-text-input-mask/ios/InputMask'
pod 'Permission-Camera', :path => "#{permissions_path}/Camera/Permission-Camera.podspec"

target 'verusmobileTests' do
inherit! :search_paths
# Pods for testing
end
end

target 'verusmobile-tvOS' do
# Pods for Verus-Mobile-tvOS
target 'verusmobile-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
# use_flipper!()

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
post_install do |installer|
react_native_post_install(installer)


if target.name == 'ZcashLightClientKit'
config.build_settings['ZCASH_NETWORK_ENVIRONMENT'] = ENV["ZCASH_NETWORK_ENVIRONMENT"]
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|


if target.name == 'ZcashLightClientKit'
config.build_settings['ZCASH_NETWORK_ENVIRONMENT'] = ENV["ZCASH_NETWORK_ENVIRONMENT"]
end
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end
end
Loading

0 comments on commit 17c7dd0

Please sign in to comment.