Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
Hello UTS
提交
5e1b769d
H
Hello UTS
项目概览
DCloud
/
Hello UTS
通知
1656
Star
29
Fork
9
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
2
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
Hello UTS
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
2
Issue
2
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
5e1b769d
编写于
12月 11, 2024
作者:
杜庆泉
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复全部 android 编译告警
上级
e5d410a0
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
23 addition
and
19 deletion
+23
-19
uni_modules/uts-advance/utssdk/app-android/index.uts
uni_modules/uts-advance/utssdk/app-android/index.uts
+1
-1
uni_modules/uts-alert/utssdk/app-android/index.uts
uni_modules/uts-alert/utssdk/app-android/index.uts
+2
-2
uni_modules/uts-nativepage/utssdk/app-android/index.uts
uni_modules/uts-nativepage/utssdk/app-android/index.uts
+3
-3
uni_modules/uts-platform-api/utssdk/app-android/index.uts
uni_modules/uts-platform-api/utssdk/app-android/index.uts
+1
-1
uni_modules/uts-screenshot-listener/utssdk/app-android/index.uts
...ules/uts-screenshot-listener/utssdk/app-android/index.uts
+1
-1
uni_modules/uts-syntaxcase/utssdk/index.uts
uni_modules/uts-syntaxcase/utssdk/index.uts
+4
-4
uni_modules/uts-tencentgeolocation/utssdk/app-android/index.uts
...dules/uts-tencentgeolocation/utssdk/app-android/index.uts
+2
-2
uni_modules/uts-tests/utssdk/ForLoop.uts
uni_modules/uts-tests/utssdk/ForLoop.uts
+1
-1
uni_modules/uts-tests/utssdk/JSON.uts
uni_modules/uts-tests/utssdk/JSON.uts
+1
-1
uni_modules/uts-tests/utssdk/Number.uts
uni_modules/uts-tests/utssdk/Number.uts
+1
-1
uni_modules/uts-tests/utssdk/Promise.uts
uni_modules/uts-tests/utssdk/Promise.uts
+1
-0
uni_modules/uts-tests/utssdk/Set.uts
uni_modules/uts-tests/utssdk/Set.uts
+1
-0
uni_modules/uts-tests/utssdk/String.uts
uni_modules/uts-tests/utssdk/String.uts
+2
-0
uni_modules/uts-tests/utssdk/Type.uts
uni_modules/uts-tests/utssdk/Type.uts
+1
-1
uni_modules/uts-tests/utssdk/UTSJSONObject.uts
uni_modules/uts-tests/utssdk/UTSJSONObject.uts
+1
-1
未找到文件。
uni_modules/uts-advance/utssdk/app-android/index.uts
浏览文件 @
5e1b769d
...
...
@@ -227,7 +227,7 @@ export function stopAssetAudio() {
}
//
@UTSAndroid.Suppress("DEPRECATION")
@UTSAndroid.Suppress("DEPRECATION")
export function goOtherActivity(imageDone : (event : string) => void) : boolean {
// 检查相关权限是否已经具备
...
...
uni_modules/uts-alert/utssdk/app-android/index.uts
浏览文件 @
5e1b769d
...
...
@@ -3,13 +3,13 @@ import AlertDialog from 'android.app.AlertDialog';
import DialogInterface from 'android.content.DialogInterface';
import EditText from 'android.widget.EditText';
//
@UTSAndroid.Suppress("UNUSED_PARAMETER")
@UTSAndroid.Suppress("UNUSED_PARAMETER")
export function showAlert(_title : string | null, _message : string | null, _result : (index : Number) => void) {
let uiRunable = new DialogUIRunnable(null, _title!, _message!, "", false);
UTSAndroid.getUniActivity()!.runOnUiThread(uiRunable)
}
//
@UTSAndroid.Suppress("UNUSED_PARAMETER")
@UTSAndroid.Suppress("UNUSED_PARAMETER")
export function showPrompt(_title : string | null, _message : string | null, _placeholder : string | null, success : (content : string) => void) {
let uiRunable = new DialogUIRunnable(success, _title!, _message!, _placeholder!, true);
UTSAndroid.getUniActivity()!.runOnUiThread(uiRunable)
...
...
uni_modules/uts-nativepage/utssdk/app-android/index.uts
浏览文件 @
5e1b769d
...
...
@@ -138,7 +138,7 @@ export class AppHookProxy implements UTSAndroidHookProxy {
}
//
@UTSAndroid.Suppress("DEPRECATION")
@UTSAndroid.Suppress("DEPRECATION")
class ForeService extends Service {
constructor (){
...
...
@@ -425,7 +425,7 @@ class DemoActivity extends Activity{
}
//
@UTSAndroid.Suppress("DEPRECATION")
@UTSAndroid.Suppress("DEPRECATION")
class IntentRunable implements Runnable{
override run(){
console.log("IntentRunable = " + Thread.currentThread().getName())
...
...
@@ -478,7 +478,7 @@ function initShortCut() {
}
//
@UTSAndroid.Suppress("DEPRECATION")
@UTSAndroid.Suppress("DEPRECATION")
export function gotoDemoActivity():boolean {
// 这里的逻辑是为了判断 当前的自定义activity 是否注册了,并以此为条件判断是否是自定义基座
let hasXActivityIntegration = true
...
...
uni_modules/uts-platform-api/utssdk/app-android/index.uts
浏览文件 @
5e1b769d
...
...
@@ -175,7 +175,7 @@ export function gotoSystemPermissionActivityTest() {
/**
* 跳转系统拍照界面,并触发相关生命周期测试
*/
//
@UTSAndroid.Suppress("DEPRECATION")
@UTSAndroid.Suppress("DEPRECATION")
export function gotoCameraTake(imageDone : (event : string) => void) : boolean {
let permissionNeed = ["android.permission.CAMERA"]
...
...
uni_modules/uts-screenshot-listener/utssdk/app-android/index.uts
浏览文件 @
5e1b769d
...
...
@@ -79,7 +79,7 @@ class ScreenFileObserver extends FileObserver {
/**
* 开启截图监听
*/
//
@UTSAndroid.Suppress("DEPRECATION")
@UTSAndroid.Suppress("DEPRECATION")
export function onUserCaptureScreen(callback: UserCaptureScreenCallback) {
// 检查相关权限是否已经具备
...
...
uni_modules/uts-syntaxcase/utssdk/index.uts
浏览文件 @
5e1b769d
...
...
@@ -435,7 +435,7 @@ export class UTSActivityComponentCallback extends UniActivityComponentCallback {
export
function
Scan
(
timeMillis
:
Number
=
60000
):
number
{
return
timeMillis
}
@
UTSAndroid
.
Suppress
(
"
DEPRECA
TION"
)
@
UTSAndroid
.
Suppress
(
"
UNNECESSARY_NOT_NULL_ASSER
TION"
)
export
function
Scan1
(
timeMillis
?:
Number
)
:
string
{
if
(
timeMillis
==
null
){
...
...
@@ -443,7 +443,7 @@ export function Scan1(timeMillis ?: Number):string {
}
return
timeMillis
!.
toString
()
}
@
UTSAndroid
.
Suppress
(
"
DEPRECA
TION"
)
@
UTSAndroid
.
Suppress
(
"
UNNECESSARY_NOT_NULL_ASSER
TION"
)
export
function
Scan2
(
timeMillis
?:
Number
|
null
)
:
string
{
if
(
timeMillis
==
null
){
...
...
@@ -461,12 +461,12 @@ export class myClass {
console
.
log
(
name
);
return
name
}
@
UTSAndroid
.
Suppress
(
"UNNECESSARY_NOT_NULL_ASSERTION"
)
to1
(
name
?:
String
)
:
string
{
if
(
name
==
null
){
return
"null"
}
return
name
return
name
!
}
}
...
...
uni_modules/uts-tencentgeolocation/utssdk/app-android/index.uts
浏览文件 @
5e1b769d
...
...
@@ -187,7 +187,7 @@ export function getLocation(locationOptions: LocationOptions):boolean {
/**
* 持续监听位置变化
*/
//
@UTSAndroid.Suppress("UNUSED_PARAMETER")
@UTSAndroid.Suppress("UNUSED_PARAMETER")
export function watchPosition(_locationOptions: LocationOptions) {
//todo
}
...
...
@@ -195,7 +195,7 @@ export function watchPosition(_locationOptions: LocationOptions) {
/**
* 关闭监听位置变化
*/
//
@UTSAndroid.Suppress("UNUSED_PARAMETER")
@UTSAndroid.Suppress("UNUSED_PARAMETER")
export function clearWatch() {
//todo
}
\ No newline at end of file
uni_modules/uts-tests/utssdk/ForLoop.uts
浏览文件 @
5e1b769d
import { describe, test, expect, Result } from './tests.uts'
//
@UTSAndroid.Suppress("IMPLICIT_BOXING_IN_IDENTITY_EQUALS")
@UTSAndroid.Suppress("IMPLICIT_BOXING_IN_IDENTITY_EQUALS")
export function testForLoop(): Result {
return describe('ForLoop', () => {
test('syntax', () => {
...
...
uni_modules/uts-tests/utssdk/JSON.uts
浏览文件 @
5e1b769d
...
...
@@ -80,7 +80,7 @@ class A6 implements IJSONStringify{
}
@UTSAndroid.Suppress("
DEPRECA
TION")
@UTSAndroid.Suppress("
UNNECESSARY_NOT_NULL_ASSER
TION")
export function testJSON() : Result {
return describe("JSON", () => {
...
...
uni_modules/uts-tests/utssdk/Number.uts
浏览文件 @
5e1b769d
import { describe, test, expect, Result } from './tests.uts'
//
@UTSAndroid.Suppress("IMPLICIT_BOXING_IN_IDENTITY_EQUALS")
@UTSAndroid.Suppress("IMPLICIT_BOXING_IN_IDENTITY_EQUALS")
export function testNumber() : Result {
return describe("Number", () => {
...
...
uni_modules/uts-tests/utssdk/Promise.uts
浏览文件 @
5e1b769d
import { describe, test, expect, Result } from './tests.uts'
@UTSAndroid.Suppress("VARIABLE_WITH_REDUNDANT_INITIALIZER","NAME_SHADOWING")
export function testPromise() : Result {
return describe("Promise", () => {
test('constructor', () => {
...
...
uni_modules/uts-tests/utssdk/Set.uts
浏览文件 @
5e1b769d
import { describe, test, expect, Result } from './tests.uts'
@UTSAndroid.Suppress("VARIABLE_WITH_REDUNDANT_INITIALIZER","ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
export function testSet() : Result {
return describe("Set", () => {
test('size', () => {
...
...
uni_modules/uts-tests/utssdk/String.uts
浏览文件 @
5e1b769d
import { describe, test, expect, Result } from './tests.uts'
@UTSAndroid.Suppress("UNNECESSARY_NOT_NULL_ASSERTION","DEPRECATION")
export function testString() : Result {
return describe("String", () => {
test('length', () => {
...
...
@@ -221,6 +222,7 @@ export function testString() : Result {
expect("".indexOf("test")).toEqual(-1);
})
test('match', () => {
// #TEST String.match
const str = 'The quick brown fox jumps over the lazy dog. It barked.';
...
...
uni_modules/uts-tests/utssdk/Type.uts
浏览文件 @
5e1b769d
import { describe, test, expect, Result } from './tests.uts'
//
@UTSAndroid.Suppress("USELESS_IS_CHECK")
@UTSAndroid.Suppress("USELESS_IS_CHECK")
export function testType() : Result {
return describe("Type", () => {
test("Object literal to type instance", () => {
...
...
uni_modules/uts-tests/utssdk/UTSJSONObject.uts
浏览文件 @
5e1b769d
...
...
@@ -14,7 +14,7 @@ type User = {
}
@UTSAndroid.Suppress("UNNECESSARY_NOT_NULL_ASSERTION","ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE","UNUSED_VARIABLE","UNUSED_VALUE","VARIABLE_WITH_REDUNDANT_INITIALIZER")
export function testUTSJSONObject() : Result {
return describe("utsjsonobject", () => {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录