-
Notifications
You must be signed in to change notification settings - Fork 12
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 #10 from VirtueSky/dev
Dev
- Loading branch information
Showing
18 changed files
with
240 additions
and
18 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
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
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
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
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
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
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
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
24 changes: 24 additions & 0 deletions
24
VirtueSky/Tracking/Runtime/AdjustTracking/AdjustSetting.cs
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,24 @@ | ||
#if VIRTUESKY_ADJUST | ||
using com.adjust.sdk; | ||
#endif | ||
using UnityEngine; | ||
using VirtueSky.Inspector; | ||
using VirtueSky.Utils; | ||
|
||
namespace VirtueSky.Tracking | ||
{ | ||
[EditorIcon("icon_scriptable"), HideMonoScript] | ||
public class AdjustSetting : ScriptableSettings<AdjustSetting> | ||
{ | ||
[SerializeField] private string appToken; | ||
#if VIRTUESKY_ADJUST | ||
[SerializeField] private AdjustEnvironment adjustEnvironment = AdjustEnvironment.Production; | ||
[SerializeField] private AdjustLogLevel logLevel = AdjustLogLevel.Error; | ||
#endif | ||
public static string AppToken => Instance.appToken; | ||
#if VIRTUESKY_ADJUST | ||
public static AdjustEnvironment AdjustEnvironment => Instance.adjustEnvironment; | ||
public static AdjustLogLevel LogLevel => Instance.logLevel; | ||
#endif | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
VirtueSky/Tracking/Runtime/AdjustTracking/AdjustSetting.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
42 changes: 42 additions & 0 deletions
42
VirtueSky/Tracking/Runtime/AppsFlyerTracking/AppsFlyerObject.cs
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,42 @@ | ||
#if VIRTUESKY_APPSFLYER | ||
using AppsFlyerSDK; | ||
#endif | ||
|
||
using System; | ||
using UnityEngine; | ||
|
||
namespace VirtueSky.Tracking | ||
{ | ||
public class AppsFlyerObject : MonoBehaviour | ||
{ | ||
private void Awake() | ||
{ | ||
#if !UNITY_EDITOR | ||
DontDestroyOnLoad(this); | ||
#endif | ||
} | ||
|
||
private void Start() | ||
{ | ||
#if VIRTUESKY_APPSFLYER | ||
// These fields are set from the editor so do not modify! | ||
//******************************// | ||
AppsFlyer.setIsDebug(AppsFlyerSetting.IsDebug); | ||
#if UNITY_WSA_10_0 && !UNITY_EDITOR | ||
AppsFlyer.initSDK(AppsFlyerSetting.DevKey, AppsFlyerSetting.UWPAppID, | ||
AppsFlyerSetting.GetConversionData ? this : null); | ||
#elif UNITY_STANDALONE_OSX && !UNITY_EDITOR | ||
AppsFlyer.initSDK(AppsFlyerSetting.DevKey, AppsFlyerSetting.MacOSAppID, | ||
AppsFlyerSetting.GetConversionData ? this : null); | ||
#else | ||
|
||
AppsFlyer.initSDK(AppsFlyerSetting.DevKey, AppsFlyerSetting.AppID, | ||
AppsFlyerSetting.GetConversionData ? this : null); | ||
#endif | ||
//******************************/ | ||
|
||
AppsFlyer.startSDK(); | ||
#endif | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
VirtueSky/Tracking/Runtime/AppsFlyerTracking/AppsFlyerObject.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
VirtueSky/Tracking/Runtime/AppsFlyerTracking/AppsFlyerSetting.cs
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,25 @@ | ||
using UnityEngine; | ||
using VirtueSky.Inspector; | ||
using VirtueSky.Utils; | ||
|
||
namespace VirtueSky.Tracking | ||
{ | ||
[EditorIcon("icon_scriptable"), HideMonoScript] | ||
public class AppsFlyerSetting : ScriptableSettings<AppsFlyerSetting> | ||
{ | ||
[SerializeField] private string devKey; | ||
[SerializeField] private string appID; | ||
[SerializeField] private string uwpAppID; | ||
[SerializeField] private string macOSAppID; | ||
[SerializeField] private bool getConversionData; | ||
[SerializeField] private bool isDebug; | ||
|
||
|
||
public static string DevKey => Instance.devKey; | ||
public static string AppID => Instance.appID; | ||
public static string UWPAppID => Instance.uwpAppID; | ||
public static string MacOSAppID => Instance.macOSAppID; | ||
public static bool IsDebug => Instance.isDebug; | ||
public static bool GetConversionData => Instance.getConversionData; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
VirtueSky/Tracking/Runtime/AppsFlyerTracking/AppsFlyerSetting.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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