Skip to content

Commit

Permalink
video sdk合规检测,去掉腾讯地图的依赖。
Browse files Browse the repository at this point in the history
Change-Id: Ibc84d454e7b72aa58bc66fe891e01faaf4e7cccd
  • Loading branch information
SundoggyNew committed Jan 3, 2024
1 parent 18452a7 commit d7d461a
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 724 deletions.
6 changes: 0 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,6 @@ dependencies {
implementation 'io.github.shichuanenhui:refresh-header-classics:1.0.0'
implementation 'io.github.shichuanenhui:refresh-footer-classics:1.0.0'


implementation 'com.tencent.map:tencent-map-vector-sdk:4.4.1'
// 地图组件库,包括小车平移、点聚合等组件功能,详见开发指南。
implementation 'com.tencent.map:sdk-utilities:1.0.6'

if (findProject(':sdk:explorer-link-android') != null) {
implementation project(path: ':sdk:explorer-link-android')
} else {
Expand All @@ -187,7 +182,6 @@ dependencies {
implementation "com.tencent.iot.thirdparty.android:esptouch:0.3.7.2"
implementation "com.github.skydoves:progressview:1.1.2"
implementation 'com.belerweb:pinyin4j:2.5.0'
implementation 'com.tencent.map.geolocation:TencentLocationSdk-openplatform:7.2.6'
implementation 'cn.aigestudio.wheelpicker:WheelPicker:1.1.3'
implementation 'com.chauthai.swipereveallayout:swipe-reveal-layout:1.4.1'
implementation 'com.github.Jay-Goo:RangeSeekBar:v3.0.0'
Expand Down
1 change: 0 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
<activity android:name=".kitlink.activity.CommentDetailsActivity" />
<activity android:name=".kitlink.activity.DelayTimeActivity" />
<activity android:name=".kitlink.activity.BuleToothActivity"/>
<activity android:name=".kitlink.activity.MarkerPaddingActivity"/>
<activity android:name=".kitlink.activity.CloudTimingActivity" /> <!-- 信鸽Android P -->
<uses-library
android:name="org.apache.http.legacy"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,8 @@ class AddFamilyActivity : BaseActivity(), MyCallback {
override fun setListener() {
iv_back.setOnClickListener { finish() }
iv_set_location.setOnClickListener {
val intent = Intent(this, MarkerPaddingActivity::class.java)
startActivityForResult(intent, CommonField.MAP_LOCATION_REQ_CODE)
}
et_family_address.setOnClickListener {
val intent = Intent(this, MarkerPaddingActivity::class.java)
startActivityForResult(intent, CommonField.MAP_LOCATION_REQ_CODE)
}
btn_add_family.setOnClickListener { addFamily() }
iv_set_family_name.setOnClickListener {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.tencent.iot.explorer.link.kitlink.activity

import android.Manifest
import android.content.Context
import android.content.Intent
import android.net.wifi.WifiInfo
Expand All @@ -13,7 +14,6 @@ import androidx.appcompat.content.res.AppCompatResources
import com.tencent.iot.explorer.link.R
import com.tencent.iot.explorer.link.T
import com.tencent.iot.explorer.link.core.utils.KeyBoardUtils
import com.tencent.iot.explorer.link.core.utils.LocationUtil
import com.tencent.iot.explorer.link.customview.dialog.WifiHelperDialog
import com.tencent.iot.explorer.link.customview.progress.bean.StepBean
import com.tencent.iot.explorer.link.kitlink.consts.CommonField
Expand Down Expand Up @@ -95,6 +95,8 @@ class DeviceWifiActivity : PActivity() {
showWifiInfo()
}

private val permissions = arrayOf(Manifest.permission.ACCESS_COARSE_LOCATION)

/**
* 展示wifi
*/
Expand All @@ -110,7 +112,7 @@ class DeviceWifiActivity : PActivity() {
openWifiDialog?.show()
} else {
var ssid2Set = wifiManager.connectionInfo.ssid.replace("\"", "")
if (!LocationUtil.isLocationServiceEnable(this)) {
if (!checkPermissions(permissions)) {
tv_select_wifi.hint = getString(R.string.open_location_tip)
ssid2Set = ""
openLocationServiceDialog?.show()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,6 @@ class FamilyActivity : MActivity(), FamilyView, CRecyclerView.RecyclerItemView {
jumpActivity(RoomListActivity::class.java)
}
2 -> {
val intent = Intent(this@FamilyActivity, MarkerPaddingActivity::class.java)
var bundle = Bundle()
bundle.putString(CommonField.ADDRESS, headerHolder.data?.Address)
bundle.putString(CommonField.FAMILY_ID, familyEntity?.FamilyId)
bundle.putString(CommonField.FAMILY_NAME, familyEntity?.FamilyName)
intent.putExtra(CommonField.ADDRESS, bundle)
startActivityForResult(intent, CommonField.MAP_LOCATION_REQ_CODE)
}
3 -> {
jumpActivity(InviteMemberActivity::class.java)
Expand Down
Loading

0 comments on commit d7d461a

Please sign in to comment.