@joryio/react-native-sdk 0.0.0-stage → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,36 @@
1
+ require 'json'
2
+
3
+ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
+
5
+ Pod::Spec.new do |s|
6
+ s.name = "joryio-react-native"
7
+ s.version = package['version']
8
+ s.summary = package['description']
9
+ s.homepage = "https://github.com/joryio/joryio-react-native-sdk"
10
+ s.license = { :type => 'Commercial', :file => 'LICENSE' }
11
+ s.author = "Joryio"
12
+ s.platforms = { :ios => "14.0" }
13
+ # The bridge is Swift (`if let x` shorthand needs 5.7; the native SDK declares
14
+ # 5.9). Without this, CocoaPods lints the pod under its own default Swift
15
+ # version and `pod lib lint` warns that none is specified.
16
+ s.swift_version = "5.9"
17
+ s.source = { :git => "https://github.com/joryio/joryio-react-native-sdk.git", :tag => s.version }
18
+ s.source_files = "ios/**/*.{h,m,mm,swift}"
19
+
20
+ s.dependency "React-Core"
21
+
22
+ # Joryio/UI, not Joryio: the UI subspec pulls Core and adds native in-app
23
+ # rendering, so a plain install displays messages without any JavaScript.
24
+ # Calling Joryio.onInAppMessage() from JS still takes rendering over.
25
+ #
26
+ # PINNED EXACTLY to this package's version, like the Android bridge's Maven
27
+ # coordinate: the SDKs release in lockstep, and this bridge calls native API
28
+ # of that exact release. Unpinned, `pod install` resolved whatever Joryio was
29
+ # newest, so a bridge could meet a native SDK it was never built against.
30
+ #
31
+ # To build the native SDK from a checkout instead, point CocoaPods at it from
32
+ # your app's Podfile; a :path pod of the same version satisfies this pin:
33
+ #
34
+ # pod 'Joryio', :path => '../path/to/joryio-ios-sdk'
35
+ s.dependency "Joryio/UI", package['version']
36
+ end