File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -322,13 +322,6 @@ public Context()
322
322
device . device_type = SystemInfo . deviceType . ToString ( ) ;
323
323
device . cpu_description = SystemInfo . processorType ;
324
324
325
- #if UNITY_ANDROID
326
- using ( var system = new AndroidJavaClass ( "java.lang.System" ) )
327
- {
328
- device . arch = system . CallStatic < string > ( "getProperty" , "os.arch" ) ;
329
- }
330
- #endif
331
-
332
325
#if UNITY_EDITOR
333
326
device . simulator = true ;
334
327
#else
@@ -375,6 +368,13 @@ public class Tags
375
368
public class Extra
376
369
{
377
370
public string unityVersion ;
371
+ public string screenOrientation ;
372
+ }
373
+
374
+ [ Serializable ]
375
+ public class User
376
+ {
377
+ public string email = "[email protected] " ;
378
378
}
379
379
380
380
[ Serializable ]
@@ -389,7 +389,7 @@ public class SentryEvent
389
389
public Context contexts ;
390
390
public SdkVersion sdk = new SdkVersion ( ) ;
391
391
public List < Breadcrumb > breadcrumbs = null ;
392
-
392
+ public User user = new User ( ) ;
393
393
public Tags tags ;
394
394
public Extra extra ;
395
395
Original file line number Diff line number Diff line change @@ -304,6 +304,7 @@ private void PrepareEvent(SentryEvent evt)
304
304
305
305
evt . tags . deviceUniqueIdentifier = SystemInfo . deviceUniqueIdentifier ;
306
306
evt . extra . unityVersion = Application . unityVersion ;
307
+ evt . extra . screenOrientation = Screen . orientation . ToString ( ) ;
307
308
}
308
309
309
310
private IEnumerator
You can’t perform that action at this time.
0 commit comments