This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.class final Lcom/whatsapp/App$1; | |
.super Ljava/lang/Object; | |
.source "" | |
# interfaces | |
.implements Ljava/lang/Thread$UncaughtExceptionHandler; | |
# annotations | |
.annotation system Ldalvik/annotation/EnclosingClass; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml | |
index 6eb87b0..3dee761 100644 | |
--- a/app/src/main/AndroidManifest.xml | |
+++ b/app/src/main/AndroidManifest.xml | |
@@ -45,6 +45,8 @@ | |
</intent-filter> | |
</activity> | |
+ <activity android:name="ru.ok.android.sdk.OkAuthActivity"/> | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task prepareCrashlyticsNdkDirs(type: PrepareCrashlyticsNdkDirs) { | |
libs = ["imgp","jpeg-turbo1500","lum","native_tools","usb100","uvc","UVCCamera"] | |
archs = ["x86", "armeabi-v7a"] | |
flavorPath = ["prod", "obfuscate"] | |
libsDir = new File(projectDir, 'libs') | |
objDir = new File(projectDir, 'obj') | |
} | |
class PrepareCrashlyticsNdkDirs extends DefaultTask { | |
@Input List<String> libs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apk=app.apk count=0 ; for dex in $(unzip -Z1 $apk classes*.dex); do count=$(($count + $(unzip -p $apk $dex | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"'))) ; done ; echo $count |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.animation.TypeEvaluator; | |
import android.animation.ValueAnimator; | |
import static java.lang.Math.pow; | |
public class GammaEvaluator implements TypeEvaluator { | |
private static final GammaEvaluator sInstance = new GammaEvaluator(); | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@NonNull | |
public static StreamViewHolder getViewHolder(LayoutInflater li, | |
/* parent */ ViewGroup p, int viewType, StreamItemViewController streamItemViewController) { | |
View v = null; | |
StreamViewHolder vh = null; | |
switch (viewType) { | |
case VIEW_TYPE_HEADER: | |
v = StreamFeedHeaderItem.newView(li, p); | |
vh = StreamFeedHeaderItem.newViewHolder(v, streamItemViewController); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.ok.android.bus.gen; | |
import android.content.Context; | |
import android.support.annotation.AnyRes; | |
import android.support.annotation.NonNull; | |
import android.util.Pair; | |
import java.lang.Boolean; | |
import java.lang.Object; | |
import java.lang.Override; | |
import java.lang.String; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# init | |
repo init -u https://android.googlesource.com/platform/manifest | |
# the same but depth=1 for faster clone | |
repo init --depth=1 -u https://android.googlesource.com/platform/manifest | |
# sync network in 4 threads and sync local in 16 threads | |
repo sync -n -j 4 && repo sync -l -j 16 | |
# the same but sync only current branch -c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.graphics.Canvas; | |
import android.graphics.ColorFilter; | |
import android.graphics.Rect; | |
import android.graphics.drawable.Drawable; | |
public class CenterCropDrawable extends Drawable { | |
private final Drawable drawable; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2016 Jesse Wilson | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |