From 6e6e9332bf243798a5625ae4f9dc9e46c15d7a1a Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Fri, 24 Jul 2020 11:42:28 +1000 Subject: [PATCH] Improve performance --- Podfile | 12 ++++++++++++ Podfile.lock | 2 +- Pods | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Podfile b/Podfile index 84b698387..a7bcda75a 100644 --- a/Podfile +++ b/Podfile @@ -105,9 +105,21 @@ target 'SignalMessaging' do end post_install do |installer| + enable_whole_module_optimization_for_cryptoswift(installer) enable_extension_support_for_purelayout(installer) end +def enable_whole_module_optimization_for_cryptoswift(installer) + installer.pods_project.targets.each do |target| + if target.name.end_with? "CryptoSwift" + target.build_configurations.each do |config| + config.build_settings['GCC_OPTIMIZATION_LEVEL'] = 'fast' + config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-O' + end + end + end +end + # PureLayout by default makes use of UIApplication, and must be configured to be built for an extension. def enable_extension_support_for_purelayout(installer) installer.pods_project.targets.each do |target| diff --git a/Podfile.lock b/Podfile.lock index a094c88bb..acfaf69b2 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -325,6 +325,6 @@ SPEC CHECKSUMS: YapDatabase: b418a4baa6906e8028748938f9159807fd039af4 YYImage: 1e1b62a9997399593e4b9c4ecfbbabbf1d3f3b54 -PODFILE CHECKSUM: 5963da3d09b1f6e9aee15d9e684901b350dce6ec +PODFILE CHECKSUM: b4f88816a817cc27f499940c644c0449ef5d7cc7 COCOAPODS: 1.9.3 diff --git a/Pods b/Pods index 8b8d1d35f..d1322a0a5 160000 --- a/Pods +++ b/Pods @@ -1 +1 @@ -Subproject commit 8b8d1d35f47af7071caaaee0aca8c1f5806bbe8e +Subproject commit d1322a0a5e38a04b7c9fb57c847ea0f2eb7c13c3