Skip to content

Commit

Permalink
去掉firebase功能
Browse files Browse the repository at this point in the history
Change-Id: If37cd13c24c53165ae886dfb892e99f61ba23e05
  • Loading branch information
SundoggyNew committed Dec 27, 2023
1 parent 91a5374 commit 163332c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 171 deletions.
10 changes: 0 additions & 10 deletions sdkdemo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

apply plugin: 'com.google.gms.google-services'

apply plugin: 'com.google.firebase.crashlytics'

rootProject.ext.configPath = "../sdkdemo-config.json"

apply from: "../parse_json.gradle"
Expand Down Expand Up @@ -118,12 +114,6 @@ dependencies {
implementation 'com.tencent.iot.explorer:explorer-link-android:+'
}

implementation 'com.google.firebase:firebase-analytics-ktx:17.4.3'

// Add the Firebase Crashlytics SDK.
implementation 'com.google.firebase:firebase-crashlytics:17.0.1'

// implementation 'com.google.firebase:firebase-perf:19.0.7'
implementation 'com.alibaba:fastjson:1.2.73'
implementation "com.tencent.iot.thirdparty.android:esptouch:0.3.7.2"
implementation 'com.android.support:multidex:1.0.3'
Expand Down
155 changes: 0 additions & 155 deletions sdkdemo/google-services.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@ package com.tencent.iot.explorer.link.demo.core.activity

import android.text.TextUtils
import android.widget.Toast
import com.google.firebase.analytics.FirebaseAnalytics
import com.google.firebase.crashlytics.FirebaseCrashlytics
import com.tencent.iot.explorer.link.core.auth.IoTAuth
import com.tencent.iot.explorer.link.core.auth.callback.LoginCallback
import com.tencent.iot.explorer.link.core.auth.callback.MyCallback
import com.tencent.iot.explorer.link.core.auth.entity.User
import com.tencent.iot.explorer.link.core.auth.response.BaseResponse
import com.tencent.iot.explorer.link.demo.App
import com.tencent.iot.explorer.link.demo.BaseActivity
import com.tencent.iot.explorer.link.demo.R
import com.tencent.iot.explorer.link.demo.core.response.UserInfoResponse
Expand Down Expand Up @@ -69,9 +66,6 @@ class LoginActivity : BaseActivity(), LoginCallback {

override fun success(response: BaseResponse, reqCode: Int) {
response.parse(UserInfoResponse::class.java)?.Data?.run {
App.data.userInfo = this
FirebaseCrashlytics.getInstance().setUserId(App.data.userInfo.UserID)
FirebaseAnalytics.getInstance(this@LoginActivity).setUserId(App.data.userInfo.UserID)
jumpActivity(MainActivity::class.java, true)
}
}
Expand Down

0 comments on commit 163332c

Please sign in to comment.