-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from AppsFlyerSDK/dev/DELIVERY-52672/update-ve…
…rsion-2.0.1 Dev/delivery 52672/update version 2.0.1
- Loading branch information
Showing
5 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
57 changes: 57 additions & 0 deletions
57
deploy/build_appsflyer_unity_purchase-connector_plugin_strict_mode.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/bin/bash | ||
|
||
echo "Start build for appsflyer-unity-purchase-connector.unitypackage - Strict Mode" | ||
|
||
DEPLOY_PATH=output | ||
UNITY_PATH="/Applications/Unity/Unity.app/Contents/MacOS/Unity" | ||
PACKAGE_NAME="appsflyer-unity-purchase-connector-strict-mode-2.0.1.unitypackage" | ||
mkdir -p $DEPLOY_PATH | ||
|
||
#move external dependency manager | ||
echo "moving the external dependency manager to root" | ||
mv external-dependency-manager-1.2.144.unitypackage .. | ||
|
||
echo "Changing PurchaseConnector to Strict Mode" | ||
sed -i '' 's/PurchaseConnector/PurchaseConnector\/Strict/g' ../Assets/AppsFlyer/Editor/AppsFlyerPurchaseConnectorDependencies.xml | ||
echo "Changing PurchaseConnector to Strict Mode. Done." | ||
|
||
# Build the .unitypackage | ||
/Applications/Unity/Hub/Editor/2020.3.41f1/Unity.app/Contents/MacOS/Unity \ | ||
-gvh_disable \ | ||
-batchmode \ | ||
-importPackage external-dependency-manager-1.2.144.unitypackage \ | ||
-nographics \ | ||
-logFile create_unity_core.log \ | ||
-projectPath $PWD/../ \ | ||
-exportPackage \ | ||
Assets \ | ||
$PWD/$DEPLOY_PATH/$PACKAGE_NAME \ | ||
-quit \ | ||
&& echo "Package exported successfully to output/appsflyer-unity-purchase-connector-strict-mode-2.0.1.unitypackage" \ | ||
|| echo "Failed to export package. See create_unity_core.log for more info" | ||
|
||
if [ "$1" == "-p" ]; then | ||
echo "moving the External Dependency Manager file back to deploy" | ||
mv ../external-dependency-manager-1.2.144.unitypackage . | ||
echo "removing ./Library" | ||
rm -rf ../Library | ||
echo "removing ./Logs" | ||
rm -rf ../Logs | ||
echo "removing ./Packages" | ||
rm -rf ../Packages | ||
echo "removing ./ProjectSettings" | ||
rm -rf ../ProjectSettings | ||
echo "removing ./deploy/create_unity_core.log" | ||
rm ./create_unity_core.log | ||
echo "Moving $DEPLOY_PATH/$PACKAGE_NAME to strict-mode" | ||
mv ./output/$PACKAGE_NAME ../strict-mode | ||
echo "removing ./deploy/output" | ||
rm -rf ./output | ||
|
||
echo "Changing PurchaseConnector back" | ||
sed -i '' 's/PurchaseConnector\/Strict/PurchaseConnector/g' ../Assets/AppsFlyer/Editor/AppsFlyerPurchaseConnectorDependencies.xml | ||
echo "Changing PurchaseConnector back. Done." | ||
|
||
else | ||
echo "dev mode. No files removed. Run with -p flag for production build" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+328 KB
strict-mode/appsflyer-unity-purchase-connector-strict-mode-2.0.1.unitypackage
Binary file not shown.