gg.easy.airship 0.1.2118 → 0.1.2119

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,7 @@ namespace Airship.Editor {
22
22
  /// Handles the reconciliation of AirshipComponents
23
23
  /// </summary>
24
24
  internal static class AirshipReconciliationService {
25
- public static ReconcilerVersion DefaultReconcilerVersion => ReconcilerVersion.Version1;
25
+ public static ReconcilerVersion DefaultReconcilerVersion => ReconcilerVersion.Version2;
26
26
  public static ReconcilerVersion ReconcilerVersion {
27
27
  get {
28
28
  if (EditorIntegrationsConfig.instance.useProjectReconcileOption) {
@@ -8,7 +8,7 @@ using UnityEngine;
8
8
  using UnityEngine.Serialization;
9
9
 
10
10
  public enum ReconcilerVersion {
11
- [InspectorName("Default [Legacy Reconciler]")]
11
+ [InspectorName("Default [Reconciler V2]")]
12
12
  Default,
13
13
  [InspectorName("Legacy Reconciler")]
14
14
  Version1,
@@ -37,7 +37,7 @@ namespace Code.Http.Public {
37
37
  if (req.result == UnityWebRequest.Result.ProtocolError) {
38
38
  return new HttpResponse() {
39
39
  success = false,
40
- error = req.error,
40
+ error = req.downloadHandler.text,
41
41
  statusCode = (int)req.responseCode,
42
42
  headers = req.GetResponseHeaders()
43
43
  };
@@ -114,9 +114,11 @@ namespace Code.Http.Public {
114
114
  }
115
115
 
116
116
  RestClient.Post(UnityWebRequestProxyHelper.ApplyProxySettings(options)).Then((res) => {
117
+ var success = 200 <= res.StatusCode && res.StatusCode < 300;
117
118
  task.SetResult(new HttpResponse() {
118
- success = 200 <= res.StatusCode && res.StatusCode < 300,
119
- data = res.Text,
119
+ success = success,
120
+ data = success ? res.Text : null,
121
+ error = success ? null : res.Text,
120
122
  statusCode = (int)res.StatusCode,
121
123
  headers = res.Headers
122
124
  });
@@ -158,9 +160,11 @@ namespace Code.Http.Public {
158
160
  }
159
161
 
160
162
  RestClient.Delete(UnityWebRequestProxyHelper.ApplyProxySettings(options)).Then((res) => {
163
+ var success = 200 <= res.StatusCode && res.StatusCode < 300;
161
164
  task.SetResult(new HttpResponse() {
162
- success = 200 <= res.StatusCode && res.StatusCode < 300,
163
- data = res.Text,
165
+ success = success,
166
+ data = success ? res.Text : null,
167
+ error = success ? null : res.Text,
164
168
  statusCode = (int)res.StatusCode,
165
169
  headers = res.Headers
166
170
  });
@@ -203,9 +207,11 @@ namespace Code.Http.Public {
203
207
  }
204
208
 
205
209
  RestClient.Patch(UnityWebRequestProxyHelper.ApplyProxySettings(options)).Then((res) => {
210
+ var success = 200 <= res.StatusCode && res.StatusCode < 300;
206
211
  task.SetResult(new HttpResponse() {
207
- success = 200 <= res.StatusCode && res.StatusCode < 300,
208
- data = res.Text,
212
+ success = success,
213
+ data = success ? res.Text : null,
214
+ error = success ? null : res.Text,
209
215
  statusCode = (int)res.StatusCode,
210
216
  headers = res.Headers
211
217
  });
@@ -255,9 +261,11 @@ namespace Code.Http.Public {
255
261
  }
256
262
 
257
263
  RestClient.Put(UnityWebRequestProxyHelper.ApplyProxySettings(options)).Then((res) => {
264
+ var success = 200 <= res.StatusCode && res.StatusCode < 300;
258
265
  task.SetResult(new HttpResponse() {
259
- success = 200 <= res.StatusCode && res.StatusCode < 300,
260
- data = res.Text,
266
+ success = success,
267
+ data = success ? res.Text : null,
268
+ error = success ? null : res.Text,
261
269
  statusCode = (int)res.StatusCode,
262
270
  headers = res.Headers
263
271
  });
@@ -9,7 +9,6 @@ namespace Code.Platform.Shared {
9
9
  public static string dataStoreService = "https://data-store-service-fxy2zritya-uc.a.run.app";
10
10
  public static string deploymentService = "https://deployment-service-fxy2zritya-uc.a.run.app";
11
11
  public static string analyticsService = "https://analytics-service-fxy2zritya-uc.a.run.app";
12
- public static string moderationService = "https://moderation-service-fxy2zritya-uc.a.run.app";
13
12
  public static string gameCdn = "https://gcdn-staging.easy.gg";
14
13
  public static string cdn = "https://cdn-staging.easy.gg";
15
14
  public static string mainWeb = "https://staging.airship.gg";
@@ -21,7 +20,6 @@ namespace Code.Platform.Shared {
21
20
  public static string dataStoreService = "https://api-staging.airship.gg/data-store";
22
21
  public static string deploymentService = "https://api-staging.airship.gg/deployment";
23
22
  public static string analyticsService = "https://api-staging.airship.gg/analytics";
24
- public static string moderationService = "https://api-staging.airship.gg/moderation";
25
23
  public static string gameCdn = "https://gcdn-staging.easy.gg";
26
24
  public static string cdn = "https://cdn-staging.easy.gg";
27
25
  public static string mainWeb = "https://staging.airship.gg";
@@ -35,7 +33,6 @@ namespace Code.Platform.Shared {
35
33
  public static string dataStoreService = "https://data-store-service-hwcvz2epka-uc.a.run.app";
36
34
  public static string deploymentService = "https://deployment-service-hwcvz2epka-uc.a.run.app";
37
35
  public static string analyticsService = "https://analytics-service-hwcvz2epka-uc.a.run.app";
38
- public static string moderationService = "https://moderation-service-fxy2zritya-uc.a.run.app"; // TODO: Update this url to production url
39
36
  public static string cdn = "https://cdn.airship.gg";
40
37
  public static string gameCdn = "https://gcdn.airship.gg";
41
38
  public static string mainWeb = "https://airship.gg";
@@ -47,7 +44,6 @@ namespace Code.Platform.Shared {
47
44
  public static string dataStoreService = "https://api.airship.gg/data-store";
48
45
  public static string deploymentService = "https://api.airship.gg/deployment";
49
46
  public static string analyticsService = "https://api.airship.gg/analytics";
50
- public static string moderationService = "https://api.airship.gg/moderation";
51
47
  public static string cdn = "https://cdn.airship.gg";
52
48
  public static string gameCdn = "https://gcdn.airship.gg";
53
49
  public static string mainWeb = "https://airship.gg";
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gg.easy.airship",
3
- "version": "0.1.2118",
3
+ "version": "0.1.2119",
4
4
  "displayName": "Airship",
5
5
  "unity": "2021.3",
6
6
  "unityRelease": "12f1",