-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkDepsExists.sh
executable file
·22 lines (20 loc) · 1.04 KB
/
checkDepsExists.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
YMK_VERSION=4.4.0
YMKFullFramework=./Frameworks/YandexMapsMobile-$YMK_VERSION-full.xcframework
if [ ! -d "$YMKFullFramework" ]
then
mkdir Frameworks/Temp
curl --remote-name --output-dir Frameworks/Temp https://maps-ios-pods-public.s3.yandex.net/YandexMapsMobile-$YMK_VERSION-full.framework.zip
unzip Frameworks/Temp/YandexMapsMobile-$YMK_VERSION-full.framework.zip -d Frameworks/Temp
mv Frameworks/Temp/YandexMapsMobile.xcframework Frameworks/YandexMapsMobile-$YMK_VERSION-full.xcframework
rm -rfv Frameworks/Temp
fi
YMKLiteFramework=./Frameworks/YandexMapsMobile-$YMK_VERSION-lite.xcframework
if [ ! -d "$YMKLiteFramework" ]
then
mkdir Frameworks/Temp
curl --remote-name --output-dir Frameworks/Temp https://maps-ios-pods-public.s3.yandex.net/YandexMapsMobile-$YMK_VERSION-lite.framework.zip
unzip Frameworks/Temp/YandexMapsMobile-$YMK_VERSION-lite.framework.zip -d Frameworks/Temp
mv Frameworks/Temp/YandexMapsMobile.xcframework Frameworks/YandexMapsMobile-$YMK_VERSION-lite.xcframework
rm -rfv Frameworks/Temp
fi