Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
5d9b130e
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
6007
Star
91
Fork
164
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
18
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
18
Issue
18
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
5d9b130e
编写于
4月 28, 2024
作者:
D
DCloud_LXH
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 更新升级中心插件
上级
e303f016
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
27 addition
and
14 deletion
+27
-14
uni_modules/uni-upgrade-center-app/changelog.md
uni_modules/uni-upgrade-center-app/changelog.md
+7
-0
uni_modules/uni-upgrade-center-app/components/uni-upgrade-center-app/uni-upgrade-center-app.uvue
...onents/uni-upgrade-center-app/uni-upgrade-center-app.uvue
+2
-2
uni_modules/uni-upgrade-center-app/package.json
uni_modules/uni-upgrade-center-app/package.json
+4
-3
uni_modules/uni-upgrade-center-app/pages/upgrade-popup.vue
uni_modules/uni-upgrade-center-app/pages/upgrade-popup.vue
+4
-0
uni_modules/uni-upgrade-center-app/utils/call-check-version.ts
...odules/uni-upgrade-center-app/utils/call-check-version.ts
+2
-3
uni_modules/uts-progressNotification/changelog.md
uni_modules/uts-progressNotification/changelog.md
+2
-0
uni_modules/uts-progressNotification/package.json
uni_modules/uts-progressNotification/package.json
+1
-1
uni_modules/uts-progressNotification/utssdk/app-android/TransparentActivity.uts
...ssNotification/utssdk/app-android/TransparentActivity.uts
+1
-1
uni_modules/uts-progressNotification/utssdk/app-android/index.uts
...les/uts-progressNotification/utssdk/app-android/index.uts
+4
-4
未找到文件。
uni_modules/uni-upgrade-center-app/changelog.md
浏览文件 @
5d9b130e
## 0.8.1(2024-04-28)
-
修复 在 HX 4.0.3+ uni-app x 项目运行到 Android 调不起安装的Bug
## 0.8.0(2024-04-15)
-
修复 更新弹窗 data 中新增初始化字段
## 0.7.9(2024-03-15)
-
移除无用代码
-
调整 is_silently 类型为可为 null
## 0.7.8(2024-01-04)
-
新增 移除无用代码
## 0.7.7(2024-01-04)
...
...
uni_modules/uni-upgrade-center-app/components/uni-upgrade-center-app/uni-upgrade-center-app.uvue
浏览文件 @
5d9b130e
uni_modules/uni-upgrade-center-app/package.json
浏览文件 @
5d9b130e
{
"id"
:
"uni-upgrade-center-app"
,
"displayName"
:
"升级中心 uni-upgrade-center - App"
,
"version"
:
"0.
7.8
"
,
"version"
:
"0.
8.1
"
,
"description"
:
"uni升级中心 - 客户端检查更新"
,
"keywords"
:
[
"uniCloud"
,
...
...
@@ -11,7 +11,7 @@
],
"repository"
:
"https://gitee.com/dcloud/uni-upgrade-center/tree/master/uni_modules/uni-upgrade-center-app"
,
"engines"
:
{
"HBuilderX"
:
"^
3.97
"
"HBuilderX"
:
"^
4.03
"
},
"dcloudext"
:
{
"sale"
:
{
...
...
@@ -43,7 +43,8 @@
"platforms"
:
{
"cloud"
:
{
"tcb"
:
"y"
,
"aliyun"
:
"y"
"aliyun"
:
"y"
,
"alipay"
:
"y"
},
"client"
:
{
"App"
:
{
...
...
uni_modules/uni-upgrade-center-app/pages/upgrade-popup.vue
浏览文件 @
5d9b130e
...
...
@@ -139,7 +139,11 @@
// 默认安装包信息
title
:
'
更新日志
'
,
contents
:
''
,
version
:
''
,
is_mandatory
:
false
,
url
:
''
,
platform
:
[],
store_list
:
null
,
// 可自定义属性
subTitle
:
'
发现新版本
'
,
...
...
uni_modules/uni-upgrade-center-app/utils/call-check-version.ts
浏览文件 @
5d9b130e
...
...
@@ -18,7 +18,7 @@ export type UniUpgradeCenterResult = {
uni_platform
:
string
// "android" | "ios" // 版本号 1.0.0
stable_publish
:
boolean
// 是否是稳定版
is_mandatory
:
boolean
// 是否强制更新
is_silently
:
boolean
// 是否静默更新
is_silently
:
boolean
|
null
// 是否静默更新
create_env
:
string
// "upgrade-center"
create_date
:
number
message
:
string
...
...
@@ -77,7 +77,6 @@ export default function () : Promise<UniUpgradeCenterResult> {
name
:
'
uni-upgrade-center
'
,
data
:
data
}).
then
(
res
=>
{
console
.
log
(
'
res:
'
,
res
);
const
code
=
res
.
result
[
'
code
'
]
const
codeIsNumber
=
[
'
Int
'
,
'
Long
'
,
'
number
'
].
includes
(
typeof
code
)
if
(
codeIsNumber
)
{
...
...
@@ -86,7 +85,7 @@ export default function () : Promise<UniUpgradeCenterResult> {
code
:
res
.
result
[
'
code
'
],
message
:
res
.
result
[
'
message
'
]
})
}
else
if
(
code
<
0
)
{
}
else
if
(
(
code
as
number
)
<
0
)
{
reject
({
code
:
res
.
result
[
'
code
'
],
message
:
res
.
result
[
'
message
'
]
...
...
uni_modules/uts-progressNotification/changelog.md
浏览文件 @
5d9b130e
## 1.1.0(2024-03-08)
修复uniapp打包报错问题
## 1.0.9(2024-02-29)
去除代码过时警告
## 1.0.8(2023-12-21)
...
...
uni_modules/uts-progressNotification/package.json
浏览文件 @
5d9b130e
{
"id"
:
"uts-progressNotification"
,
"displayName"
:
"uts-progressNotification"
,
"version"
:
"1.
0.9
"
,
"version"
:
"1.
1.0
"
,
"description"
:
"uts-progressNotification"
,
"keywords"
:
[
"uts-progressNotification"
...
...
uni_modules/uts-progressNotification/utssdk/app-android/TransparentActivity.uts
浏览文件 @
5d9b130e
...
...
@@ -4,7 +4,7 @@ import Build from 'android.os.Build';
import View from 'android.view.View';
import Color from 'android.graphics.Color';
import WindowManager from 'android.view.WindowManager';
import { globalNotificationProgressFinishCallBack, globalNotificationProgressCallBack } from './
index
.uts';
import { globalNotificationProgressFinishCallBack, globalNotificationProgressCallBack } from './
callbacks
.uts';
import { ACTION_DOWNLOAD_FINISH, ACTION_DOWNLOAD_PROGRESS } from "./constant.uts"
...
...
uni_modules/uts-progressNotification/utssdk/app-android/index.uts
浏览文件 @
5d9b130e
...
...
@@ -9,6 +9,7 @@ import PendingIntent from 'android.app.PendingIntent';
import { CreateNotificationProgressOptions, FinishNotificationProgressOptions } from '../interface.uts';
import { ACTION_DOWNLOAD_FINISH, ACTION_DOWNLOAD_PROGRESS } from "./constant.uts"
import { globalNotificationProgressFinishCallBack, globalNotificationProgressCallBack } from './callbacks.uts';
export { TransparentActivity } from './TransparentActivity.uts';
...
...
@@ -26,8 +27,7 @@ let histroyProgress = 0
let isProgress = false
export let globalNotificationProgressCallBack : (() => void) | null = () => { }
export let globalNotificationProgressFinishCallBack = () => { }
export function createNotificationProgress(options : CreateNotificationProgressOptions) : void {
const { content, progress, onClick } = options
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录