|
1 | 1 | 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' |
17 | 5 |
|
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' |
24 | 13 |
|
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" |
30 | 23 |
|
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 |
40 | 36 | else |
41 | | - echo "Failed to extract framework version." |
| 37 | + echo "Version $FRAMEWORK_VERSION of $LIBRARY_NAME is compatible with the current version of FireworkVideoIVSSupport." |
42 | 38 | 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' |
48 | 46 | end |
0 commit comments