提交 23ec4f25 编写于 作者: 打打卡夫卡's avatar 打打卡夫卡

uts android 打包存在定位混淆问题 待修复

上级 79a14da8
......@@ -28,7 +28,7 @@
<application>
<!--meta-data-->
<meta-data android:name="TencentMapSDK" android:value="申请腾讯定位appKey" />
<meta-data android:name="TencentMapSDK" android:value="您申请的app key" />
</application>
</manifest>
{
"dependencies": [
{
"id": "com.tencent.map.geolocation:TencentLocationSdk-openplatform",
"source": "implementation 'com.tencent.map.geolocation:TencentLocationSdk-openplatform:7.4.9'"
}],
"minSdkVersion": 21
}
......@@ -99,6 +99,8 @@ class SingleLocationListener extends TencentLocationListener {
override onLocationChanged(location:TencentLocation , error:Int ,
reason:string ):void{
console.log(error);
console.log(reason);
console.log(location);
this.hostOptionWraper.onLocationChanged(location,error,reason);
}
......
-keepattributes *Annotation*
-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.
先完成此消息的编辑!
想要评论请 注册