Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
Hello UTS
提交
8dcd9f9b
H
Hello UTS
项目概览
DCloud
/
Hello UTS
通知
1598
Star
27
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看板
提交
8dcd9f9b
编写于
10月 31, 2022
作者:
杜庆泉
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加腾讯地图插件入口
上级
b0a0d7eb
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
159 addition
and
9 deletion
+159
-9
pages.json
pages.json
+9
-0
pages/SDKIntegration/SDKIntegration.vue
pages/SDKIntegration/SDKIntegration.vue
+7
-1
pages/SDKIntegration/TencentMap/TencentMap.vue
pages/SDKIntegration/TencentMap/TencentMap.vue
+9
-0
pages/advance/advance.vue
pages/advance/advance.vue
+1
-1
uni_modules/uni-getbatteryinfo/package.json
uni_modules/uni-getbatteryinfo/package.json
+2
-2
uni_modules/uni-getbatteryinfo/utssdk/app-android/config.json
...modules/uni-getbatteryinfo/utssdk/app-android/config.json
+3
-0
uni_modules/uni-getbatteryinfo/utssdk/app-android/index.uts
uni_modules/uni-getbatteryinfo/utssdk/app-android/index.uts
+3
-3
uni_modules/uni-getbatteryinfo/utssdk/app-ios/config.json
uni_modules/uni-getbatteryinfo/utssdk/app-ios/config.json
+3
-0
uni_modules/uts-advance/utssdk/app-android/index.uts
uni_modules/uts-advance/utssdk/app-android/index.uts
+0
-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-tencentmap/changelog.md
uni_modules/uts-tencentmap/changelog.md
+0
-0
uni_modules/uts-tencentmap/package.json
uni_modules/uts-tencentmap/package.json
+81
-0
uni_modules/uts-tencentmap/readme.md
uni_modules/uts-tencentmap/readme.md
+5
-0
uni_modules/uts-tencentmap/utssdk/app-android/index.uts
uni_modules/uts-tencentmap/utssdk/app-android/index.uts
+35
-0
uni_modules/uts-tencentmap/utssdk/app-ios/index.uts
uni_modules/uts-tencentmap/utssdk/app-ios/index.uts
+0
-0
未找到文件。
pages.json
浏览文件 @
8dcd9f9b
...
...
@@ -44,6 +44,15 @@
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/SDKIntegration/TencentMap/TencentMap"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/SDKIntegration/XToast/XToast"
,
...
...
pages/SDKIntegration/SDKIntegration.vue
浏览文件 @
8dcd9f9b
...
...
@@ -3,6 +3,7 @@
<page-head
:title=
"title"
></page-head>
<uni-list>
<uni-list-item
@
tap=
"gotoTencentLocation"
title=
"腾讯定位sdk集成示例"
class=
"itemButton"
:clickable=
"true"
link
/>
<uni-list-item
@
tap=
"gotoTencentMap"
title=
"腾讯地图sdk集成示例"
class=
"itemButton"
:clickable=
"true"
link
/>
<uni-list-item
@
tap=
"gotoXToast"
title=
"XToast集成示例"
class=
"itemButton"
:clickable=
"true"
link
/>
</uni-list>
</view>
...
...
@@ -27,7 +28,12 @@
uni
.
navigateTo
({
url
:
'
/pages/SDKIntegration/TencentLocation/TencentLocation
'
})
}
},
gotoTencentMap
:
function
(
e
){
uni
.
navigateTo
({
url
:
'
/pages/SDKIntegration/TencentMap/TencentMap
'
})
},
}
}
...
...
pages/SDKIntegration/TencentMap/TencentMap.vue
0 → 100644
浏览文件 @
8dcd9f9b
<
template
>
<button>
选择地图位置
</button>
</
template
>
<
script
>
</
script
>
<
style
>
</
style
>
\ No newline at end of file
pages/advance/advance.vue
浏览文件 @
8dcd9f9b
...
...
@@ -39,8 +39,8 @@
<uni-list-item
@
tap=
"testLifecyle"
title=
"activity生命周期监听"
:clickable=
"true"
link
/>
<uni-list-item
@
tap=
"gotoDecorView"
title=
"操作DecorView"
:clickable=
"true"
link
/>
<uni-list-item
@
tap=
"testMetaRead"
title=
"读取meta配置"
:clickable=
"true"
/>
<uni-list-item
@
tap=
"testAssetLoad"
title=
"播放asset音频(需自定义基座)"
:clickable=
"true"
/>
<uni-list-item
@
tap=
"testMetaRead"
title=
"读取meta配置(需自定义基座)"
:clickable=
"true"
/>
</uni-list>
...
...
uni_modules/uni-getbatteryinfo/package.json
浏览文件 @
8dcd9f9b
...
...
@@ -8,7 +8,7 @@
],
"repository"
:
""
,
"engines"
:
{
"HBuilderX"
:
"^3.6.
7
"
"HBuilderX"
:
"^3.6.
8
"
},
"dcloudext"
:
{
"type"
:
"uts"
,
...
...
@@ -43,7 +43,7 @@
},
"client"
:
{
"Vue"
:
{
"vue2"
:
"
n
"
,
"vue2"
:
"
y
"
,
"vue3"
:
"y"
},
"App"
:
{
...
...
uni_modules/uni-getbatteryinfo/utssdk/app-android/config.json
0 → 100644
浏览文件 @
8dcd9f9b
{
"minSdkVersion"
:
"21"
}
\ No newline at end of file
uni_modules/uni-getbatteryinfo/utssdk/app-android/index.uts
浏览文件 @
8dcd9f9b
...
...
@@ -4,9 +4,9 @@ import { getAppContext } from "io.dcloud.uts.android";
type GetBatteryInfoOptions = {
success?: (res:
UTSJSONO
bject) => void
fail?: (res:
UTSJSONO
bject) => void
complete?: (res:
UTSJSONO
bject) => void
success?: (res:
o
bject) => void
fail?: (res:
o
bject) => void
complete?: (res:
o
bject) => void
}
export default function getBatteryInfo(options: GetBatteryInfoOptions) {
...
...
uni_modules/uni-getbatteryinfo/utssdk/app-ios/config.json
0 → 100644
浏览文件 @
8dcd9f9b
{
"deploymentTarget"
:
"9"
}
\ No newline at end of file
uni_modules/uts-advance/utssdk/app-android/index.uts
浏览文件 @
8dcd9f9b
...
...
@@ -21,7 +21,6 @@ import {
onAppActivityPause,
onAppActivityResume,
onAppActivityBack,
onAppActivityStop,
onAppActivityResult,
onAppTrimMemory,
onAppConfigChange,
...
...
uni_modules/uts-screenshot-listener/utssdk/app-android/index.uts
浏览文件 @
8dcd9f9b
...
...
@@ -84,7 +84,7 @@ class ScreenFileObserver extends FileObserver {
/**
* 开启截图监听
*/
export function onUserCaptureScreen(callback: (res:
UTSJSONO
bject) => void) {
export function onUserCaptureScreen(callback: (res:
o
bject) => void) {
// 检查相关权限是否已经具备
if (ActivityCompat.checkSelfPermission(getUniActivity()!, Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
...
...
uni_modules/uts-tencentmap/changelog.md
0 → 100644
浏览文件 @
8dcd9f9b
uni_modules/uts-tencentmap/package.json
0 → 100644
浏览文件 @
8dcd9f9b
{
"id"
:
"uts-tencentmap"
,
"displayName"
:
"uts-tencentmap"
,
"version"
:
"1.0.0"
,
"description"
:
"uts-tencentmap"
,
"keywords"
:
[
"uts-tencentmap"
],
"repository"
:
""
,
"engines"
:
{
"HBuilderX"
:
"^3.6.8"
},
"dcloudext"
:
{
"type"
:
"uts"
,
"sale"
:
{
"regular"
:
{
"price"
:
"0.00"
},
"sourcecode"
:
{
"price"
:
"0.00"
}
},
"contact"
:
{
"qq"
:
""
},
"declaration"
:
{
"ads"
:
""
,
"data"
:
""
,
"permissions"
:
""
},
"npmurl"
:
""
},
"uni_modules"
:
{
"dependencies"
:
[],
"encrypt"
:
[],
"platforms"
:
{
"cloud"
:
{
"tcb"
:
"u"
,
"aliyun"
:
"u"
},
"client"
:
{
"Vue"
:
{
"vue2"
:
"u"
,
"vue3"
:
"u"
},
"App"
:
{
"app-android"
:
"u"
,
"app-ios"
:
"u"
},
"H5-mobile"
:
{
"Safari"
:
"u"
,
"Android Browser"
:
"u"
,
"微信浏览器(Android)"
:
"u"
,
"QQ浏览器(Android)"
:
"u"
},
"H5-pc"
:
{
"Chrome"
:
"u"
,
"IE"
:
"u"
,
"Edge"
:
"u"
,
"Firefox"
:
"u"
,
"Safari"
:
"u"
},
"小程序"
:
{
"微信"
:
"u"
,
"阿里"
:
"u"
,
"百度"
:
"u"
,
"字节跳动"
:
"u"
,
"QQ"
:
"u"
,
"钉钉"
:
"u"
,
"快手"
:
"u"
,
"飞书"
:
"u"
,
"京东"
:
"u"
},
"快应用"
:
{
"华为"
:
"u"
,
"联盟"
:
"u"
}
}
}
}
}
\ No newline at end of file
uni_modules/uts-tencentmap/readme.md
0 → 100644
浏览文件 @
8dcd9f9b
# uts-tencentmap
### 开发文档
[
UTS 语法
](
https://uniapp.dcloud.net.cn/tutorial/syntax-uts.html
)
[
UTS 原生插件
](
https://uniapp.dcloud.net.cn/plugin/uts-plugin.html
)
[
Hello UTS
](
https://gitcode.net/dcloud/hello-uts/-/tree/dev
)
\ No newline at end of file
uni_modules/uts-tencentmap/utssdk/app-android/index.uts
0 → 100644
浏览文件 @
8dcd9f9b
import {
getUniActivity,
} from "io.dcloud.uts.android";
import Intent from 'android.content.Intent';
import Activity from 'android.app.Activity';
class TencentMapActivity extends Activity{
constructor (){
super();
}
override onCreate(savedInstanceState?: Bundle):void {
super.onCreate(savedInstanceState)
this.setContentView(R.layout.demo_activity);
let btn_start_service_front = findViewById<Button>(R.id.btn_start_service_front);
btn_start_service_front.setOnClickListener(new StartServiceListener());
let btn_start_screen_listen = findViewById<Button>(R.id.btn_start_screen_listen);
btn_start_screen_listen.setOnClickListener(new StartBroadcastListener());
}
}
export default function gotoTencentMapActivity() {
// 跳转到一个新的界面
let intent = new Intent(getUniActivity(),TencentMapActivity().javaClass);
getUniActivity()!.startActivity(intent);
return { name: "gotoTencentMapActivity"};
}
uni_modules/uts-tencentmap/utssdk/app-ios/index.uts
0 → 100644
浏览文件 @
8dcd9f9b
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录