-
Notifications
You must be signed in to change notification settings - Fork 1
/
generate_podspec.sh
executable file
·60 lines (43 loc) · 1.62 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
54
55
56
57
58
59
#!/bin/bash
VERSION='0.0.5'
SHA1='f'
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 = 'Mirrorfly-ios-framework' # Name for your pod
s.version = \"$VERSION\"
s.summary = 'This repo to explore the cocopod and how to upload pod in public accessc'
s.homepage = 'https://github.com/MirrorFly/Mirrorfly-ios-framework'
s.author = { 'Hariram' => '[email protected]' }
s.license = { :type => 'Commercial', :file => 'LICENSE' }
s.platform = :ios, "12.1"
# change the source location
s.source = { :git => 'https://github.com/MirrorFly/Mirrorfly-ios-framework.git', :tag => s.version.to_s }
s.swift_version = '4.0'
s.requires_arc = true
s.dependency 'libPhoneNumber-iOS', '0.8'
s.dependency 'Alamofire'
s.dependency 'SocketRocket'
s.dependency 'Socket.IO-Client-Swift', '15.2.0'
s.dependency 'XMPPFramework/Swift'
s.dependency 'RealmSwift' , '10.20.1'
s.dependency 'GoogleWebRTC'
s.ios.vendored_frameworks = 'Source/FlyCommon.xcframework' , 'Source/FlyCall.xcframework' ,'Source/FlyCore.xcframework', 'Source/FlyXmpp.xcframework', 'Source/FlyDatabase.xcframework', 'Source/FlyNetwork.xcframework', 'Source/FlyTranslate.xcframework'
end
"
echo -e "$TEMPLATE" > Mirrorfly-ios-framework.podspec