-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConektaElements.podspec
More file actions
33 lines (27 loc) · 1.17 KB
/
ConektaElements.podspec
File metadata and controls
33 lines (27 loc) · 1.17 KB
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
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
elements = package['conektaElements']
Pod::Spec.new do |s|
s.name = "ConektaElements"
s.version = package['version']
s.summary = "React Native wrapper for Conekta Elements Compose UI"
s.homepage = "https://github.com/conekta/conekta-elements-react-native"
s.license = { :type => "MIT" }
s.author = { "Conekta" => "engineering@conekta.com" }
s.source = { :git => "https://github.com/conekta/conekta-elements-react-native.git", :tag => s.version }
s.ios.deployment_target = "14.0"
s.swift_version = "5.9"
s.dependency "React-Core"
s.prepare_command = <<-CMD
set -e
curl -L \
"https://github.com/conekta/conekta-elements/releases/download/#{elements['version']}/composeKit.xcframework.zip" \
-o composeKit.xcframework.zip
echo "#{elements['iosChecksum']} composeKit.xcframework.zip" | shasum -a 256 -c -
unzip -o composeKit.xcframework.zip
rm composeKit.xcframework.zip
CMD
s.vendored_frameworks = "composeKit.xcframework"
s.source_files = "ios/**/*.{swift,m,h}"
s.pod_target_xcconfig = { "SWIFT_VERSION" => "5.9" }
end