-
Notifications
You must be signed in to change notification settings - Fork 12
/
react-native-haskell-shelley.podspec
41 lines (32 loc) · 1.22 KB
/
react-native-haskell-shelley.podspec
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
37
38
39
40
41
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
Pod::Spec.new do |s|
s.name = "react-native-haskell-shelley"
s.version = package["version"]
s.summary = package["description"]
s.description = <<-DESC
Cardano serialization lib bridge
DESC
s.homepage = "https://github.com/Emurgo/csl-mobile-bridge"
s.license = "MIT"
# optional - use expanded license entry instead:
# s.license = { :type => "MIT", :file => "LICENSE" }
s.authors = { "emurgo" => "[email protected]" }
s.platforms = { :ios => "12.4" }
s.source = { :git => "https://github.com/Emurgo/csl-mobile-bridge.git", :tag => "#{s.version}" }
s.source_files = "ios/**/*.{h,c,m,swift,sh}"
s.requires_arc = true
s.module_name = 'HaskellShelley'
s.script_phase = {
:name => "Build Rust Binary",
:script => 'bash "${PODS_TARGET_SRCROOT}/ios/build.sh"',
:execution_position => :before_compile
}
s.pod_target_xcconfig = {
"HEADER_SEARCH_PATHS" => "$(CONFIGURATION_BUILD_DIR)",
"OTHER_LIBTOOLFLAGS" => "-lreact_native_haskell_shelley",
"ENABLE_BITCODE" => "NO"
}
s.preserve_paths = "rust/**/*"
s.dependency "React"
end