Skip to content

Commit 063ca9b

Browse files
author
hollislu
committed
微信小游戏api更新 & 导出模板更新
1 parent 2888f90 commit 063ca9b

File tree

206 files changed

+38169
-12901
lines changed

Some content is hidden

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

206 files changed

+38169
-12901
lines changed

Demo/API_V2/Assets/WX-WASM-SDK-V2/CHANGELOG.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,35 @@ Removed - 删除功能/接口
66
Fixed - 修复问题
77
Others - 其他
88
-->
9-
## 2023-12-18
10-
【重要更新】包含重要bugfix、特性支持
9+
## 2024-1-18 【普通更新】
10+
包含重要bugfix、特性支持
11+
* 普通:更新适配插件版本到1.2.38
12+
### Fixed
13+
* 普通:不支持WebGL2的旧Android微信版本提供升级指引
14+
15+
## 2024-1-15 【普通更新】
16+
包含重要bugfix、特性支持
17+
### Feature
18+
* 重要:增加iOS高性能+(iOSPerformancePlus)选项,请查阅[高性能+模式](https://developers.weixin.qq.com/minigame/dev/guide/performance/perf-high-performance-plus.html),有助于提升渲染兼容性、降低WebContent进程内存
19+
* 普通:陀螺仪去json性能优化
20+
### Fixed
21+
* 普通:修复蓝牙数据传输问题
22+
* 普通:修复广告低版本微信ReportshareBehavior上报问题
23+
* 普通:修复2021.3.33 ContextMenu适配
24+
* 普通:修复开放域排行榜触控
25+
26+
## 2024-1-2 【重要更新】
27+
包含重要bugfix、特性支持
28+
### Feature
29+
* 普通:启动剧情新增Hash 、版本号兼容验证逻辑
30+
* 普通:转换配置新增iOS dpr选项
31+
* 普通:C# SDK支持文档注释
32+
### Fixed
33+
* 重要:修复Android系统代码分包Patch功能不生效的问题(需同时升级分包工具插件至1.1.12)
34+
* 普通:修复压缩纹理工具在一些特殊字符转义失败的bug
35+
36+
## 2023-12-18 重要更新】
37+
包含重要bugfix、特性支持
1138
### Feature
1239
* 普通:TouchStart/TouchEnd去json性能优化
1340
### Fixed

Demo/API_V2/Assets/WX-WASM-SDK-V2/Editor/MiniGameConfig.asset

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ MonoBehaviour:
1414
m_EditorClassIdentifier:
1515
ProjectConf:
1616
projectName: 'API-Demo '
17-
Appid: wxdbe7308e7eeb552b
17+
Appid: wxb44e2096fe38c90d
1818
CDN:
1919
assetLoadType: 1
2020
compressDataPackage: 0
2121
VideoUrl:
22-
DST: D:/GitHub/minigame-unity-webgl-transform-API-demo/Dist
22+
DST: /Users/lujinhao/Desktop/unitygame
2323
StreamCDN:
2424
bundleHashLength: 32
2525
bundlePathIdentifier: StreamingAssets;
@@ -39,13 +39,14 @@ MonoBehaviour:
3939
loadingBarWidth: 240
4040
needCheckUpdate: 0
4141
disableHighPerformanceFallback: 0
42+
IOSDevicePixelRatio: 0
4243
SDKOptions:
4344
UseFriendRelation: 1
4445
UseCompressedTexture: 0
4546
UseMiniGameChat: 0
4647
PreloadWXFont: 0
4748
CompileOptions:
48-
DevelopBuild: 1
49+
DevelopBuild: 0
4950
AutoProfile: 0
5051
ScriptOnly: 0
5152
Il2CppOptimizeSize: 1
@@ -60,6 +61,7 @@ MonoBehaviour:
6061
enableProfileStats: 0
6162
enableRenderAnalysis: 0
6263
iOSAutoGCInterval: 10000
64+
enableIOSPerformancePlus: 0
6365
CompressTexture:
6466
halfSize: 0
6567
useDXT5: 0
Binary file not shown.

Demo/API_V2/Assets/WX-WASM-SDK-V2/Editor/WXConvertCore.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ private static void convertDataPackage(bool brotliError)
532532
{
533533
old = "$COMPRESS_DATA_PACKAGE",
534534
newStr = config.ProjectConf.compressDataPackage ? "true" : "false",
535-
}
535+
}
536536
};
537537
string[] files = { "game.js", "game.json", "project.config.json", "check-version.js" };
538538
ReplaceFileContent(files, rules);
@@ -931,6 +931,7 @@ public static void ModifyWeChatConfigs(bool isFromConvert = false)
931931
config.ProjectConf.projectName == string.Empty ? "webgl" : config.ProjectConf.projectName,
932932
config.ProjectConf.Appid,
933933
screenOrientation,
934+
config.CompileOptions.enableIOSPerformancePlus ? "true" : "false",
934935
config.ProjectConf.VideoUrl,
935936
codeMd5,
936937
dataMd5,
@@ -962,6 +963,7 @@ public static void ModifyWeChatConfigs(bool isFromConvert = false)
962963
dataFileSize,
963964
IsInstantGameAutoStreaming() ? "true" : "false",
964965
(config.CompileOptions.DevelopBuild && config.CompileOptions.enableRenderAnalysis) ? "true" : "false",
966+
config.ProjectConf.IOSDevicePixelRatio.ToString(),
965967
});
966968

967969
List<Rule> replaceList = new List<Rule>(replaceArrayList);

Demo/API_V2/Assets/WX-WASM-SDK-V2/Editor/WXEditorWindow.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ public void OnGUI()
165165
this.formCheckbox("profilingFuncs", "Profiling Funcs");
166166
this.formCheckbox("profilingMemory", "Profiling Memory");
167167
this.formCheckbox("webgl2", "WebGL2.0(beta)");
168+
this.formCheckbox("iOSPerformancePlus", "iOSPerformancePlus(?)", "是否使用iOS高性能+渲染方案,有助于提升渲染兼容性、降低WebContent进程内存");
168169
this.formCheckbox("deleteStreamingAssets", "Clear Streaming Assets");
169170
this.formCheckbox("cleanBuild", "Clean WebGL Build");
170171
// this.formCheckbox("cleanCloudDev", "Clean Cloud Dev");
@@ -380,6 +381,7 @@ private void loadData()
380381
this.setData("cleanBuild", config.CompileOptions.CleanBuild);
381382
this.setData("customNodePath", config.CompileOptions.CustomNodePath);
382383
this.setData("webgl2", config.CompileOptions.Webgl2);
384+
this.setData("iOSPerformancePlus", config.CompileOptions.enableIOSPerformancePlus);
383385
this.setData("fbslim", config.CompileOptions.fbslim);
384386
this.setData("useFriendRelation", config.SDKOptions.UseFriendRelation);
385387
this.setData("useMiniGameChat", config.SDKOptions.UseMiniGameChat);
@@ -428,6 +430,7 @@ private void saveData()
428430
config.CompileOptions.CleanBuild = this.getDataCheckbox("cleanBuild");
429431
config.CompileOptions.CustomNodePath = this.getDataInput("customNodePath");
430432
config.CompileOptions.Webgl2 = this.getDataCheckbox("webgl2");
433+
config.CompileOptions.enableIOSPerformancePlus = this.getDataCheckbox("iOSPerformancePlus");
431434
config.CompileOptions.fbslim = this.getDataCheckbox("fbslim");
432435
config.SDKOptions.UseFriendRelation = this.getDataCheckbox("useFriendRelation");
433436
config.SDKOptions.UseMiniGameChat = this.getDataCheckbox("useMiniGameChat");

Demo/API_V2/Assets/WX-WASM-SDK-V2/Editor/WXPluginVersion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
public class WXPluginVersion
44
{
5-
public static string pluginVersion = "202312262040"; // 这一行不要改他,导出的时候会自动替换
5+
public static string pluginVersion = "202401182049"; // 这一行不要改他,导出的时候会自动替换
66
}
77

88
public class WXPluginConf
Binary file not shown.

0 commit comments

Comments
 (0)