@shortkitsdk/react-native 0.2.3 → 0.2.5
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/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/ShortKitSDK +0 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64-simulator/ShortKitSDK.framework/ShortKitSDK +0 -0
- package/package.json +1 -1
- package/plugin/build/withShortKitIOS.js +11 -2
- package/ios/ShortKitReactNative.podspec +0 -19
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -9,9 +9,17 @@ const config_plugins_1 = require("@expo/config-plugins");
|
|
|
9
9
|
* - No special permissions are required for video streaming playback.
|
|
10
10
|
*/
|
|
11
11
|
const withShortKitIOS = (config) => {
|
|
12
|
-
|
|
12
|
+
// Set the Podfile deployment target (used by CocoaPods during pod install)
|
|
13
|
+
config = (0, config_plugins_1.withPodfileProperties)(config, (mod) => {
|
|
14
|
+
const current = parseFloat(mod.modResults['ios.deploymentTarget'] || '0');
|
|
15
|
+
if (current < 16.0) {
|
|
16
|
+
mod.modResults['ios.deploymentTarget'] = '16.0';
|
|
17
|
+
}
|
|
18
|
+
return mod;
|
|
19
|
+
});
|
|
20
|
+
// Set the Xcode project deployment target (used during xcodebuild)
|
|
21
|
+
config = (0, config_plugins_1.withXcodeProject)(config, (mod) => {
|
|
13
22
|
const project = mod.modResults;
|
|
14
|
-
// Ensure minimum deployment target is iOS 16.0
|
|
15
23
|
const buildConfigs = project.pbxXCBuildConfigurationSection();
|
|
16
24
|
for (const key of Object.keys(buildConfigs)) {
|
|
17
25
|
const buildConfig = buildConfigs[key];
|
|
@@ -25,5 +33,6 @@ const withShortKitIOS = (config) => {
|
|
|
25
33
|
}
|
|
26
34
|
return mod;
|
|
27
35
|
});
|
|
36
|
+
return config;
|
|
28
37
|
};
|
|
29
38
|
exports.withShortKitIOS = withShortKitIOS;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
require 'json'
|
|
2
|
-
package = JSON.parse(File.read(File.join(__dir__, '..', 'package.json')))
|
|
3
|
-
|
|
4
|
-
Pod::Spec.new do |s|
|
|
5
|
-
s.name = "ShortKitReactNative"
|
|
6
|
-
s.version = package["version"]
|
|
7
|
-
s.summary = package["description"]
|
|
8
|
-
s.homepage = "https://github.com/shortkit/shortkit"
|
|
9
|
-
s.license = package["license"]
|
|
10
|
-
s.author = "ShortKit"
|
|
11
|
-
s.platforms = { :ios => "16.0" }
|
|
12
|
-
s.source = { :git => "https://github.com/shortkit/shortkit.git", :tag => "v#{s.version}" }
|
|
13
|
-
s.source_files = "*.{h,m,mm,cpp,swift}"
|
|
14
|
-
s.requires_arc = true
|
|
15
|
-
|
|
16
|
-
s.dependency "ShortKit"
|
|
17
|
-
|
|
18
|
-
install_modules_dependencies(s)
|
|
19
|
-
end
|