diff --git a/changelog.md b/changelog.md index b4ce85dba189e2c1213d29650559f8ee4c7bf935..56688ef4891f4bddbea9893b10863ce3488ac083 100644 --- a/changelog.md +++ b/changelog.md @@ -1,8 +1,17 @@ -## 1.1.6 -* update 4.15.2024050802 +## 1.0.16 +* update 4.21.2024061818-alpha -## 1.1.5 -* update 4.14.2024043008 +## 1.0.15 +* update 4.19.2024060704-alpha + +## 1.0.14 +* update 4.18.2024060311-alpha + +## 1.0.13 +* update 4.17.2024051110-alpha + +## 1.0.12 +* update 4.16.2024051009-alpha ## 1.0.11 * update 4.14.2024042905-alpha diff --git a/jest.config.js b/jest.config.js index 63dd1fe331a4ffa8bae597d3fd83e402a965030a..23eb381413cfc3ac82d2e4fd2f049f44169441f7 100644 --- a/jest.config.js +++ b/jest.config.js @@ -39,7 +39,7 @@ function parseDescribes() { }; module.exports = { - testTimeout: 10000, + testTimeout: 20000, reporters: [ 'default' ], diff --git a/package.json b/package.json index cd300041b928be90d1746e9e02a72c634ca9da39..dabc11419f47b29b6274a99361d721dd8acf17eb 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { - "id": "hello-uts", - "name": "hello-uts", - "displayName": "hello-uts", - "version": "1.1.6", + "id": "hello-uts-alpha", + "name": "hello-uts-alpha", + "displayName": "hello-uts-alpha", + "version": "1.0.16", "description": "UTS插件示例项目", "repository": "https://gitcode.net/dcloud/hello-uts", "keywords": [ diff --git a/pages.json b/pages.json index 28ccadf7f2122c752cf3366baafa266708eb3f6d..9cd815e866ed1f0d82360a13f97c333142f0c18a 100644 --- a/pages.json +++ b/pages.json @@ -156,7 +156,10 @@ "enablePullDownRefresh": false } - }, + } + // #endif + // #ifdef APP-Android + , { "path": "pages/SyntaxCase/utsAndroid", "style": { @@ -164,14 +167,16 @@ "enablePullDownRefresh": false } - }, + } + // #endif + // #ifdef APP-iOS + , { "path": "pages/SyntaxCase/utsiOS", "style": { "navigationBarTitleText": "", "enablePullDownRefresh": false } - } // #endif diff --git a/pages/SyntaxCase/utsAndroid.uvue b/pages/SyntaxCase/utsAndroid.uvue index 3787a7fd0dba44ef2bcbf35fbf23219a6b31336c..e41c9868e07d764d4f1f19e724af87f0189bfc7f 100644 --- a/pages/SyntaxCase/utsAndroid.uvue +++ b/pages/SyntaxCase/utsAndroid.uvue @@ -1,8 +1,6 @@ + .testButton { + width: 100%; + } + \ No newline at end of file diff --git a/pages/SyntaxCase/utsAndroid.vue b/pages/SyntaxCase/utsAndroid.vue index c1b6a36d31f52115cc3c006cb349e62c34567341..3105df433e500c8fc0df1bb28dba8f4d51d0f4cd 100644 --- a/pages/SyntaxCase/utsAndroid.vue +++ b/pages/SyntaxCase/utsAndroid.vue @@ -17,6 +17,7 @@ + 1. 当前页面已通过initAppLifecycle函数注册了生命周期监听。 @@ -60,7 +61,8 @@ initAppLifecycle, gotoCameraTake, getDeviceInfoTest, - privacyStateTest + privacyStateTest, + privacyStateCallBackTest } from '@/uni_modules/uts-platform-api' /** * 测试在页面生命周期之外,使用api @@ -95,6 +97,20 @@ } }) }, + privacyStateCallBackClick() { + privacyStateCallBackTest(function(ret, desc) { + if (ret) { + uni.showToast({ + title: '测试通过' + }) + } else { + uni.showToast({ + icon: 'none', + title: '失败:' + desc + }) + } + }) + }, getDeviceInfoClick(){ this.text = getDeviceInfoTest() }, diff --git a/pages/SystemAPI/SystemAPI.uvue b/pages/SystemAPI/SystemAPI.uvue index b9e2f218c7b0ba466acb8c161acd36574847bd72..c187377a948ce56f7ca54f9a8c7570bcedfe054e 100644 --- a/pages/SystemAPI/SystemAPI.uvue +++ b/pages/SystemAPI/SystemAPI.uvue @@ -18,7 +18,7 @@