react-native-purchases 4.6.1 → 5.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,39 +0,0 @@
1
- #!/bin/sh
2
-
3
- cd ios/
4
-
5
- VERSION=$1
6
- CURRENT_VERSION=$(cat .common_version)
7
-
8
- if [ "$VERSION" == "$CURRENT_VERSION" ]; then
9
- echo "The newest version is already installed. Exiting."
10
- exit 0
11
- fi
12
-
13
- pwd
14
-
15
- URL=https://github.com/RevenueCat/purchases-hybrid-common/releases/download/$VERSION/PurchasesHybridCommon.framework.zip
16
-
17
- echo "Downloading Purchases common hybrid SDKs classes $VERSION from $URL, this may take a minute."
18
-
19
- if ! which curl > /dev/null; then echo "curl command not found. Please install curl"; exit 1; fi;
20
- if ! which unzip > /dev/null; then echo "unzip command not found. Please install unzip"; exit 1; fi;
21
-
22
- if [ -d ./PurchasesHybridCommon.framework ]; then
23
- echo "Old classes found. Removing them and installing version $VERSION"
24
- rm -rf ./PurchasesHybridCommon.framework
25
- fi
26
-
27
- curl -sSL $URL > tempCommon.zip
28
- # In some cases the temp folder can not be created by unzip, https://github.com/RevenueCat/react-native-purchases/issues/26
29
- mkdir -p tempCommon
30
- unzip -o tempCommon.zip -d tempCommon
31
- mv tempCommon/Carthage/Build/iOS/PurchasesHybridCommon.framework ./PurchasesHybridCommon.framework
32
- rm -r tempCommon
33
- rm tempCommon.zip
34
-
35
- if ! [ -d ./PurchasesHybridCommon.framework ]; then
36
- echo "Common files not found. Please reinstall react-native-purchases"; exit 1;
37
- fi;
38
-
39
- echo "$VERSION" > .common_version
@@ -1,39 +0,0 @@
1
- #!/bin/sh
2
-
3
- cd ios/
4
-
5
- VERSION=$1
6
- CURRENT_VERSION=$(cat .framework_version)
7
-
8
- if [ "$VERSION" == "$CURRENT_VERSION" ]; then
9
- echo "The newest version is already installed. Exiting."
10
- exit 0
11
- fi
12
-
13
- pwd
14
-
15
- URL=https://github.com/RevenueCat/purchases-ios/releases/download/$VERSION/Purchases.framework.zip
16
-
17
- echo "Downloading Purchases iOS $VERSION from $URL, this may take a minute."
18
-
19
- if ! which curl > /dev/null; then echo "curl command not found. Please install curl"; exit 1; fi;
20
- if ! which unzip > /dev/null; then echo "unzip command not found. Please install unzip"; exit 1; fi;
21
-
22
- if [ -d ./Purchases.framework ]; then
23
- echo "Old Purchases.framework found. Removing it and installing a $VERSION"
24
- rm -rf ./Purchases.framework
25
- fi
26
-
27
- curl -sSL $URL > temp.zip
28
- # In some cases the temp folder can not be created by unzip, https://github.com/RevenueCat/react-native-purchases/issues/26
29
- mkdir -p temp
30
- unzip -o temp.zip -d temp
31
- mv temp/Carthage/Build/iOS/Purchases.framework ./Purchases.framework
32
- rm -r temp
33
- rm temp.zip
34
-
35
- if ! [ -d ./Purchases.framework ]; then
36
- echo "Purchases.framework not found. Please reinstall react-native-purchases"; exit 1;
37
- fi;
38
-
39
- echo "$VERSION" > .framework_version