Skip to content

Commit

Permalink
V1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cczhr committed Apr 1, 2021
1 parent fb33872 commit 872f3d0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
applicationId "com.cczhr.otglocation"
minSdkVersion 24
targetSdkVersion 30
versionCode 4
versionName "1.1.0"
versionCode 5
versionName "1.1.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

Expand Down
Binary file removed app/libs/BaiduLBS_AndroidSDK_Lib.aar
Binary file not shown.
2 changes: 1 addition & 1 deletion app/src/main/java/com/cczhr/otglocation/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class MainActivity : BaseActivity() {
fun selectLocation(view: View) {
val lat = latitude.text.toString().toDoubleOrNull()
val lon = longitude.text.toString().toDoubleOrNull()
val intent=Intent(this, BaiduMapActivity::class.java)//MapActivity
val intent=Intent(this, MapActivity::class.java)
if (lat != null && lon != null) {
intent.putExtra("lat",lat)
intent.putExtra("lon",lon)
Expand Down
5 changes: 1 addition & 4 deletions app/src/main/java/com/cczhr/otglocation/utils/Application.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ package com.cczhr.otglocation.utils

import android.app.Application
import android.content.Context
import com.baidu.mapapi.CoordType
import com.baidu.mapapi.SDKInitializer


class Application:Application() {

override fun onCreate() {
super.onCreate()
SDKInitializer.initialize(this)
SDKInitializer.setCoordType(CoordType.GCJ02)
context=this
}
companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ class IMobileDeviceTools {

fun killUsbmuxd(deviceNode: String = "") {
val killSystemMtp = if (deviceNode.isNotEmpty()) "kill `lsof -t $deviceNode`\n" else deviceNode
runCommand("$killSystemMtp.$saveFilePath/usbmuxd -X")
val killPort="kill -9 `netstat -tunlp | grep 27015|awk '{print $7} '|awk -F '/' '{print $1}'`"
runCommand("$killSystemMtp.$saveFilePath/usbmuxd -X\n$killPort")
SystemClock.sleep(1500)//保证进程杀死 休眠一下
}

Expand Down

0 comments on commit 872f3d0

Please sign in to comment.