com.amanotes.gdk 0.2.58 → 0.2.59

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.59 - 2024-04-12]
4
+ - [Dev] Improve code coverage
5
+
6
+
3
7
  ## [0.2.58 - 2024-04-09]
4
8
  - [DEV] combine code coverage report
5
9
  - [Dev] Improve GDK Utils
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/Runtime/AmaGDK.cs CHANGED
@@ -17,7 +17,7 @@ namespace Amanotes.Core
17
17
  {
18
18
  public partial class AmaGDK : MonoBehaviour
19
19
  {
20
- public const string VERSION = "0.2.58";
20
+ public const string VERSION = "0.2.59";
21
21
 
22
22
  internal static AmaGDK _instance;
23
23
  internal static Status _status = Status.None;
@@ -12,10 +12,11 @@ namespace Amanotes.Core
12
12
 
13
13
  public static void LogEventError(string message)
14
14
  {
15
- #if !AMAGDK_DEV
15
+ #if UNITY_EDITOR
16
+ throw new KlavarException(message);
17
+ #else
16
18
  Logging.LogError(message);
17
19
  #endif
18
- throw new KlavarException(message);
19
20
  }
20
21
  }
21
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.amanotes.gdk",
3
- "version": "0.2.58",
3
+ "version": "0.2.59",
4
4
  "displayName": "AmaGDK",
5
5
  "description": "Amanotes Game Development Kit",
6
6
  "unity": "2019.4",
@@ -1,92 +0,0 @@
1
- //
2
- // #if UNITY_EDITOR
3
- //
4
- // using System.Linq;
5
- // using System.Collections;
6
- // using UnityEditor;
7
- // using UnityEngine;
8
- //
9
- // using System.IO;
10
- // using System.Collections.Generic;
11
- // using System;
12
- //
13
- // namespace Amanotes.Core
14
- // {
15
- // /// <summary>
16
- // /// Prety Log Event Tools
17
- // /// </summary>
18
- // public class KlavarEventTools
19
- // {
20
- // public class KlavarEventLine
21
- // {
22
- // public string No;
23
- // public string EventName;
24
- // public string EventParameterName;
25
- //
26
- // public string ValueType;
27
- //
28
- // public string ParameterValue;
29
- //
30
- // public bool IsInvalid()
31
- // {
32
- // return string.IsNullOrWhiteSpace(No)
33
- // && string.IsNullOrWhiteSpace(EventName)
34
- // && string.IsNullOrWhiteSpace(EventParameterName)
35
- // && string.IsNullOrWhiteSpace(ValueType)
36
- // && string.IsNullOrWhiteSpace(ParameterValue);
37
- // }
38
- // }
39
- //
40
- // static private IEnumerable<T[]> Chunk<T>(IEnumerable<T> colection, Func<T, bool> splitter)
41
- // {
42
- //
43
- // IEnumerator<T> iter = colection.GetEnumerator();
44
- // var running = iter.MoveNext();
45
- //
46
- // IEnumerable<T> OneChunk()
47
- // {
48
- // yield return iter.Current;
49
- // while (running = iter.MoveNext())
50
- // {
51
- // var val = iter.Current;
52
- // if (splitter(val)) break;
53
- // yield return val;
54
- // }
55
- // }
56
- //
57
- // while (running)
58
- // {
59
- // var chunk = OneChunk().ToArray();
60
- // if (chunk.Length > 0) yield return chunk;
61
- // }
62
- // }
63
- //
64
- //
65
- // static void ConvertFromCSV()
66
- // {
67
- //
68
- // // string path = EditorUtility.OpenFilePanel("Overwrite with png", ".", "tsv");
69
- //
70
- // var path = "/Users/nam.dn/Downloads/Test Pretty Event - Ad Mon.tsv";
71
- // if (string.IsNullOrEmpty(path)) return;
72
- //
73
- //
74
- // Debug.Log(path);
75
- // string text = File.ReadAllText(path);
76
- // var lines = Amanotes.Klavar.TSVParser
77
- // .Parse<KlavarEventLine>(text)
78
- // .Where(line => !line.IsInvalid());
79
- //
80
- // var linesEvents = Chunk(lines, line => !string.IsNullOrEmpty(line.No));
81
- // foreach (var linesEvent in linesEvents)
82
- // {
83
- // Debug.Log(linesEvent[0]);
84
- // Debug.Log(linesEvent.Length);
85
- //
86
- // var linesParams = Chunk(lines, line => !string.IsNullOrEmpty(line.EventParameterName));
87
- //
88
- // }
89
- // }
90
- // }
91
- // }
92
- // #endif
@@ -1,11 +0,0 @@
1
- fileFormatVersion: 2
2
- guid: 4dc125edcd6594383a73b65b72442585
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant: