Skip to content

Commit

Permalink
[TF][KILL] Hockey analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
thermatk committed Aug 22, 2020
1 parent 56fc819 commit 58b022c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 30 deletions.
2 changes: 0 additions & 2 deletions TMessagesProj/build.gradle
Expand Up @@ -32,8 +32,6 @@ dependencies {
implementation 'com.google.android.gms:play-services-vision:16.2.0'
implementation 'com.google.android.gms:play-services-wearable:17.0.0'
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation "com.microsoft.appcenter:appcenter-distribute:3.2.2"
implementation "com.microsoft.appcenter:appcenter-crashes:3.2.2"
implementation 'com.googlecode.mp4parser:isoparser:1.0.6'
implementation 'com.stripe:stripe-android:2.0.2'
implementation files('libs/libgsaverification-client.aar')
Expand Down
Expand Up @@ -94,9 +94,6 @@
import com.google.android.gms.auth.api.phone.SmsRetriever;
import com.google.android.gms.auth.api.phone.SmsRetrieverClient;
import com.google.android.gms.tasks.Task;
import com.microsoft.appcenter.AppCenter;
import com.microsoft.appcenter.crashes.Crashes;
import com.microsoft.appcenter.distribute.Distribute;

import org.telegram.PhoneFormat.PhoneFormat;
import org.telegram.tgnet.ConnectionsManager;
Expand Down Expand Up @@ -1943,32 +1940,11 @@ public void onAnimationEnd(Animator animation) {
}*/

public static void startAppCenter(Activity context) {
try {
if (BuildVars.DEBUG_VERSION) {
Distribute.setEnabledForDebuggableBuild(true);
AppCenter.start(context.getApplication(), BuildVars.DEBUG_VERSION ? BuildVars.APPCENTER_HASH_DEBUG : BuildVars.APPCENTER_HASH, Distribute.class, Crashes.class);
} else {
AppCenter.start(context.getApplication(), BuildVars.DEBUG_VERSION ? BuildVars.APPCENTER_HASH_DEBUG : BuildVars.APPCENTER_HASH, Crashes.class);
}
AppCenter.setUserId("uid=" + UserConfig.getInstance(UserConfig.selectedAccount).clientUserId);
} catch (Throwable e) {
FileLog.e(e);
}

}

private static long lastUpdateCheckTime;
public static void checkForUpdates() {
try {
if (BuildVars.DEBUG_VERSION) {
if (SystemClock.elapsedRealtime() - lastUpdateCheckTime < 60 * 60 * 1000) {
return;
}
lastUpdateCheckTime = SystemClock.elapsedRealtime();
Distribute.checkForUpdate();
}
} catch (Throwable e) {
FileLog.e(e);
}
}

public static void addToClipboard(CharSequence str) {
Expand Down
Expand Up @@ -23,9 +23,6 @@ public class BuildVars {
public static String BUILD_VERSION_STRING = "7.0.0";
public static int APP_ID = BuildConfig.APP_ID; //obtain your own APP_ID at https://core.telegram.org/api/obtaining_api_id
public static String APP_HASH = BuildConfig.APP_HASH; //obtain your own APP_HASH at https://core.telegram.org/api/obtaining_api_id
public static String APPCENTER_HASH = "a5b5c4f5-51da-dedc-9918-d9766a22ca7c";
public static String APPCENTER_HASH_DEBUG = "f9726602-67c9-48d2-b5d0-4761f1c1a8f3";
//
public static String SMS_HASH = DEBUG_VERSION ? "O2P2z+/jBpJ" : "oLeq9AcOZkT";
public static String PLAYSTORE_APP_URL = "https://play.google.com/store/apps/details?id=org.telegram.messenger";

Expand Down

0 comments on commit 58b022c

Please sign in to comment.