Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
Hello UTS
提交
79a14da8
H
Hello UTS
项目概览
DCloud
/
Hello UTS
通知
1669
Star
30
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看板
提交
79a14da8
编写于
9月 08, 2022
作者:
杜庆泉
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
manifest key 修改进行中
上级
330de077
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
29 addition
and
25 deletion
+29
-25
manifest.json
manifest.json
+5
-3
uni_modules/uni-getbatteryinfo/utssdk/app-android/config.json
...modules/uni-getbatteryinfo/utssdk/app-android/config.json
+0
-1
uni_modules/uts-advance/utssdk/app-android/config.json
uni_modules/uts-advance/utssdk/app-android/config.json
+0
-5
uni_modules/uts-helloworld/utssdk/app-android/config.json
uni_modules/uts-helloworld/utssdk/app-android/config.json
+1
-5
uni_modules/uts-tencentgeolocation/readme.md
uni_modules/uts-tencentgeolocation/readme.md
+11
-1
uni_modules/uts-tencentgeolocation/utssdk/app-android/androix-core-1.0.0.jar
...centgeolocation/utssdk/app-android/androix-core-1.0.0.jar
+0
-0
uni_modules/uts-tencentgeolocation/utssdk/app-android/config.json
...les/uts-tencentgeolocation/utssdk/app-android/config.json
+0
-8
uni_modules/uts-tencentgeolocation/utssdk/app-android/index.uts
...dules/uts-tencentgeolocation/utssdk/app-android/index.uts
+4
-2
uni_modules/uts-tencentgeolocation/utssdk/app-android/libs/TencentLocationSDK-v7.4.9-r9b76f6e0-20220803191419-release.jar
...ntLocationSDK-v7.4.9-r9b76f6e0-20220803191419-release.jar
+0
-0
uni_modules/uts-tencentgeolocation/utssdk/app-android/libs/TencentLocationSdk-openplatform-7.4.9.aar
...pp-android/libs/TencentLocationSdk-openplatform-7.4.9.aar
+0
-0
uni_modules/uts-tencentgeolocation/utssdk/app-android/libs/armeabi-v7a/libtencentloc.so
...tion/utssdk/app-android/libs/armeabi-v7a/libtencentloc.so
+0
-0
uni_modules/uts-tencentgeolocation/utssdk/app-android/proguard-rules.pro
...-tencentgeolocation/utssdk/app-android/proguard-rules.pro
+8
-0
未找到文件。
manifest.json
浏览文件 @
79a14da8
...
...
@@ -2,8 +2,8 @@
"name"
:
"HelloUTS"
,
"appid"
:
"__UNI__70BE9D0"
,
"description"
:
""
,
"versionName"
:
"1.0.
6
"
,
"versionCode"
:
"10
6
"
,
"versionName"
:
"1.0.
8
"
,
"versionCode"
:
"10
8
"
,
"transformPx"
:
false
,
/*
5
+App特有相关
*/
"app-plus"
:
{
...
...
@@ -38,7 +38,9 @@
"<uses-permission android:name=
\"
android.permission.FLASHLIGHT
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
]
],
"minSdkVersion"
:
21
,
"abiFilters"
:
[
"armeabi-v7a"
]
},
/*
ios打包配置
*/
"ios"
:
{
...
...
uni_modules/uni-getbatteryinfo/utssdk/app-android/config.json
浏览文件 @
79a14da8
{
"minSdkVersion"
:
"21"
}
\ No newline at end of file
uni_modules/uts-advance/utssdk/app-android/config.json
浏览文件 @
79a14da8
{
"libs"
:
[
],
"dependencies"
:
[{
}],
"minSdkVersion"
:
21
}
\ No newline at end of file
uni_modules/uts-helloworld/utssdk/app-android/config.json
浏览文件 @
79a14da8
{
"libs"
:
[
],
"dependencies"
:
[{
}],
"minSdkVersion"
:
21
}
\ No newline at end of file
uni_modules/uts-tencentgeolocation/readme.md
浏览文件 @
79a14da8
# uts-tencentgeolocation
### 开发文档
## 填写配置信息
[
申请腾讯地图Key
](
https://lbs.qq.com/mobile/androidMapSDK/developerGuide/getKey
)
修改项目根目录下 AndroidManifest.xml
<meta-data
android:name=
"TencentMapSDK"
android:value=
"您申请的Key"
/>
## 相关开发文档
[
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-tencentgeolocation/utssdk/app-android/
libs/
androix-core-1.0.0.jar
→
uni_modules/uts-tencentgeolocation/utssdk/app-android/androix-core-1.0.0.jar
浏览文件 @
79a14da8
文件已移动
uni_modules/uts-tencentgeolocation/utssdk/app-android/config.json
浏览文件 @
79a14da8
{
"dependencies"
:
[{
"id"
:
"androidx.core:core"
,
"source"
:
"implementation 'androidx.core:core:1.0.0'"
},
{
"id"
:
"com.tencent.map.geolocation:TencentLocationSdk-openplatform"
,
"source"
:
"implementation 'com.tencent.map.geolocation:TencentLocationSdk-openplatform:7.3.0'"
}],
"minSdkVersion"
:
21
}
uni_modules/uts-tencentgeolocation/utssdk/app-android/index.uts
浏览文件 @
79a14da8
...
...
@@ -99,10 +99,12 @@ class SingleLocationListener extends TencentLocationListener {
override onLocationChanged(location:TencentLocation , error:Int ,
reason:string ):void{
console.log(location);
this.hostOptionWraper.onLocationChanged(location,error,reason);
}
override onStatusUpdate(name:string, status:Int, desc:string ):void{
console.log(name);
this.hostOptionWraper.onStatusUpdate(name,status,desc);
}
...
...
@@ -126,7 +128,7 @@ export function getLocation(locationOptions: LocationOptions) {
}else{
locationRequest.setRequestLevel(TencentLocationRequest.REQUEST_LEVEL_GEO);
}
mLocationManager.requestSingleFreshLocation(
locationRequest
, mLocationListener, Looper.getMainLooper());
console.log(locationRequest);
mLocationManager.requestSingleFreshLocation(
null
, mLocationListener, Looper.getMainLooper());
return { name: "getLocation"};
}
\ No newline at end of file
uni_modules/uts-tencentgeolocation/utssdk/app-android/libs/TencentLocationSDK-v7.4.9-r9b76f6e0-20220803191419-release.jar
0 → 100644
浏览文件 @
79a14da8
文件已添加
uni_modules/uts-tencentgeolocation/utssdk/app-android/libs/TencentLocationSdk-openplatform-7.4.9.aar
已删除
100644 → 0
浏览文件 @
330de077
文件已删除
uni_modules/uts-tencentgeolocation/utssdk/app-android/libs/armeabi-v7a/libtencentloc.so
0 → 100644
浏览文件 @
79a14da8
文件已添加
uni_modules/uts-tencentgeolocation/utssdk/app-android/proguard-rules.pro
浏览文件 @
79a14da8
...
...
@@ -2,16 +2,24 @@
-
keepclassmembers
class
**
{
public
void
on
*
Event
(...);
}
-
keep
public
class
com
.
tencent
.
location
.
**
{
public
protected
*
;
}
-
keepclasseswithmembernames
class
*
{
native
<
methods
>
;
}
-
keep
class
c
.
t
.
**
{
*
;}
-
keep
class
com
.
tencent
.
map
.
geolocation
.
**
{
*
;}
-
dontwarn
org
.
eclipse
.
jdt
.
annotation
.
**
-
dontwarn
c
.
t
.
**
#
sdk版本小于18时需要以下配置
,
建议使用
18
或以上版本的
sdk编译
-
dontwarn
android
.
location
.
Location
-
dontwarn
android
.
net
.
wifi
.
WifiManager
-
dontnote
ct
.
**
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录