-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathgenerate_podspec.sh
executable file
·43 lines (37 loc) · 1.21 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
#!/bin/bash
VERSION=''
while getopts v: flag
do
case "${flag}" in
v) VERSION=${OPTARG};;
*) error "Unexpected option ${flag}";;
esac
done
echo $VERSION
if [ -z $VERSION ]; then
echo 'Version is required'
fi
TEMPLATE="
Pod::Spec.new do |s|
s.name = 'SendBirdSDK'
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 = 'Commercial'
s.authors = {
'Jed Gyeong' => '[email protected]',
'Celine Moon' => '[email protected]',
'Ernest Hong' => '[email protected]',
'Damon Park' => '[email protected]'
}
s.source = { :git => 'https://github.com/sendbird/sendbird-ios-framework.git', :tag => \"v$VERSION\" }
s.requires_arc = true
s.platform = :ios, '12.0'
s.documentation_url = 'https://docs.sendbird.com/'
s.ios.vendored_frameworks = 'Sources/SendBirdSDK.xcframework'
s.ios.frameworks = ['UIKit', 'CFNetwork', 'Security', 'Foundation', 'MobileCoreServices', 'SystemConfiguration', 'CoreFoundation']
s.ios.library = 'icucore'
end
"
echo -e "$TEMPLATE" > SendBirdSDK.podspec