com.puzzlescapegames.singular_adapter 1.0.4 → 1.0.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.
@@ -24,14 +24,16 @@ namespace PuzzlescapeGames.SingularAdapter
24
24
  GameObject.DontDestroyOnLoad( go );
25
25
  go.SetActive( false );
26
26
 
27
- _singularSDK = go.AddComponent<SingularSDK>();
27
+ _singularSDK = go.AddComponent< SingularSDK >();
28
28
  _singularSDK.SingularAPIKey = _settings.APIKey;
29
29
  _singularSDK.SingularAPISecret = _settings.APISecret;
30
- _singularSDK.InitializeOnAwake = false;
30
+ _singularSDK.enableLogging = true;
31
+ _singularSDK.logLevel = 1;
32
+ _singularSDK.InitializeOnAwake = true;
31
33
 
32
34
  go.SetActive( true );
33
35
 
34
- SingularSDK.InitializeSingularSDK();
36
+ // SingularSDK.InitializeSingularSDK();
35
37
  SingularSDK.SkanRegisterAppForAdNetworkAttribution();
36
38
 
37
39
  Debug.Log( "[AnalyticsSystem] SingularAdapter Initialized" );
@@ -84,6 +86,11 @@ namespace PuzzlescapeGames.SingularAdapter
84
86
  #endif
85
87
  }
86
88
 
89
+ public void SendAdRevenue( string adPlatform, double revenue, string currency = "USD" )
90
+ {
91
+ SingularSDK.AdRevenue( new SingularAdData( adPlatform, currency, revenue) );
92
+ }
93
+
87
94
  public void SendIAPPurchase( Order order, bool isRestoredTransaction = false )
88
95
  {
89
96
  SingularSDK.InAppPurchase( order, isRestoredTransaction );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name" : "com.puzzlescapegames.singular_adapter",
3
3
  "displayName" : "Puzzlescape Games Singular Adapter",
4
- "version" : "1.0.4",
4
+ "version" : "1.0.6",
5
5
  "author" : "Puzzlescape Games",
6
6
  "description" : "Singular adapter.",
7
7
  "repository": {