com.amanotes.gdk 0.2.11 → 0.2.12

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.12 - 2023-07-07]
4
+ ### Restructure GDK - symlink GDK source to unity projects
5
+ ### Unity 2019 compatible - no null coalescing
6
+ ### Remove redundant AmaPassport config field
7
+ ### Auto request AmaId
8
+
3
9
  ## [0.2.11 - 2023-06-29]
4
10
  ### SetLogCondition with EventParam
5
11
  ### Rename Migrated -> HasMigrated
@@ -32,6 +32,7 @@ namespace Amanotes.Editor
32
32
  FIREBASE_ANALYTICS,
33
33
  FIREBASE_REMOTE_CONFIG,
34
34
  APPSFLYER,
35
+ ADJUST,
35
36
  IRONSOURCE,
36
37
  REVENUECAT
37
38
  };
@@ -101,6 +101,7 @@ namespace Amanotes.Editor
101
101
  case FIREBASE_ANALYTICS: return FirebaseAnalytics();
102
102
  case FIREBASE_REMOTE_CONFIG: return FirebaseRemoteConfig();
103
103
  case APPSFLYER: return AppsFlyer();
104
+ case ADJUST: return Adjust();
104
105
  case IRONSOURCE: return Ironsource();
105
106
  case REVENUECAT: return RevenueCat();
106
107
  default:
@@ -172,6 +173,25 @@ namespace Amanotes.Editor
172
173
 
173
174
  return version.Trim();
174
175
  }
176
+
177
+ internal static string Adjust()
178
+ {
179
+ var version = "";
180
+ List<Assembly> assemblies = AppDomain.CurrentDomain.GetAssemblies().ToList();
181
+ foreach (var assembly in assemblies)
182
+ {
183
+ foreach (var oType in assembly.GetTypes())
184
+ {
185
+ if (oType.Name.Equals("AdjustAndroid") || oType.Name.Equals("AdjustiOS") )
186
+ {
187
+ version = oType.GetField("sdkPrefix", BindingFlags.Static | BindingFlags.NonPublic)?.GetValue(null).ToString();
188
+ version = version.StartsWith("unity") ? version.Substring(5) : "";
189
+ }
190
+ }
191
+ }
192
+
193
+ return version.Trim();
194
+ }
175
195
 
176
196
  internal static string Ironsource()
177
197
  {
@@ -14,8 +14,14 @@ namespace Amanotes.Editor
14
14
 
15
15
  private static readonly Texture2D TAG_0 = (Texture2D)EditorGUIUtility.IconContent("sv_label_0").image;
16
16
  private static readonly Texture2D TAG_1 = (Texture2D)EditorGUIUtility.IconContent("sv_icon_dot1_pix16_gizmo").image;
17
- private static GUIStyle versionStyle;
18
- private static GUIStyle tagLabelStyle;
17
+ private static GUIStyle versionStyle = new GUIStyle(EditorStyles.miniBoldLabel)
18
+ {
19
+ alignment = TextAnchor.MiddleCenter
20
+ };
21
+ private static GUIStyle tagLabelStyle = new GUIStyle(EditorStyles.miniBoldLabel)
22
+ {
23
+ alignment = TextAnchor.MiddleCenter
24
+ };
19
25
 
20
26
  public static void SectionLabel(string text)
21
27
  {
@@ -88,11 +94,6 @@ namespace Amanotes.Editor
88
94
  public static void SemVerGUI(string title, SemVer version, Color? color1 = null, Color? color2 = null)
89
95
  {
90
96
  const int TAG_SIZE = 60;
91
- versionStyle ??= new GUIStyle(EditorStyles.miniBoldLabel)
92
- {
93
- alignment = TextAnchor.MiddleCenter
94
- };
95
-
96
97
  var rect = GUILayoutUtility.GetRect(120, 16f);
97
98
  var rect1 = rect;
98
99
 
@@ -104,8 +105,8 @@ namespace Amanotes.Editor
104
105
  rect2.xMin += (rect2.width-TAG_SIZE);
105
106
  rect2.width = TAG_SIZE;
106
107
 
107
- color1 ??= LIGHT_BLUE;
108
- color2 ??= LIGHT_GRAY;
108
+ if (!color1.HasValue) color1 = LIGHT_BLUE;
109
+ if (!color2.HasValue) color2 = LIGHT_GRAY;
109
110
  DrawTag(rect2, version.ToString(), version.isValid ? color1.Value : color2.Value, 0.5f);
110
111
 
111
112
  rect1.xMin += 4f;
@@ -129,11 +130,6 @@ namespace Amanotes.Editor
129
130
 
130
131
  public static void DrawTag(Rect rect, string label, Color tagColor, float alpha = 1f, float margin = 1f)
131
132
  {
132
- tagLabelStyle ??= new GUIStyle(EditorStyles.miniBoldLabel)
133
- {
134
- alignment = TextAnchor.MiddleCenter
135
- };
136
-
137
133
  rect.xMin += margin;
138
134
  rect.xMax -= margin;
139
135
  rect.yMin += margin;
Binary file
Binary file
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: f2d9b3b564a254fc7914e00113b51329
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
Binary file
Binary file
Binary file
@@ -44,6 +44,7 @@ namespace Amanotes.Core.Internal
44
44
  {
45
45
  "FirebaseAnalyticsAdapter_v9.1.0",
46
46
  "AppsFlyerAdapter_v6.5.4",
47
+ "AdjustAdapter_v4.33.0",
47
48
  "IronsourceAdapter_v7.2.6",
48
49
  "FirebaseRemoteConfigAdapter_v9.1.0"
49
50
  };
package/Runtime/AmaGDK.cs CHANGED
@@ -10,7 +10,7 @@ namespace Amanotes.Core
10
10
  {
11
11
  public partial class AmaGDK : MonoBehaviour
12
12
  {
13
- public const string VERSION = "0.2.11";
13
+ public const string VERSION = "0.2.12";
14
14
 
15
15
  internal static AmaGDK _instance;
16
16
  internal static Status _status = Status.None;
@@ -197,6 +197,7 @@ namespace Amanotes.Core
197
197
  public const string FIREBASE_ANALYTICS = "FirebaseAnalytics";
198
198
  public const string FIREBASE_REMOTE_CONFIG = "FirebaseRemoteConfig";
199
199
  public const string APPSFLYER = "AppsFlyer";
200
+ public const string ADJUST = "Adjust";
200
201
  public const string IRONSOURCE = "IronSource";
201
202
  public const string REVENUECAT = "RevenueCat";
202
203
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.amanotes.gdk",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "displayName": "AmaGDK",
5
5
  "description": "Amanotes Game Development Kit",
6
6
  "unity": "2020.3",