@doorstepai/dropoff-sdk 1.0.13 → 1.0.15
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.
- package/DropoffSdk.podspec +23 -2
- package/android/build.gradle +1 -1
- package/package.json +1 -1
package/DropoffSdk.podspec
CHANGED
|
@@ -13,9 +13,25 @@ Pod::Spec.new do |s|
|
|
|
13
13
|
s.platforms = { :ios => min_ios_version_supported }
|
|
14
14
|
s.source = { :git => "https://github.com/doorstep-ai/DoorstepAIDropoffReactNativeSDK", :tag => "#{s.version}" }
|
|
15
15
|
|
|
16
|
-
s.
|
|
16
|
+
s.static_framework = true
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
# Split the pod into a binary slice that only delivers the XCFramework
|
|
19
|
+
# and a code slice that contains the Swift / Obj-C bridge. By making the
|
|
20
|
+
# code slice depend on the binary one we guarantee the framework is
|
|
21
|
+
# present (and on the search-path) when the Swift files are compiled.
|
|
22
|
+
|
|
23
|
+
s.subspec 'Binary' do |ss|
|
|
24
|
+
ss.vendored_frameworks = "ios/DoorstepDropoffSDK.xcframework"
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
s.subspec 'Core' do |ss|
|
|
28
|
+
ss.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
29
|
+
ss.exclude_files = "ios/DoorstepDropoffSDK.xcframework"
|
|
30
|
+
ss.dependency "#{s.name}/Binary"
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Have the umbrella spec pull both subspecs in by default
|
|
34
|
+
s.default_subspecs = 'Binary', 'Core'
|
|
19
35
|
|
|
20
36
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
21
37
|
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
|
@@ -24,4 +40,9 @@ if respond_to?(:install_modules_dependencies, true)
|
|
|
24
40
|
else
|
|
25
41
|
s.dependency "React-Core"
|
|
26
42
|
end
|
|
43
|
+
|
|
44
|
+
s.pod_target_xcconfig = {
|
|
45
|
+
'FRAMEWORK_SEARCH_PATHS' => '$(PODS_XCFRAMEWORKS_BUILD_DIR)/DoorstepDropoffSDK',
|
|
46
|
+
'OTHER_SWIFT_FLAGS' => '-framework DoorstepDropoffSDK'
|
|
47
|
+
}
|
|
27
48
|
end
|
package/android/build.gradle
CHANGED
|
@@ -86,7 +86,7 @@ def kotlin_version = getExtOrDefault("kotlinVersion")
|
|
|
86
86
|
dependencies {
|
|
87
87
|
implementation "com.facebook.react:react-android"
|
|
88
88
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
89
|
-
implementation("ai.doorstep.com:doorstepai-dropoff-sdk:1.0.
|
|
89
|
+
implementation("ai.doorstep.com:doorstepai-dropoff-sdk:1.0.7")
|
|
90
90
|
api "org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1"
|
|
91
91
|
}
|
|
92
92
|
|