-
Notifications
You must be signed in to change notification settings - Fork 3
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 #2 from NikTheNak/main
Event batching
- Loading branch information
Showing
27 changed files
with
1,062 additions
and
649 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## 0.2.0 | ||
|
||
- Events are now sent in batches to reduce network overhead | ||
- Automatic flush of events when app loses focus | ||
- While offline, events will be enqueue and sent when the app is back online | ||
- Added an option to set the appVersion during initialization | ||
- Replaced MiniJSON for TinyJSON for better serialization | ||
- Fixed issue with OS version | ||
|
||
## 0.0.1 | ||
|
||
- Initial release |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using UnityEditor; | ||
|
||
namespace AptabaseSDK | ||
{ | ||
[CustomEditor(typeof(Settings))] | ||
public class SettingsEditor : Editor | ||
{ | ||
public override void OnInspectorGUI() | ||
{ | ||
var settings = (Settings)target; | ||
|
||
EditorGUILayout.PropertyField(serializedObject.FindProperty("AppKey")); | ||
|
||
if (settings.AppKey.Contains("SH")) | ||
EditorGUILayout.PropertyField(serializedObject.FindProperty("SelfHostURL")); | ||
|
||
EditorGUILayout.PropertyField(serializedObject.FindProperty("AppBuildNumber")); | ||
|
||
EditorGUILayout.PropertyField(serializedObject.FindProperty("EnableOverride")); | ||
if (settings.EnableOverride) | ||
{ | ||
EditorGUILayout.PropertyField(serializedObject.FindProperty("AppVersion")); | ||
EditorGUILayout.PropertyField(serializedObject.FindProperty("FlushInterval")); | ||
} | ||
|
||
serializedObject.ApplyModifiedProperties(); | ||
} | ||
} | ||
} |
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using UnityEngine; | ||
|
||
namespace AptabaseSDK | ||
{ | ||
public class AptabaseService : MonoBehaviour | ||
{ | ||
private void Awake() | ||
{ | ||
DontDestroyOnLoad(gameObject); | ||
} | ||
|
||
private void OnApplicationFocus(bool hasFocus) | ||
{ | ||
Aptabase.OnApplicationFocus(hasFocus); | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
Runtime/ThirdParty/MiniJSON.cs.meta → Runtime/AptabaseService.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 was deleted.
Oops, something went wrong.
Oops, something went wrong.