52 lines
1.5 KiB
Bash
Executable File
52 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
VERSION=''
|
|
SHA1=''
|
|
|
|
while getopts v:s: flag
|
|
do
|
|
case "${flag}" in
|
|
v) VERSION=${OPTARG};;
|
|
s) SHA1=${OPTARG};;
|
|
*) error "Unexpected option ${flag}";;
|
|
esac
|
|
done
|
|
|
|
echo $VERSION
|
|
if [ -z $VERSION ]; then
|
|
echo 'Version is required'
|
|
fi
|
|
|
|
echo $SHA1
|
|
if [ -z $SHA1 ]; then
|
|
echo 'shasum is required'
|
|
fi
|
|
|
|
TEMPLATE="
|
|
Pod::Spec.new do |s|
|
|
s.name = 'SendbirdChatSDK'
|
|
s.version = \"$VERSION\"
|
|
s.summary = 'Sendbird Chat iOS Framework'
|
|
s.description = 'Messaging and Chat API for Mobile Apps and Websites'
|
|
s.homepage = 'https://sendbird.com'
|
|
s.license = { :type => 'Commercial', :file => 'SendbirdChatSDK/LICENSE.md' }
|
|
s.authors = {
|
|
'Minhyuk Kim' => 'minhyuk.kim@sendbird.com',
|
|
'Sendbird' => 'sha.sdk_deployment@sendbird.com',
|
|
'Jed Gyeong' => 'jed.gyeong@sendbird.com',
|
|
'Celine Moon' => 'celine.moon@sendbird.com',
|
|
'Ernest Hong' => 'ernest.hong@sendbird.com'
|
|
}
|
|
s.source = { :http => \"https://github.com/sendbird/sendbird-chat-sdk-ios/releases/download/v$VERSION/SendbirdChatSDK.zip\", :sha1 => \"$SHA1\" }
|
|
s.requires_arc = true
|
|
s.platform = :ios, '11.0'
|
|
s.documentation_url = 'https://sendbird.com/docs/chat'
|
|
s.ios.vendored_frameworks = 'SendbirdChatSDK/SendbirdChatSDK.xcframework'
|
|
s.ios.frameworks = ['UIKit', 'CFNetwork', 'Security', 'Foundation', 'MobileCoreServices', 'SystemConfiguration', 'CoreFoundation']
|
|
s.ios.library = 'icucore'
|
|
end
|
|
"
|
|
|
|
echo -e "$TEMPLATE" > SendbirdChatSDK.podspec
|
|
|