Skip to content

Commit

Permalink
Release 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
yuqiang committed Apr 22, 2022
1 parent 4a51641 commit 499bdd9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Assets/Sample/Sample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private void OnGUI()
print("Track an Event.");
SensorsDataAPI.Track("Jjcheng112", dictionary);
}


GUILayout.Space(20);

Expand All @@ -62,7 +62,7 @@ private void OnGUI()
{
SceneManager.LoadScene("Sample");
}

GUILayout.Space(20);
if (GUILayout.Button("set android max cache size"))
{
Expand Down
4 changes: 1 addition & 3 deletions Assets/SensorsAnalytics/SensorsDataAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class SensorsDataAPI : MonoBehaviour
{
public readonly static string ANDROID_VERSION = "4.4.3";
public readonly static string IOS_VERSION = "2.1.17";
public readonly static string UNITY_VERSION = "1.0.2";
public readonly static string UNITY_VERSION = "1.0.3";
/// <summary>
/// 当前 Unity SDK 版本
/// </summary>
Expand Down Expand Up @@ -331,7 +331,6 @@ public static void SetFlushNetworkPolicy(int types)
analyticsWrapper.SetFlushNetworkPolicy(types);
}


/* /// <summary>
/// 注册动态公共属性
/// </summary>
Expand All @@ -343,4 +342,3 @@ public static void RegisterDynamciSuperProperties(IDynamicSuperProperties superP
}

}

2 changes: 1 addition & 1 deletion Assets/SensorsAnalytics/Wrapper/SAAndroidWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace SensorsAnalytics.Wrapper
{
public partial class SensorsAnalyticsWrapper
{
#if UNITY_ANDROID
#if (UNITY_ANDROID && !UNITY_EDITOR)

private static readonly AndroidJavaClass sensorsDataAPIClass = new AndroidJavaClass("com.sensorsdata.analytics.android.sdk.SensorsDataAPI");
private AndroidJavaObject apiInstance;
Expand Down
4 changes: 2 additions & 2 deletions Assets/SensorsAnalytics/Wrapper/SAEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace SensorsAnalytics.Wrapper
public partial class SensorsAnalyticsWrapper
{

#if (UNITY_EDITOR && !(UNITY_ANDROID || UNITY_IOS))
#if UNITY_EDITOR
private void _init()
{
SALog.Debug("Editor Log: calling init.");
Expand Down Expand Up @@ -169,4 +169,4 @@ private void _setFlushNetworkPolicy(int types)

#endif
}
}
}
4 changes: 2 additions & 2 deletions Assets/SensorsAnalytics/Wrapper/SAIOSWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace SensorsAnalytics.Wrapper
{
public partial class SensorsAnalyticsWrapper
{
#if UNITY_IOS
#if (UNITY_IOS && !UNITY_EDITOR)
[DllImport("__Internal")]
private static extern void start(string server_url, bool enableLog, int eventType, int networkType);
[DllImport("__Internal")]
Expand Down Expand Up @@ -154,7 +154,7 @@ private void _handleSchemeUrl(string url)
{
handle_scheme_url(url);
}

private void _profileSetOnce(Dictionary<string, object> dic)
{
profile_set_once(SAUtils.Parse2JsonStr(dic));
Expand Down
2 changes: 1 addition & 1 deletion Assets/SensorsAnalytics/Wrapper/SAWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,4 @@ public void SetFlushNetworkPolicy(int types)
}*/

}
}
}

0 comments on commit 499bdd9

Please # to comment.