Skip to content

Commit

Permalink
sdk合规检测,使用腾讯连连做demo,去掉腾讯地图的依赖。
Browse files Browse the repository at this point in the history
Change-Id: Ic311f80e6d09242a4112d38628deda4aa2279d3b
  • Loading branch information
SundoggyNew committed Dec 26, 2023
1 parent 2db3839 commit c2e471f
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 751 deletions.
6 changes: 0 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,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.7'
// 地图组件库,包括小车平移、点聚合等组件功能,详见开发指南。
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 @@ -170,7 +165,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.1'
implementation 'com.tencent.map.geolocation:TencentLocationSdk-openplatform:7.4.1'
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 @@ -91,7 +91,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 @@ -101,13 +101,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 c2e471f

Please sign in to comment.