Skip to content

Commit

Permalink
chore: remove some google stuff
Browse files Browse the repository at this point in the history
Signed-off-by: qwq233 <qwq233@qwq2333.top>
  • Loading branch information
qwq233 committed Jul 10, 2024
1 parent 170b7d2 commit 94d8e1f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 19 deletions.
2 changes: 0 additions & 2 deletions TMessagesProj/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ dependencies {
compileOnly(libs.checker.compat.qual)
implementation(libs.firebase.messaging)
implementation(libs.firebase.config)
implementation(libs.firebase.datatransport)
implementation(libs.firebase.appindexing)
implementation(libs.play.services.vision)
implementation(libs.play.services.location)
implementation(libs.play.services.wallet)
Expand Down
12 changes: 0 additions & 12 deletions TMessagesProj/src/main/java/org/telegram/ui/LaunchActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Debug;
import android.os.Environment;
import android.os.Parcelable;
import android.os.StatFs;
import android.os.StrictMode;
Expand Down Expand Up @@ -91,9 +89,6 @@

import com.google.android.gms.common.api.Status;
import com.google.common.primitives.Longs;
import com.google.firebase.appindexing.Action;
import com.google.firebase.appindexing.FirebaseUserActions;
import com.google.firebase.appindexing.builders.AssistActionBuilder;

import org.telegram.PhoneFormat.PhoneFormat;
import org.telegram.messenger.AccountInstance;
Expand Down Expand Up @@ -211,7 +206,6 @@

import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.text.DateFormat;
Expand Down Expand Up @@ -2826,12 +2820,6 @@ private boolean handleIntent(Intent intent, boolean isNew, boolean restore, bool
}
}
if (intent.hasExtra(EXTRA_ACTION_TOKEN)) {
final boolean success = UserConfig.getInstance(currentAccount).isClientActivated() && "tg".equals(scheme) && unsupportedUrl == null;
final Action assistAction = new AssistActionBuilder()
.setActionToken(intent.getStringExtra(EXTRA_ACTION_TOKEN))
.setActionStatus(success ? Action.Builder.STATUS_TYPE_COMPLETED : Action.Builder.STATUS_TYPE_FAILED)
.build();
FirebaseUserActions.getInstance(this).end(assistAction);
intent.removeExtra(EXTRA_ACTION_TOKEN);
}
if (code != null || UserConfig.getInstance(currentAccount).isClientActivated()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ internal inline fun createLinear(init: LinearLayout.LayoutParams.() -> Unit): Li
}

internal fun AccountInstance.cacheUsersAndChats(users: ArrayList<TLRPC.User>? = null, chats: ArrayList<TLRPC.Chat>? = null) {
this.messagesStorage?.putUsersAndChats(users, chats, false, true)
this.messagesStorage.putUsersAndChats(users, chats, false, true)
this.messagesController.apply {
putUsers(users, false)
putChats(chats, false)
Expand Down
4 changes: 0 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ exifinterface = "1.3.7"
coreKtx = "1.13.1"
fragment = "1.8.1"
firebase = "33.1.1"
firebaseAppindexing = "20.0.0"
firebaseConfig = "22.0.0"
firebaseDatatransport = "19.0.0"
firebaseMessaging = "24.0.0"
gms = "4.4.2"
gson = "2.11.0"
Expand Down Expand Up @@ -43,11 +41,9 @@ checker-compat-qual = { module = "org.checkerframework:checker-compat-qual", ver
dynamicanimation = { module = "androidx.dynamicanimation:dynamicanimation", version.ref = "dynamicanimation" }
exifinterface = { module = "androidx.exifinterface:exifinterface", version.ref = "exifinterface" }
core-ktx = { module = "androidx.core:core-ktx", version.ref = "coreKtx" }
firebase-appindexing = { module = "com.google.firebase:firebase-appindexing", version.ref = "firebaseAppindexing" }
firebase-bom = { module = "com.google.firebase:firebase-bom", version.ref = "firebase" }
firebase-config = { module = "com.google.firebase:firebase-config", version.ref = "firebaseConfig" }
firebase-crashlytics-ndk = { module = "com.google.firebase:firebase-crashlytics-ndk" }
firebase-datatransport = { module = "com.google.firebase:firebase-datatransport", version.ref = "firebaseDatatransport" }
firebase-messaging = { module = "com.google.firebase:firebase-messaging", version.ref = "firebaseMessaging" }
gson = { module = "com.google.code.gson:gson", version.ref = "gson" }
guava = { module = "com.google.guava:guava", version.ref = "guava" }
Expand Down

0 comments on commit 94d8e1f

Please sign in to comment.