2021-01-07 12:59:57 +00:00
|
|
|
require_relative '../node_modules/react-native/scripts/react_native_pods'
|
|
|
|
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
|
2018-08-23 01:54:29 +00:00
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
platform :ios, '12.4'
|
|
|
|
|
|
|
|
production = ENV["PRODUCTION"] == "1"
|
|
|
|
|
|
|
|
# We need to enable codegen discovery to fix the issue of these files not being generated properly:
|
|
|
|
# ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec-generated.mm
|
|
|
|
# ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec.h
|
|
|
|
# more details here : https://github.com/status-im/status-mobile/issues/15911
|
|
|
|
# TODO: remove this flag once you upgrade react-native above version 0.70
|
|
|
|
ENV['USE_CODEGEN_DISCOVERY'] = "1"
|
|
|
|
|
2020-06-24 15:54:28 +00:00
|
|
|
abstract_target 'Status' do
|
2020-05-01 07:20:06 +00:00
|
|
|
# Pods for StatusQuo
|
2021-01-07 12:59:57 +00:00
|
|
|
config = use_native_modules!
|
2017-12-30 04:35:25 +00:00
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
# Flags change depending on the env values.
|
|
|
|
flags = get_default_flags()
|
|
|
|
|
|
|
|
use_react_native!(
|
|
|
|
:path => config[:reactNativePath],
|
|
|
|
# to enable hermes on iOS, change `false` to `true` and then install pods
|
|
|
|
:production => production,
|
|
|
|
:hermes_enabled => flags[:hermes_enabled],
|
|
|
|
:fabric_enabled => flags[:fabric_enabled],
|
|
|
|
:use_codegen_discovery => true,
|
|
|
|
# An absolute path to your application root.
|
|
|
|
:app_path => "#{Pod::Config.instance.installation_root}/.."
|
|
|
|
)
|
2019-08-29 10:47:39 +00:00
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
pod 'react-native-image-resizer', :path => '../node_modules/react-native-image-resizer'
|
2021-01-19 09:00:39 +00:00
|
|
|
pod 'react-native-config', :path => '../node_modules/react-native-config'
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
pod 'SQLCipher', '~>3.0'
|
2022-07-04 10:08:16 +00:00
|
|
|
pod 'SSZipArchive', '2.4.3'
|
2019-09-03 10:51:53 +00:00
|
|
|
|
2020-07-28 11:06:58 +00:00
|
|
|
permissions_path = '../node_modules/react-native-permissions/ios'
|
|
|
|
pod 'Permission-Microphone', :path => "#{permissions_path}/Microphone.podspec"
|
|
|
|
pod 'Permission-Camera', :path => "#{permissions_path}/Camera.podspec"
|
|
|
|
|
2020-11-25 09:30:00 +00:00
|
|
|
pod "react-native-status-keycard", path: "../node_modules/react-native-status-keycard"
|
2021-03-29 16:23:40 +00:00
|
|
|
pod "react-native-status", path: "../modules/react-native-status"
|
2020-11-25 09:30:00 +00:00
|
|
|
pod "Keycard", git: "https://github.com/status-im/Keycard.swift.git"
|
|
|
|
pod 'secp256k1', git: "https://github.com/status-im/secp256k1.swift.git", submodules: true
|
|
|
|
|
2020-06-24 15:54:28 +00:00
|
|
|
target 'StatusIm' do
|
2021-08-30 22:51:19 +00:00
|
|
|
|
2020-06-24 15:54:28 +00:00
|
|
|
target 'StatusImTests' do
|
|
|
|
inherit! :complete
|
|
|
|
# Pods for testing
|
|
|
|
end
|
|
|
|
end
|
2020-11-25 09:30:00 +00:00
|
|
|
|
2020-06-24 15:54:28 +00:00
|
|
|
target 'StatusImPR' do
|
|
|
|
end
|
2020-11-25 09:30:00 +00:00
|
|
|
|
2023-03-22 13:13:51 +00:00
|
|
|
post_install do |installer|
|
|
|
|
# some of libs wouldn't be build for x86_64 otherwise and that is
|
|
|
|
# necessary for ios simulators
|
|
|
|
installer.pods_project.targets.each do |target|
|
|
|
|
target.build_configurations.each do |config|
|
|
|
|
config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
|
2023-09-20 09:11:12 +00:00
|
|
|
# fix for no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'?
|
|
|
|
# ref : https://github.com/facebook/react-native/issues/37748
|
|
|
|
# TODO : remove after upgrading to react-native 0.72.x
|
|
|
|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
|
2023-03-22 13:13:51 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
use_native_modules!
|
2020-11-25 09:30:00 +00:00
|
|
|
end
|