com.puzzlescapegames.services 1.0.5 → 1.0.7
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.
|
@@ -9,6 +9,9 @@ namespace PuzzlescapeGames.Services.Editor
|
|
|
9
9
|
{
|
|
10
10
|
public static class XCodePostProcess
|
|
11
11
|
{
|
|
12
|
+
// Set the IDFA request description:
|
|
13
|
+
private const string k_TrackingDescription = "Your data will be used to provide you a better and personalized ad experience.";
|
|
14
|
+
|
|
12
15
|
[ PostProcessBuild ]
|
|
13
16
|
public static void ChangeXcodePlist( BuildTarget buildTarget, string path )
|
|
14
17
|
{
|
|
@@ -22,7 +25,13 @@ namespace PuzzlescapeGames.Services.Editor
|
|
|
22
25
|
|
|
23
26
|
Debug.Log( "[iOS] Change plist file" );
|
|
24
27
|
|
|
28
|
+
//Default Encrypt
|
|
25
29
|
rootDict.SetBoolean( "ITSAppUsesNonExemptEncryption", false );
|
|
30
|
+
//ATT
|
|
31
|
+
rootDict.SetString( "NSUserTrackingUsageDescription", k_TrackingDescription );
|
|
32
|
+
//AppsFlyer SKAN end point
|
|
33
|
+
//https://dev.appsflyer.com/hc/docs/integrate-ios-sdk#sending-skan-postback-copies-to-appsflyer
|
|
34
|
+
rootDict.SetString( "NSAdvertisingAttributionReportEndpoint ", "https://appsflyer-skadnetwork.com/" );
|
|
26
35
|
|
|
27
36
|
File.WriteAllText( plistPath, plist.WriteToString() );
|
|
28
37
|
}
|
|
@@ -9,9 +9,9 @@ namespace PuzzlescapeGames.Services.VibrationService
|
|
|
9
9
|
|
|
10
10
|
public void Vibrate()
|
|
11
11
|
{
|
|
12
|
-
#if UNITY_IOS
|
|
12
|
+
#if UNITY_IOS && !UNITY_EDITOR
|
|
13
13
|
Vibration.VibrateIOS( ImpactFeedbackStyle.Soft );
|
|
14
|
-
#elif UNITY_ANDROID
|
|
14
|
+
#elif UNITY_ANDROID && !UNITY_EDITOR
|
|
15
15
|
Vibration.VibratePop();
|
|
16
16
|
#endif
|
|
17
17
|
}
|