Skip to content

Commit

Permalink
Merge pull request #11 from AppsFlyerSDK/dev/DELIVERY-52672/update-ve…
Browse files Browse the repository at this point in the history
…rsion-2.0.1

Dev/delivery 52672/update version 2.0.1
  • Loading branch information
af-vero authored Mar 3, 2024
2 parents 27b5090 + f664c1c commit 2c81939
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## v2.0.1
* Update iOS PurchaseConnector to 6.13.0
* Add Strict Mode support - iOS
* Update Android PurchaseConnector to 2.0.1

## v2.0.0
Expand Down
Binary file modified appsflyer-unity-purchase-connector-2.0.1.unitypackage
Binary file not shown.
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
3 changes: 3 additions & 0 deletions docs/purchaseConnectorUnity.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ To use the module with earlier Unity AppsFlyer plugin versions, check the previo
-keep class kotlin.jvm.internal.Intrinsics{ *; }
-keep class kotlin.collections.**{ *; }
```
## Strict Mode
The module supports a Strict Mode which completely removes the IDFA collection functionality and AdSupport framework dependencies. Use the Strict Mode when developing apps for kids, for example.
Make sure to use strict mode module with AppsFlyer Unity strict mode plugin.

## Basic Integration

Expand Down
Binary file not shown.

0 comments on commit 2c81939

Please sign in to comment.