Skip to content

Commit 65f6612

Browse files
committed
Update SDK support library to v0.9.0-beta.4
1 parent 5db4c75 commit 65f6612

File tree

2 files changed

+41
-43
lines changed

2 files changed

+41
-43
lines changed

FireworkVideoIVSSupport.podspec

Lines changed: 39 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,46 @@
11
Pod::Spec.new do |s|
2-
s.name = 'FireworkVideoIVSSupport'
3-
s.version = '0.9.0-beta.3'
4-
s.summary = 'FireworkVideoIVSSupport'
5-
6-
s.homepage = 'https://github.com/loopsocial/firework_ios_sdk_ivs_support'
7-
s.license = { :text => "Copyright 2023 Loop Now Technologies, Inc.", :type => "Copyright" }
8-
s.author = "Loop Now Technologies, Inc."
9-
s.platform = :ios, "13.0"
10-
s.module_name = "FireworkVideoIVSSupport"
11-
s.source = { :http => "https://github.com/loopsocial/firework_ios_sdk_ivs_support/releases/download/v#{s.version}/FireworkVideoIVSSupport-v#{s.version}.xcframework.zip" }
12-
s.swift_version = '5.3'
13-
14-
s.preserve_paths = "FireworkVideoIVSSupport.xcframework"
15-
s.ios.vendored_frameworks = "FireworkVideoIVSSupport.xcframework"
16-
s.cocoapods_version = '>= 1.10.0'
2+
s.name = 'FireworkVideoIVSSupport'
3+
s.version = '0.9.0-beta.4'
4+
s.summary = 'FireworkVideoIVSSupport'
175

18-
s.script_phases = [
19-
{
20-
:name => 'Check FireworkVideo version from FireworkVideoIVSSupport',
21-
:script => '
22-
LIBRARY_NAME="FireworkVideoIVSSupport"
23-
BASE_VERSION="1.29.0"
6+
s.homepage = 'https://github.com/loopsocial/firework_ios_sdk_ivs_support'
7+
s.license = { :text => "Copyright 2023 Loop Now Technologies, Inc.", :type => "Copyright" }
8+
s.author = "Loop Now Technologies, Inc."
9+
s.platform = :ios, "13.0"
10+
s.module_name = "FireworkVideoIVSSupport"
11+
s.source = { :http => "https://github.com/loopsocial/firework_ios_sdk_ivs_support/releases/download/v#{s.version}/FireworkVideoIVSSupport-v#{s.version}.xcframework.zip" }
12+
s.swift_version = '5.3'
2413

25-
INFO_PLIST_PATH="${PODS_ROOT}/"$LIBRARY_NAME"/"$LIBRARY_NAME".xcframework/ios-arm64/"$LIBRARY_NAME".framework/Info.plist"
26-
if [ ! -e "$INFO_PLIST_PATH" ]; then
27-
echo "$LIBRARY_NAME is not installed."
28-
exit 0
29-
fi
14+
s.preserve_paths = "FireworkVideoIVSSupport.xcframework"
15+
s.ios.vendored_frameworks = "FireworkVideoIVSSupport.xcframework"
16+
s.cocoapods_version = '>= 1.10.0'
17+
18+
s.script_phase = {
19+
:name => 'Check FireworkVideo version from FireworkVideoIVSSupport',
20+
:script => '
21+
LIBRARY_NAME="FireworkVideo"
22+
BASE_VERSION="1.29.0"
3023
31-
FRAMEWORK_VERSION=$(plutil -convert xml1 -o - "$INFO_PLIST_PATH" | grep -A 1 "<key>CFBundleShortVersionString</key>" | grep "<string>" | sed "s/.*<string>\(.*\)<\/string>.*/\1/")
32-
echo "Checking $LIBRARY_NAME version: $FRAMEWORK_VERSION"
33-
if [[ -n "$FRAMEWORK_VERSION" ]]; then
34-
if awk "BEGIN {exit !(ARGV[1] < ARGV[2])}" "$FRAMEWORK_VERSION" "$BASE_VERSION"; then
35-
echo "Version $FRAMEWORK_VERSION of $LIBRARY_NAME is incompatible with the current version of FireworkVideo. Please use a version of $LIBRARY_NAME that is $BASE_VERSION or higher."
36-
exit 1
37-
else
38-
echo "Version $FRAMEWORK_VERSION of $LIBRARY_NAME is compatible with the current version of FireworkVideo."
39-
fi
24+
INFO_PLIST_PATH="${PODS_ROOT}/"$LIBRARY_NAME"/"$LIBRARY_NAME".xcframework/ios-arm64/"$LIBRARY_NAME".framework/Info.plist"
25+
if [ ! -e "$INFO_PLIST_PATH" ]; then
26+
echo "$LIBRARY_NAME is not installed."
27+
exit 0
28+
fi
29+
30+
FRAMEWORK_VERSION=$(plutil -convert xml1 -o - "$INFO_PLIST_PATH" | grep -A 1 "<key>CFBundleShortVersionString</key>" | grep "<string>" | sed "s/.*<string>\(.*\)<\/string>.*/\1/")
31+
echo "Checking $LIBRARY_NAME version: $FRAMEWORK_VERSION"
32+
if [[ -n "$FRAMEWORK_VERSION" ]]; then
33+
if awk "BEGIN {exit !(ARGV[1] < ARGV[2])}" "$FRAMEWORK_VERSION" "$BASE_VERSION"; then
34+
echo "Version $FRAMEWORK_VERSION of $LIBRARY_NAME is incompatible with the current version of FireworkVideoIVSSupport. Please use a version of $LIBRARY_NAME that is $BASE_VERSION or higher."
35+
exit 1
4036
else
41-
echo "Failed to extract framework version."
37+
echo "Version $FRAMEWORK_VERSION of $LIBRARY_NAME is compatible with the current version of FireworkVideoIVSSupport."
4238
fi
43-
'
44-
},
45-
]
46-
47-
s.dependency 'AmazonIVSPlayer', '1.38.0'
39+
else
40+
echo "Failed to extract framework version."
41+
fi
42+
'
43+
}
44+
45+
s.dependency 'AmazonIVSPlayer', '1.38.0'
4846
end

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ let package = Package(
2323
targets: [
2424
.binaryTarget(
2525
name: "FireworkVideoIVSSupport",
26-
url: "https://github.com/loopsocial/firework_ios_sdk_ivs_support/releases/download/v0.9.0-beta.3/FireworkVideoIVSSupport-v0.9.0-beta.3.xcframework.zip",
27-
checksum: "4a01425f7053b58cc87cd4285fb6e445f5ffb1e79ffb5b5e67549b5202924cc3"
26+
url: "https://github.com/loopsocial/firework_ios_sdk_ivs_support/releases/download/v0.9.0-beta.4/FireworkVideoIVSSupport-v0.9.0-beta.4.xcframework.zip",
27+
checksum: "657ff6da89ed8071d088f19c737f7ff46bd246c8f0e4dcfa794541591724bc40"
2828
),
2929
.target(
3030
name: "FireworkVideoIVSSupportDependencies",

0 commit comments

Comments
 (0)