diff --git a/ios/RNWallet.mm b/ios/RNWallet.mm index bf424e5..f49649e 100644 --- a/ios/RNWallet.mm +++ b/ios/RNWallet.mm @@ -1,7 +1,7 @@ #import #import "RNWallet.h" -#if RNWallet_USE_FRAMEWORKS +#if __has_include() #import #else #import diff --git a/react-native-wallet.podspec b/react-native-wallet.podspec index 38e35fa..13b057b 100644 --- a/react-native-wallet.podspec +++ b/react-native-wallet.podspec @@ -2,17 +2,6 @@ require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) -$RNWallet = Object.new - -def $RNWallet._add_compiler_flags(sp, extra_flags) - exisiting_flags = sp.attributes_hash["compiler_flags"] - if exisiting_flags.present? - sp.compiler_flags = exisiting_flags + " #{extra_flags}" - else - sp.compiler_flags = extra_flags - end -end - Pod::Spec.new do |s| s.name = "react-native-wallet" s.version = package["version"] @@ -29,8 +18,4 @@ Pod::Spec.new do |s| s.dependency "React-Core" install_modules_dependencies(s); - - if ENV['USE_FRAMEWORKS'] - $RNWallet._add_compiler_flags(s, "-DRNWallet_USE_FRAMEWORKS=1") - end end