com.typhoon.unitysdk 1.0.27 → 1.0.28

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.
@@ -39,8 +39,7 @@ namespace TyphoonUnitySDK
39
39
  var done = SwitchPlatformTo(setting.BuildTarget);
40
40
  if (done)
41
41
  {
42
- //写入apply 历史
43
- UniEditor.WriteApplyHistory(setting);
42
+
44
43
  //修改参数
45
44
  switch (setting.BuildTarget)
46
45
  {
@@ -8,11 +8,6 @@ namespace TyphoonUnitySDK
8
8
  {
9
9
  public class PreferencesWindow : EditorWindow
10
10
  {
11
- private static bool _preferenceFoldout = false;
12
-
13
- private static bool _wxMiniConfigFoldout = false;
14
-
15
-
16
11
  private static Vector2 _scroll;
17
12
 
18
13
  [MenuItem("TyphoonSDK/选项", priority = 10000)]
@@ -24,7 +19,6 @@ namespace TyphoonUnitySDK
24
19
  win.Show();
25
20
  }
26
21
 
27
-
28
22
  protected void OnGUI()
29
23
  {
30
24
  var rect = new Rect(0, 0, position.width, position.height);
@@ -47,8 +47,6 @@ namespace TyphoonUnitySDK
47
47
  return EditorIcons.icon_vivo;
48
48
  case AppChannel.OppoMini:
49
49
  return EditorIcons.icon_oppo;
50
- default:
51
- return null;
52
50
  }
53
51
 
54
52
  return null;
@@ -221,7 +219,14 @@ namespace TyphoonUnitySDK
221
219
 
222
220
  if (GUI.Button(rectItem, new GUIContent(setting.name, GetLogo(setting.Channel)), style))
223
221
  {
222
+ var change = _select != setting;
224
223
  _select = setting;
224
+ //写入apply 历史
225
+ if (change)
226
+ {
227
+ // Debug.Log("写入历史");
228
+ UniEditor.WriteApplyHistory(setting);
229
+ }
225
230
  }
226
231
 
227
232
  if (_LockChannel.Contains(setting.Channel))
@@ -335,7 +340,6 @@ namespace TyphoonUnitySDK
335
340
  rectNextBtn.x -= 2;
336
341
  rectNextBtn.x -= rectNextBtn.width;
337
342
  bool clickBuildAA = false;
338
- var index = 0;
339
343
  if (UniEditor.HasAddressableSupport())
340
344
  {
341
345
  clickBuildAA = GUI.Button(rectNextBtn, "构建AA", Styles.rbutton_bold);
@@ -129,6 +129,7 @@ namespace TyphoonUnitySDK
129
129
 
130
130
  /*修改config.java*/
131
131
  public void WriteConfigJava()
132
+
132
133
  {
133
134
  var config =
134
135
  $@"package com.typhoon.vivo_union;
@@ -35,7 +35,6 @@ namespace TyphoonUnitySDK
35
35
  }
36
36
  }
37
37
 
38
-
39
38
  protected void OnGUI()
40
39
  {
41
40
  var rect = new Rect(0, 0, position.width, position.height);
@@ -39,12 +39,11 @@ namespace TyphoonUnitySDK
39
39
  public static string PackagePath_Douyin = $"{PathRoot}/Sources~/Package/Douyin.unitypackage";
40
40
 
41
41
 
42
-
43
42
  /// <summary>
44
43
  /// google play资源包
45
44
  /// </summary>
46
45
  public static string PackagePath_GooglePlay = $"{PathRoot}/Sources~/Package/GooglePlay.unitypackage";
47
-
46
+
48
47
  /// <summary>
49
48
  /// Toast模块
50
49
  /// </summary>
@@ -59,7 +58,7 @@ namespace TyphoonUnitySDK
59
58
  /// <summary>
60
59
  /// apply历史记录
61
60
  /// </summary>
62
- public static readonly string APPLY_HISTORY = "Temp/typhoon_apply_history.txt";
61
+ public static readonly string APPLY_HISTORY = ".typhoon/typhoon_sdk_apply_history.txt";
63
62
 
64
63
 
65
64
  /// <summary>
@@ -405,7 +404,7 @@ namespace TyphoonUnitySDK
405
404
  sb.Append($".{current}");
406
405
  return sb.ToString();
407
406
  }
408
- catch (Exception e)
407
+ catch (Exception)
409
408
  {
410
409
  Debug.LogError("无法识别版本号格式");
411
410
  }
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.0.27","description":"","unity":"2018.1","type":"tool","hideInEditor":false,"author":{"name":"Jan Zhang","email":"","url":""},"changelogUrl":"","documentationUrl":"","keywords":["typhoon"],"license":"","licensesUrl":"","customDependencies":[{"PackageName":"com.unity.nuget.newtonsoft-json","Value":"2.0.0"}],"dependencies":{"com.unity.nuget.newtonsoft-json":"2.0.0"}}
1
+ {"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.0.28","description":"","unity":"2018.1","type":"tool","hideInEditor":false,"author":{"name":"Jan Zhang","email":"","url":""},"changelogUrl":"","documentationUrl":"","keywords":["typhoon"],"license":"","licensesUrl":"","customDependencies":[{"PackageName":"com.unity.nuget.newtonsoft-json","Value":"2.0.0"}],"dependencies":{"com.unity.nuget.newtonsoft-json":"2.0.0"}}
@@ -1,133 +0,0 @@
1
- %YAML 1.1
2
- %TAG !u! tag:unity3d.com,2011:
3
- --- !u!114 &11400000
4
- MonoBehaviour:
5
- m_ObjectHideFlags: 0
6
- m_CorrespondingSourceObject: {fileID: 0}
7
- m_PrefabInstance: {fileID: 0}
8
- m_PrefabAsset: {fileID: 0}
9
- m_GameObject: {fileID: 0}
10
- m_Enabled: 1
11
- m_EditorHideFlags: 0
12
- m_Script: {fileID: 11500000, guid: b4b13ba135089db49ac6aa3f0aa8e564, type: 3}
13
- m_Name: SkinsTexture
14
- m_EditorClassIdentifier:
15
- Texture2D:
16
- - Name: box@2x
17
- Texture2D: {fileID: 0}
18
- - Name: btn act@2x
19
- Texture2D: {fileID: 0}
20
- - Name: btn on@2x
21
- Texture2D: {fileID: 0}
22
- - Name: btn onact@2x
23
- Texture2D: {fileID: 0}
24
- - Name: btn@2x
25
- Texture2D: {fileID: 0}
26
- - Name: btn_active
27
- Texture2D: {fileID: 0}
28
- - Name: btn_blue_active
29
- Texture2D: {fileID: 0}
30
- - Name: btn_blue_hover
31
- Texture2D: {fileID: 0}
32
- - Name: btn_blue_normal
33
- Texture2D: {fileID: 0}
34
- - Name: btn_green_active
35
- Texture2D: {fileID: 0}
36
- - Name: btn_green_hover
37
- Texture2D: {fileID: 0}
38
- - Name: btn_green_normal
39
- Texture2D: {fileID: 0}
40
- - Name: btn_hover
41
- Texture2D: {fileID: 0}
42
- - Name: btn_normal
43
- Texture2D: {fileID: 0}
44
- - Name: btn_yellow_active
45
- Texture2D: {fileID: 0}
46
- - Name: btn_yellow_hover
47
- Texture2D: {fileID: 0}
48
- - Name: btn_yellow_normal
49
- Texture2D: {fileID: 0}
50
- - Name: buttonpulldown act@2x
51
- Texture2D: {fileID: 0}
52
- - Name: buttonpulldown@2x
53
- Texture2D: {fileID: 0}
54
- - Name: PopupWindowOff
55
- Texture2D: {fileID: 0}
56
- - Name: PopupWindowOff@2x
57
- Texture2D: {fileID: 0}
58
- - Name: PopupWindowOn
59
- Texture2D: {fileID: 0}
60
- - Name: PopupWindowOn@2x
61
- Texture2D: {fileID: 0}
62
- - Name: scroll horiz left act@2x
63
- Texture2D: {fileID: 0}
64
- - Name: scroll horiz left@2x
65
- Texture2D: {fileID: 0}
66
- - Name: scroll horiz right act@2x
67
- Texture2D: {fileID: 0}
68
- - Name: scroll horiz right@2x
69
- Texture2D: {fileID: 0}
70
- - Name: scroll horiz thumb@2x
71
- Texture2D: {fileID: 0}
72
- - Name: scroll horiz@2x
73
- Texture2D: {fileID: 0}
74
- - Name: scroll vert down act@2x
75
- Texture2D: {fileID: 0}
76
- - Name: scroll vert down@2x
77
- Texture2D: {fileID: 0}
78
- - Name: scroll vert thumb@2x
79
- Texture2D: {fileID: 0}
80
- - Name: scroll vert up act@2x
81
- Texture2D: {fileID: 0}
82
- - Name: scroll vert up@2x
83
- Texture2D: {fileID: 0}
84
- - Name: scroll vert@2x
85
- Texture2D: {fileID: 0}
86
- - Name: search focused@2x
87
- Texture2D: {fileID: 0}
88
- - Name: search@2x
89
- Texture2D: {fileID: 0}
90
- - Name: searchCancelButton@2x
91
- Texture2D: {fileID: 0}
92
- - Name: searchCancelButtonActive@2x
93
- Texture2D: {fileID: 0}
94
- - Name: searchCancelButtonOff@2x
95
- Texture2D: {fileID: 0}
96
- - Name: slider horiz@2x
97
- Texture2D: {fileID: 0}
98
- - Name: slider thumb act@2x
99
- Texture2D: {fileID: 0}
100
- - Name: slider thumb focus@2x
101
- Texture2D: {fileID: 0}
102
- - Name: slider thumb@2x
103
- Texture2D: {fileID: 0}
104
- - Name: slider vert@2x
105
- Texture2D: {fileID: 0}
106
- - Name: TextField focused@2x
107
- Texture2D: {fileID: 0}
108
- - Name: TextField@2x
109
- Texture2D: {fileID: 0}
110
- - Name: toggle act@2x
111
- Texture2D: {fileID: 0}
112
- - Name: toggle focus@2x
113
- Texture2D: {fileID: 0}
114
- - Name: toggle on act@2x
115
- Texture2D: {fileID: 0}
116
- - Name: toggle on focus@2x
117
- Texture2D: {fileID: 0}
118
- - Name: toggle on@2x
119
- Texture2D: {fileID: 0}
120
- - Name: toggle@2x
121
- Texture2D: {fileID: 0}
122
- - Name: toolbar button act on@2x
123
- Texture2D: {fileID: 0}
124
- - Name: toolbar button act@2x
125
- Texture2D: {fileID: 0}
126
- - Name: toolbar button on@2x
127
- Texture2D: {fileID: 0}
128
- - Name: toolbar button@2x
129
- Texture2D: {fileID: 0}
130
- - Name: toolbar popup@2x
131
- Texture2D: {fileID: 0}
132
- - Name: toolbar pulldown@2x
133
- Texture2D: {fileID: 0}
@@ -1,8 +0,0 @@
1
- fileFormatVersion: 2
2
- guid: b483135a891a1bc4ea22f8cd1bc29431
3
- NativeFormatImporter:
4
- externalObjects: {}
5
- mainObjectFileID: 11400000
6
- userData:
7
- assetBundleName:
8
- assetBundleVariant: