-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathreact-native-wallet.podspec
More file actions
36 lines (27 loc) · 1010 Bytes
/
react-native-wallet.podspec
File metadata and controls
36 lines (27 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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"]
s.summary = package["description"]
s.homepage = package["homepage"]
s.license = package["license"]
s.authors = package["author"]
s.platforms = { :ios => min_ios_version_supported }
s.source = { :git => "https://github.com/Expensify/react-native-wallet.git", :tag => "#{s.version}" }
s.source_files = "ios/**/*.{h,m,mm,cpp,swift}"
s.dependency "React-Core"
install_modules_dependencies(s);
if ENV['USE_FRAMEWORKS']
$RNWallet._add_compiler_flags(s, "-DRNWallet_USE_FRAMEWORKS=1")
end
end