-
Notifications
You must be signed in to change notification settings - Fork 6
/
generate_podspec.sh
executable file
·54 lines (47 loc) · 1.61 KB
/
generate_podspec.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/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' => '[email protected]',
'Sendbird' => '[email protected]',
'Jed Gyeong' => '[email protected]',
'Celine Moon' => '[email protected]',
'Tez Park' => '[email protected]',
'Damon Park' => '[email protected]',
'Young Hwang' => '[email protected]',
'Kai Lee' => '[email protected]'
}
s.source = { :http => \"https://github.com/sendbird/sendbird-chat-sdk-ios/releases/download/$VERSION/SendbirdChatSDK.zip\", :sha1 => \"$SHA1\" }
s.requires_arc = true
s.platform = :ios, '12.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