-
Notifications
You must be signed in to change notification settings - Fork 1
/
copy.sh
36 lines (30 loc) · 908 Bytes
/
copy.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
#!/bin/bash
# native-lib-name=BindingProjectName
map=(
"belvedere=Belvedere"
"belvedere-core=BelvedereCore"
"chat=ChatSDK"
"chat-providers=ChatProvidersSDK"
"chat-socket-client=ChatSocketClient"
"chat-visitor-client=ChatVisitorClient"
"common-ui=CommonUI"
"core=CoreSDK"
"guide=Guide"
"guide-providers=GuideProviders"
"java-common=JavaCommon"
"messaging=Messaging"
"messaging-api=MessagingApi"
"sdk-configurations=ConfigurationSDK"
"support=SupportSDK"
"support-providers=SupportProvidersSDK"
)
download_path="./.download-cache"
for lib in ${map[*]}; do
lib_name=${lib%%=*} # part before =
binding_name=${lib#*=} # part after =
lib_files_path="$download_path/$lib_name/*"
binding_path="./src/$binding_name.Bindings.Droid/Jars/"
cp $lib_files_path $binding_path
# exclude
rm $binding_path*-javadoc.jar
done