Commit 2999b426 authored by wanglei's avatar wanglei

...

parent 1c5ad79b
......@@ -71,5 +71,7 @@ dependencies {
implementation("com.google.firebase:firebase-crashlytics")
//facebook
implementation("com.facebook.android:facebook-android-sdk:[8,9)")
// implementation("com.facebook.android:facebook-android-sdk:[8,9)")
// implementation("com.facebook.android:facebook-android-sdk:[9,10)")
// implementation("com.facebook.android:facebook-android-sdk:16.0.0")
}
\ No newline at end of file
......@@ -10,7 +10,6 @@ import com.base.locationsharewhite.ui.splash.SplashActivity
import com.base.locationsharewhite.utils.AppPreferences
import com.base.locationsharewhite.utils.KotlinExt.toFormatMinute
import com.base.locationsharewhite.utils.LogEx
import com.facebook.FacebookSdk
import java.util.Locale
import java.util.UUID
......@@ -53,7 +52,7 @@ class MyApplication : Application() {
}
fun initApp() {
FacebookSdk.sdkInitialize(applicationContext)
// FacebookSdk.sdkInitialize(applicationContext)
var topicNumber = System.currentTimeMillis().toFormatMinute()
LogEx.logDebug(TAG, "topicNumber=$topicNumber")
if (topic_number.isNotEmpty()) {
......
......@@ -37,7 +37,7 @@ object LocationPositionUtils {
data.put("latitude", latLng.latitude)
data.put("longitude", latLng.longitude)
data.put("power", power)
LogEx.logDebug(TAG, "latitude=${latLng.latitude} longitude=${latLng.longitude} power=$power")
val bp = JSONObject()
// .put("${pkg}_1", "")
.put("${pkg}_5", Build.VERSION.SDK_INT)
......
......@@ -80,14 +80,12 @@ class LocationMapActivity : BaseActivity<ActivityLocationMapBinding>(), OnMapRea
override fun onMapReady(googleMap: GoogleMap) {
map = googleMap
LogEx.logDebug(TAG, "onMapReady")
val sydney = LatLng(-33.87365, 151.20689)
// showMeAndFriendLocation(sydney)
val chunxilu = LatLng(30.655782251943407, 104.07701072527895)
initMyAndFriendLocation(chunxilu)
sharingLocationJob()
// sharingLocationJob()
}
private fun resetMyLocation() {
......
......@@ -6,6 +6,7 @@ import com.base.locationsharewhite.location.LocationPositionUtils
import com.base.locationsharewhite.location.LocationPositionUtils.uploadMyLocation
import com.base.locationsharewhite.map.MapUtils.getLastKnowLatLng
import com.base.locationsharewhite.utils.BatteryUtils.getBatteryLevel
import com.base.locationsharewhite.utils.LogEx
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.coroutines.delay
......@@ -16,11 +17,12 @@ class LocationPresenter(
val context: Context,
val lifecycleCoroutineScope: LifecycleCoroutineScope
) {
private var TAG = "LocationPresenter"
private var uploadJob: Job? = null
fun startUploadMyLocation() {
if (uploadJob == null) {
LogEx.logDebug(TAG,"startUploadMyLocation")
uploadJob = lifecycleCoroutineScope.launch(Dispatchers.IO) {
while (isActive) {
val latLng = context.getLastKnowLatLng()
......
......@@ -16,12 +16,14 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven("https://maven.google.com'")
maven("https://s01.oss.sonatype.org/content/groups/public")
maven("https://jitpack.io")
maven("https://android-sdk.is.com")
maven("https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea")
maven("https://artifact.bytedance.com/repository/pangle")
maven("https://dl-maven-android.mintegral.com/repository/se_sdk_for_android/")
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment