Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fallenstardust
YGOMobile
Commits
d9fa2044
Commit
d9fa2044
authored
Nov 06, 2025
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
将更新日志的版本号改为跟随versionname
3.12.7 LOG-O
parent
9bfafeaf
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
13 deletions
+59
-13
mobile/assets/changelog.html
mobile/assets/changelog.html
+12
-10
mobile/build.gradle
mobile/build.gradle
+4
-2
mobile/src/main/java/cn/garymb/ygomobile/ui/plus/DialogPlus.java
...src/main/java/cn/garymb/ygomobile/ui/plus/DialogPlus.java
+11
-0
mobile/src/main/java/cn/garymb/ygomobile/ui/widget/WebViewPlus.java
.../main/java/cn/garymb/ygomobile/ui/widget/WebViewPlus.java
+32
-1
mobile/src/main/res/drawable-xhdpi/ic_launcher3.png
mobile/src/main/res/drawable-xhdpi/ic_launcher3.png
+0
-0
No files found.
mobile/assets/changelog.html
View file @
d9fa2044
...
...
@@ -16,21 +16,15 @@
特别感谢: 尸体233,废话多,大毛, zhuhongbo, JSY1728, 幻兽L 等的支持与努力.
</pre>
<ul>
<li
style=
"color:#ffff00"
>
3.12.6
</li>
<li
id=
"versionName"
style=
"color:#ffff00"
>
</li>
</ul>
<pre>
更新:
1.更新ygopro内核;
2.新卡DBPR+SD48+LPG1+T1302+VJ;
3.2025.10 OCG禁卡表;
4.2025.9 TCG禁卡表;
5.新增人机卡组:于贝尔;
2.新卡1303+CHO1+VJ;
变更:
1.修正新注册萌卡用户无法备份在线卡组的问题;
2.修正自动同步备份时失去分类信息的问题;
3.修复相同卡组重复备份的问题;
4.筛选字段时,增加无字段卡选项搜索功能;
1.竖屏查询时支持大于小于符号来搜索攻击力与守备力范围(如:>=3000、
<2500
);
2
.修复查询守备力为
1
时错误搜索到↙箭头连接怪兽的问题;
</
pre
>
<h3
style=
"color:#ff0000"
>
注意
</h3>
<pre>
...
...
@@ -39,5 +33,13 @@
如果觉得不便可以在"我的"里修改资料语言;
③:卸载本软件将删除包含卡组在内的重要文件,卸载前请慎重;
</pre>
<script
type=
"text/javascript"
>
document
.
addEventListener
(
"
DOMContentLoaded
"
,
function
()
{
if
(
typeof
AppInterface
!==
"
undefined
"
&&
AppInterface
.
getVersionName
)
{
document
.
getElementById
(
"
versionName
"
).
innerText
=
AppInterface
.
getVersionName
();
}
});
</script>
</body>
</html>
\ No newline at end of file
mobile/build.gradle
View file @
d9fa2044
...
...
@@ -9,8 +9,8 @@ android {
minSdkVersion
25
//noinspection ExpiredTargetSdkVersion
targetSdkVersion
29
versionCode
3120000
09
versionName
"3.12.
6fix1
"
versionCode
3120000
10
versionName
"3.12.
7
"
flavorDimensions
"versionCode"
vectorDrawables
.
useSupportLibrary
=
true
ndkVersion
"21.3.6528147"
...
...
@@ -31,6 +31,8 @@ android {
buildTypes
{
debug
{
debuggable
true
minifyEnabled
false
ext
.
alwaysUpdateBuildId
=
false
buildConfigField
'boolean'
,
'DEBUG_MODE'
,
'true'
}
release
{
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/plus/DialogPlus.java
View file @
d9fa2044
...
...
@@ -343,10 +343,21 @@ public class DialogPlus extends Dialog {
return
this
;
}
/**
* 加载指定URL并设置背景颜色
* @param url 要加载的网页地址
* @param bgColor WebView的背景颜色
* @return 返回当前DialogPlus实例,支持链式调用
*/
public
DialogPlus
loadUrl
(
String
url
,
int
bgColor
)
{
// 初始化WebView并设置背景色
if
(
mWebView
==
null
)
{
mWebView
=
initWebView
();
mWebView
.
setBackgroundColor
(
bgColor
);
// 启用 JavaScript 来支持版本号注入
mWebView
.
getSettings
().
setJavaScriptEnabled
(
true
);
// 添加 JavaScript 接口提供版本号
mWebView
.
addVersionJavaScriptInterface
();
}
mUrl
=
url
;
return
this
;
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/widget/WebViewPlus.java
View file @
d9fa2044
package
cn.garymb.ygomobile.ui.widget
;
import
android.content.Context
;
import
android.content.pm.PackageInfo
;
import
android.content.pm.PackageManager
;
import
android.util.AttributeSet
;
import
android.webkit.JavascriptInterface
;
import
cn.garymb.ygomobile.ui.mycard.X5WebView
;
public
class
WebViewPlus
extends
X5WebView
{
public
WebViewPlus
(
Context
context
)
{
super
(
context
);
...
...
@@ -14,4 +16,33 @@ public class WebViewPlus extends X5WebView {
public
WebViewPlus
(
Context
context
,
AttributeSet
attrs
)
{
super
(
context
,
attrs
);
}
/**
* 版本号 JavaScript 接口
*/
public
void
addVersionJavaScriptInterface
()
{
addJavascriptInterface
(
new
VersionJavaScriptInterface
(
getContext
()),
"AppInterface"
);
}
/**
* 提供版本号的 JavaScript 接口类
*/
private
static
class
VersionJavaScriptInterface
{
private
Context
mContext
;
VersionJavaScriptInterface
(
Context
context
)
{
mContext
=
context
;
}
@JavascriptInterface
public
String
getVersionName
()
{
try
{
PackageManager
packageManager
=
mContext
.
getPackageManager
();
PackageInfo
packageInfo
=
packageManager
.
getPackageInfo
(
mContext
.
getPackageName
(),
0
);
return
packageInfo
.
versionName
;
}
catch
(
PackageManager
.
NameNotFoundException
e
)
{
return
"Unknown"
;
}
}
}
}
mobile/src/main/res/drawable-xhdpi/ic_launcher3.png
View replaced file @
9bfafeaf
View file @
d9fa2044
742 KB
|
W:
|
H:
719 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment