Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-api
提交
37574356
U
uni-api
项目概览
DCloud
/
uni-api
通知
672
Star
23
Fork
12
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
3
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-api
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
3
Issue
3
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
37574356
编写于
9月 13, 2023
作者:
杜庆泉
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
腾讯定位发布配置添加
上级
ce930e42
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
46 addition
and
35 deletion
+46
-35
uni_modules/uni-getLocation-tencent/changelog.md
uni_modules/uni-getLocation-tencent/changelog.md
+2
-0
uni_modules/uni-getLocation-tencent/package.json
uni_modules/uni-getLocation-tencent/package.json
+39
-33
uni_modules/uni-getLocation-tencent/utssdk/app-android/config.json
...es/uni-getLocation-tencent/utssdk/app-android/config.json
+1
-1
uni_modules/uni-getLocation-tencent/utssdk/app-android/index.uts
...ules/uni-getLocation-tencent/utssdk/app-android/index.uts
+1
-1
uni_modules/uni-getLocation-tencent/utssdk/app-ios/config.json
...odules/uni-getLocation-tencent/utssdk/app-ios/config.json
+3
-0
未找到文件。
uni_modules/uni-getLocation-tencent/changelog.md
浏览文件 @
37574356
## 1.0.0(2023-09-11)
基于腾讯定位服务,实现uni.getLocation 获取定位功能
uni_modules/uni-getLocation-tencent/package.json
浏览文件 @
37574356
...
...
@@ -2,13 +2,13 @@
"id"
:
"uni-getLocation-tencent"
,
"displayName"
:
"uni-getLocation-tencent"
,
"version"
:
"1.0.0"
,
"description"
:
"
uni-getLocation-tencent
"
,
"description"
:
"
基于腾讯定位服务,实现uni.getLocation 获取定位功能
"
,
"keywords"
:
[
"uni-getLocation-tencent"
],
"repository"
:
""
,
"engines"
:
{
"HBuilderX"
:
"^3.
6.11
"
"HBuilderX"
:
"^3.
8.12
"
},
"dcloudext"
:
{
"type"
:
"uts"
,
...
...
@@ -24,59 +24,65 @@
"qq"
:
""
},
"declaration"
:
{
"ads"
:
""
,
"data"
:
""
,
"permissions"
:
""
"ads"
:
"
无
"
,
"data"
:
"
插件使用的 腾讯定位SDK会采集数据,详情可参考:https://lbs.qq.com/
"
,
"permissions"
:
"
<!-- 通过GPS得到精确位置 -->
\n\t
<uses-permission android:name=
\"
android.permission.ACCESS_FINE_LOCATION
\"
/>
\n\t
<!-- 通过网络得到粗略位置 -->
\n\t
<uses-permission android:name=
\"
android.permission.ACCESS_COARSE_LOCATION
\"
/>
\n\t
<!-- 访问网络,某些位置信息需要从网络服务器获取 -->
\n\t
<uses-permission android:name=
\"
android.permission.INTERNET
\"
/>
\n\t
<!-- 访问WiFi状态,需要WiFi信息用于网络定位 -->
\n\t
<uses-permission android:name=
\"
android.permission.ACCESS_WIFI_STATE
\"
/>
\n\t
<!-- 修改WiFi状态,发起WiFi扫描, 需要WiFi信息用于网络定位 -->
\n\t
<uses-permission android:name=
\"
android.permission.CHANGE_WIFI_STATE
\"
/>
\n\t
<!-- 访问网络状态, 检测网络的可用性,需要网络运营商相关信息用于网络定位 -->
\n\t
<uses-permission android:name=
\"
android.permission.ACCESS_NETWORK_STATE
\"
/>
\n\t
<!-- 访问网络的变化, 需要某些信息用于网络定位 -->
\n\t
<uses-permission android:name=
\"
android.permission.CHANGE_NETWORK_STATE
\"
/>
\n\t
<!-- 蓝牙扫描权限 -->
\n\t
<uses-permission android:name=
\"
android.permission.BLUETOOTH
\"
/>
\n\t
<uses-permission android:name=
\"
android.permission.BLUETOOTH_ADMIN
\"
/>
\n\t
<!-- 前台service权限 -->
\n\t
<uses-permission android:name=
\"
android.permission.FOREGROUND_SERVICE
\"
/>
\n\t
<!-- 后台定位权限 -->
\n\t
<uses-permission android:name=
\"
android.permission.ACCESS_BACKGROUND_LOCATION
\"
/>
\n\t
<!-- A-GPS辅助定位权限,方便GPS快速准确定位 -->
\n\t
<uses-permission android:name=
\"
android.permission.ACCESS_LOCATION_EXTRA_COMMANDS
\"
/>
\n
"
},
"npmurl"
:
""
},
"uni_modules"
:
{
"uni-ext-api"
:
{
"uni"
:
[
"getLocation"
]
"uni"
:
[
"getLocation"
]
},
"dependencies"
:
[],
"encrypt"
:
[],
"platforms"
:
{
"cloud"
:
{
"tcb"
:
"
u
"
,
"aliyun"
:
"
u
"
"tcb"
:
"
y
"
,
"aliyun"
:
"
y
"
},
"client"
:
{
"Vue"
:
{
"vue2"
:
"
n
"
,
"vue2"
:
"
y
"
,
"vue3"
:
"y"
},
"App"
:
{
"app-android"
:
"u"
,
"app-ios"
:
"u"
"app-android"
:
{
"minVersion"
:
"19"
},
"app-ios"
:
{
"minVersion"
:
"9"
}
},
"H5-mobile"
:
{
"Safari"
:
"
u
"
,
"Android Browser"
:
"
u
"
,
"微信浏览器(Android)"
:
"
u
"
,
"QQ浏览器(Android)"
:
"
u
"
"Safari"
:
"
n
"
,
"Android Browser"
:
"
n
"
,
"微信浏览器(Android)"
:
"
n
"
,
"QQ浏览器(Android)"
:
"
n
"
},
"H5-pc"
:
{
"Chrome"
:
"
u
"
,
"IE"
:
"
u
"
,
"Edge"
:
"
u
"
,
"Firefox"
:
"
u
"
,
"Safari"
:
"
u
"
"Chrome"
:
"
n
"
,
"IE"
:
"
n
"
,
"Edge"
:
"
n
"
,
"Firefox"
:
"
n
"
,
"Safari"
:
"
n
"
},
"小程序"
:
{
"微信"
:
"
u
"
,
"阿里"
:
"
u
"
,
"百度"
:
"
u
"
,
"字节跳动"
:
"
u
"
,
"QQ"
:
"
u
"
,
"钉钉"
:
"
u
"
,
"快手"
:
"
u
"
,
"飞书"
:
"
u
"
,
"京东"
:
"
u
"
"微信"
:
"
n
"
,
"阿里"
:
"
n
"
,
"百度"
:
"
n
"
,
"字节跳动"
:
"
n
"
,
"QQ"
:
"
n
"
,
"钉钉"
:
"
n
"
,
"快手"
:
"
n
"
,
"飞书"
:
"
n
"
,
"京东"
:
"
n
"
},
"快应用"
:
{
"华为"
:
"
u
"
,
"联盟"
:
"
u
"
"华为"
:
"
n
"
,
"联盟"
:
"
n
"
}
}
}
...
...
uni_modules/uni-getLocation-tencent/utssdk/app-android/config.json
浏览文件 @
37574356
...
...
@@ -2,6 +2,6 @@
"dependencies"
:
[
"com.tencent.map.geolocation:TencentLocationSdk-openplatform:7.3.0"
],
"minSdkVersion"
:
21
"minSdkVersion"
:
"19"
}
uni_modules/uni-getLocation-tencent/utssdk/app-android/index.uts
浏览文件 @
37574356
...
...
@@ -37,7 +37,7 @@ export const getLocation : GetLocation = function (options : GetLocationOptions)
/**
* 准备权限
*/
let permissionNeed
: string[] = utsArrayOf("android.permission.ACCESS_FINE_LOCATION")
;
let permissionNeed
= ["android.permission.ACCESS_FINE_LOCATION"]
;
UTSAndroid.requestSystemPermission(UTSAndroid.getUniActivity()!, permissionNeed, function (allRight:boolean,_grantedList:string[]) {
if (allRight) {
// 交给目前的location 引擎,真实执行
...
...
uni_modules/uni-getLocation-tencent/utssdk/app-ios/config.json
0 → 100644
浏览文件 @
37574356
{
"deploymentTarget"
:
"9"
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录