com.puzzlescapegames.services 1.2.4 → 1.2.6
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.
- package/Runtime/Attributes/TimeInfoAttribute.cs +2 -0
- package/Runtime/Services/TickableService/TickableService.cs +0 -2
- package/Runtime/Services/TickableService/TickableServiceInstaller.cs +0 -2
- package/package.json +1 -1
- package/Editor/XCodePostProcess.cs +0 -41
- package/Editor/XCodePostProcess.cs.meta +0 -11
|
@@ -2,11 +2,9 @@ using Cysharp.Threading.Tasks;
|
|
|
2
2
|
using PuzzlescapeGames.Extensions;
|
|
3
3
|
using System;
|
|
4
4
|
using System.Threading;
|
|
5
|
-
using UnityEngine.Scripting;
|
|
6
5
|
|
|
7
6
|
namespace PuzzlescapeGames.Services.TickableService
|
|
8
7
|
{
|
|
9
|
-
[ Preserve ]
|
|
10
8
|
public sealed class TickableService
|
|
11
9
|
{
|
|
12
10
|
public event Action OnMinutesTick;
|
package/package.json
CHANGED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
#if UNITY_IPHONE || UNITY_IOS
|
|
2
|
-
using System.IO;
|
|
3
|
-
using UnityEditor;
|
|
4
|
-
using UnityEditor.Callbacks;
|
|
5
|
-
using UnityEditor.iOS.Xcode;
|
|
6
|
-
using UnityEngine;
|
|
7
|
-
|
|
8
|
-
namespace PuzzlescapeGames.Services.Editor
|
|
9
|
-
{
|
|
10
|
-
public static class XCodePostProcess
|
|
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
|
-
|
|
15
|
-
[ PostProcessBuild ]
|
|
16
|
-
public static void ChangeXcodePlist( BuildTarget buildTarget, string path )
|
|
17
|
-
{
|
|
18
|
-
if ( buildTarget == BuildTarget.iOS )
|
|
19
|
-
{
|
|
20
|
-
string plistPath = path + "/Info.plist";
|
|
21
|
-
PlistDocument plist = new PlistDocument();
|
|
22
|
-
plist.ReadFromFile( plistPath );
|
|
23
|
-
|
|
24
|
-
PlistElementDict rootDict = plist.root;
|
|
25
|
-
|
|
26
|
-
Debug.Log( "[iOS] Change plist file" );
|
|
27
|
-
|
|
28
|
-
//Default Encrypt
|
|
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/" );
|
|
35
|
-
|
|
36
|
-
File.WriteAllText( plistPath, plist.WriteToString() );
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
#endif
|