File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## 0.2.3
2+
3+ - use new session id format
4+
15## 0.2.2
26
37- Fixed issue with settings importer
Original file line number Diff line number Diff line change 11{
22 "name" : " com.aptabase" ,
33 "displayName" : " Aptabase" ,
4- "version" : " 0.2.2 " ,
4+ "version" : " 0.2.3 " ,
55 "unity" : " 2018.4" ,
66 "description" : " Analytics for Apps. Privacy-First. Simple. Real-Time." ,
77 "keywords" : [" analytics" ],
Original file line number Diff line number Diff line change 33using System . Threading ;
44using System . Threading . Tasks ;
55using UnityEngine ;
6+ using Random = UnityEngine . Random ;
67
78namespace AptabaseSDK
89{
@@ -165,6 +166,11 @@ private static int GetFlushInterval()
165166 return _env . isDebug ? 2000 : 60000 ;
166167 }
167168
168- private static string NewSessionId ( ) => Guid . NewGuid ( ) . ToString ( ) . ToLower ( ) ;
169+ private static string NewSessionId ( )
170+ {
171+ var epochInSeconds = DateTimeOffset . UtcNow . ToUnixTimeSeconds ( ) ;
172+ var random = Random . Range ( 0 , 99999999 ) ;
173+ return ( epochInSeconds * 100000000 + random ) . ToString ( ) ;
174+ }
169175 }
170176}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ namespace AptabaseSDK
44{
55 public static class Version
66 {
7- private const string SDK_VERSION = "Aptabase.Unity@0.2.2 " ;
7+ private const string SDK_VERSION = "Aptabase.Unity@0.2.3 " ;
88
99 public static VersionInfo GetVersionInfo ( Settings settings )
1010 {
You can’t perform that action at this time.
0 commit comments