Skip to content

Commit 36965ec

Browse files
Add 'Preserve' compiler directive so that code, specifically those in… (#195)
* Add 'Preserve' compiler directive so that code, specifically those invoked via reflection by newtonsoft.json, is not stripped during builds * Add more Preserve tags
1 parent 19dc2c9 commit 36965ec

File tree

67 files changed

+226
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+226
-12
lines changed

Assets/PlayFab/PlayFabEditorExtensions/Editor/Resources/MostRecentPackage.unitypackage.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Packages/Sequence-Unity/Sequence/SequenceSDK/EmbeddedWallet/DataTypes/ParameterTypes/DelayedEncode.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
using UnityEngine.Scripting;
2+
13
namespace Sequence.EmbeddedWallet
24
{
5+
[Preserve]
36
[System.Serializable]
47
public class DelayedEncode : Transaction
58
{
@@ -9,6 +12,7 @@ public class DelayedEncode : Transaction
912
public string type = TypeIdentifier;
1013
public string value;
1114

15+
[Preserve]
1216
public DelayedEncode(string contractAddress, string value, DelayedEncodeData data)
1317
{
1418
this.to = contractAddress;

Packages/Sequence-Unity/Sequence/SequenceSDK/EmbeddedWallet/DataTypes/ParameterTypes/DelayedEncodeData.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
using System.Linq;
55
using Newtonsoft.Json;
66
using Newtonsoft.Json.Linq;
7+
using UnityEngine.Scripting;
78

89
namespace Sequence.EmbeddedWallet
910
{
11+
[Preserve]
1012
[Serializable]
1113
[JsonConverter(typeof(DelayedEncodeDataConverter))]
1214
public class DelayedEncodeData

Packages/Sequence-Unity/Sequence/SequenceSDK/EmbeddedWallet/DataTypes/ParameterTypes/Identity.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using UnityEngine.Scripting;
23

34
namespace Sequence.EmbeddedWallet
45
{
@@ -10,6 +11,7 @@ public class Identity
1011
public string sub;
1112
public string email;
1213

14+
[Preserve]
1315
public Identity(string type, string iss, string sub, string email)
1416
{
1517
this.type = type;

Packages/Sequence-Unity/Sequence/SequenceSDK/EmbeddedWallet/DataTypes/ParameterTypes/IntentDataCloseSession.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
using System;
2+
using UnityEngine.Scripting;
23

34
namespace Sequence.EmbeddedWallet
45
{
6+
[Preserve]
57
[Serializable]
68
public class IntentDataCloseSession
79
{
810
public string sessionId;
911

12+
[Preserve]
1013
public IntentDataCloseSession(string sessionId)
1114
{
1215
this.sessionId = sessionId;

Packages/Sequence-Unity/Sequence/SequenceSDK/EmbeddedWallet/DataTypes/ParameterTypes/IntentDataFederateAccount.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
using Newtonsoft.Json;
2+
using UnityEngine.Scripting;
23

34
namespace Sequence.EmbeddedWallet
45
{
6+
[Preserve]
57
public class IntentDataFederateAccount
68
{
79
public string answer;
@@ -10,6 +12,7 @@ public class IntentDataFederateAccount
1012
public string verifier;
1113
public string wallet;
1214

15+
[Preserve]
1316
[JsonConstructor]
1417
public IntentDataFederateAccount(string sessionId, string wallet, string identityType, string verifier, string answer)
1518
{

Packages/Sequence-Unity/Sequence/SequenceSDK/EmbeddedWallet/DataTypes/ParameterTypes/IntentDataFeeOptions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
using System;
22
using Newtonsoft.Json;
3+
using UnityEngine.Scripting;
34

45
namespace Sequence.EmbeddedWallet
56
{
7+
[Preserve]
68
public class IntentDataFeeOptions
79
{
810
public string identifier;
911
public string network;
1012
public Transaction[] transactions;
1113
public string wallet;
1214

15+
[Preserve]
1316
[JsonConstructor]
1417
public IntentDataFeeOptions(string identifier, string network, Transaction[] transactions, string wallet)
1518
{

Packages/Sequence-Unity/Sequence/SequenceSDK/EmbeddedWallet/DataTypes/ParameterTypes/IntentDataFinishValidateSession.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using UnityEngine.Scripting;
23

34
namespace Sequence.EmbeddedWallet
45
{

Packages/Sequence-Unity/Sequence/SequenceSDK/EmbeddedWallet/DataTypes/ParameterTypes/IntentDataGetIdToken.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
using System;
2+
using UnityEngine.Scripting;
23

34
namespace Sequence.EmbeddedWallet
45
{
6+
[Preserve]
57
[Serializable]
68
public class IntentDataGetIdToken
79
{
810
public string sessionId;
911
public string wallet;
1012
public string nonce;
1113

14+
[Preserve]
1215
public IntentDataGetIdToken(string sessionId, string walletAddress, string nonce = null)
1316
{
1417
this.sessionId = sessionId;

Packages/Sequence-Unity/Sequence/SequenceSDK/EmbeddedWallet/DataTypes/ParameterTypes/IntentDataGetSession.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
using System;
2+
using UnityEngine.Scripting;
23

34
namespace Sequence.EmbeddedWallet
45
{
6+
[Preserve]
57
[Serializable]
68
public class IntentDataGetSession
79
{
810
public string sessionId;
911
public string wallet;
1012

13+
[Preserve]
1114
public IntentDataGetSession(string sessionId, string walletAddress)
1215
{
1316
this.sessionId = sessionId;

0 commit comments

Comments
 (0)