removed unused sources
This commit is contained in:
parent
804a188308
commit
94ba474690
|
@ -15,12 +15,18 @@
|
|||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
-dontobfuscate
|
||||
|
||||
#-dontobfuscate
|
||||
|
||||
-dontwarn sun.net.spi.**
|
||||
-dontwarn java.nio.file.**
|
||||
-dontwarn org.codehaus.mojo.**
|
||||
-dontwarn com.makeramen.roundedimageview.**
|
||||
-dontwarn com.squareup.haha.**
|
||||
-dontwarn com.google.android.gms.**
|
||||
-dontwarn com.google.android.youtube.**
|
||||
-dontwarn jnamed**
|
||||
-dontwarn com.bluelinelabs.logansquare.**
|
||||
|
||||
-keepattributes *Annotation*
|
||||
-keepattributes EnclosingMethod
|
||||
|
@ -36,21 +42,10 @@
|
|||
@com.squareup.otto.Produce public *;
|
||||
}
|
||||
|
||||
-keepclassmembers class android.support.v7.internal.app.WindowDecorActionBar {
|
||||
private android.support.v7.internal.widget.ActionBarContextView mContextView;
|
||||
private android.support.v7.internal.widget.DecorToolbar mDecorToolbar;
|
||||
}
|
||||
-keepclassmembers class android.support.v7.internal.widget.ActionBarOverlayLayout {
|
||||
private android.graphics.drawable.Drawable mWindowContentOverlay;
|
||||
}
|
||||
|
||||
-keepclassmembers class org.mariotaku.twidere.activity.BrowserSignInActivity.InjectorJavaScriptInterface {
|
||||
-keepclassmembers class org.mariotaku.twidere.activity.BrowserSignInActivity$InjectorJavaScriptInterface {
|
||||
public *;
|
||||
}
|
||||
|
||||
# Fuck shitsung
|
||||
-keep class !android.support.v7.view.menu.*MenuBuilder*, android.support.v7.** { *; }
|
||||
-keep interface android.support.v7.* { *; }
|
||||
|
||||
# Fuck xiaomi
|
||||
-keep class !org.apache.commons.lang3.** { *; }
|
||||
# Fuck shitsung http://stackoverflow.com/a/34896262/859190
|
||||
# ... and fuck xiaomi http://crashes.to/s/675ac9aff5e
|
||||
-keep class !android.support.v7.view.menu.MenuBuilder, !org.apache.commons.** { *; }
|
||||
|
|
|
@ -55,7 +55,6 @@ import com.afollestad.appthemeengine.util.ATEUtil;
|
|||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.mariotaku.twidere.Constants;
|
||||
import org.mariotaku.twidere.R;
|
||||
import org.mariotaku.twidere.activity.iface.IThemedActivity;
|
||||
import org.mariotaku.twidere.graphic.ActionIconDrawable;
|
||||
import org.mariotaku.twidere.graphic.iface.DoNotWrapDrawable;
|
||||
import org.mariotaku.twidere.preference.ThemeBackgroundPreference;
|
||||
|
@ -304,14 +303,9 @@ public class ThemeUtils implements Constants {
|
|||
}
|
||||
|
||||
public static Drawable getWindowBackgroundFromTheme(final Context context) {
|
||||
final TypedArray a = context.obtainStyledAttributes(new int[]{R.attr.windowNormalBackground,
|
||||
android.R.attr.windowBackground});
|
||||
final TypedArray a = context.obtainStyledAttributes(new int[]{android.R.attr.windowBackground});
|
||||
try {
|
||||
if (a.hasValue(0)) {
|
||||
return a.getDrawable(0);
|
||||
} else {
|
||||
return a.getDrawable(1);
|
||||
}
|
||||
return a.getDrawable(0);
|
||||
} finally {
|
||||
a.recycle();
|
||||
}
|
||||
|
@ -399,24 +393,6 @@ public class ThemeUtils implements Constants {
|
|||
}
|
||||
}
|
||||
|
||||
public static void setupDrawerBackground(Context context, View view) {
|
||||
if (!(context instanceof IThemedActivity)) return;
|
||||
final String backgroundOption = ((IThemedActivity) context).getThemeBackgroundOption();
|
||||
final int alpha = ((IThemedActivity) context).getCurrentThemeBackgroundAlpha();
|
||||
final Drawable d;
|
||||
if (isSolidBackground(backgroundOption)) {
|
||||
d = new ColorDrawable(!isLightTheme(context) ? Color.BLACK : Color.WHITE);
|
||||
} else {
|
||||
d = getWindowBackgroundFromTheme(context);
|
||||
}
|
||||
if (d == null) throw new NullPointerException();
|
||||
d.mutate();
|
||||
if (isTransparentBackground(backgroundOption)) {
|
||||
d.setAlpha(alpha);
|
||||
}
|
||||
ViewSupport.setBackground(view, d);
|
||||
}
|
||||
|
||||
public static void wrapMenuIcon(@NonNull Menu menu, int itemColor, int subItemColor, int... excludeGroups) {
|
||||
for (int i = 0, j = menu.size(); i < j; i++) {
|
||||
final MenuItem item = menu.getItem(i);
|
||||
|
|
|
@ -1,43 +0,0 @@
|
|||
/*
|
||||
* Twidere - Twitter client for Android
|
||||
*
|
||||
* Copyright (C) 2012-2015 Mariotaku Lee <mariotaku.lee@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.mariotaku.twidere.view;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.FrameLayout;
|
||||
|
||||
import org.mariotaku.twidere.util.ThemeUtils;
|
||||
|
||||
public class DrawerContentFrameLayout extends FrameLayout {
|
||||
|
||||
public DrawerContentFrameLayout(final Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
public DrawerContentFrameLayout(final Context context, final AttributeSet attrs) {
|
||||
this(context, attrs, 0);
|
||||
}
|
||||
|
||||
public DrawerContentFrameLayout(final Context context, final AttributeSet attrs, final int defStyle) {
|
||||
super(context, attrs, defStyle);
|
||||
ThemeUtils.setupDrawerBackground(context, this);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,36 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Twidere - Twitter client for Android
|
||||
~
|
||||
~ Copyright (C) 2012-2014 Mariotaku Lee <mariotaku.lee@gmail.com>
|
||||
~
|
||||
~ This program is free software: you can redistribute it and/or modify
|
||||
~ it under the terms of the GNU General Public License as published by
|
||||
~ the Free Software Foundation, either version 3 of the License, or
|
||||
~ (at your option) any later version.
|
||||
~
|
||||
~ This program is distributed in the hope that it will be useful,
|
||||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
~ GNU General Public License for more details.
|
||||
~
|
||||
~ You should have received a copy of the GNU General Public License
|
||||
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<org.mariotaku.twidere.view.DrawerContentFrameLayout
|
||||
android:id="@+id/left_drawer_container"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:focusable="true">
|
||||
|
||||
<fragment
|
||||
android:id="@+id/left_drawer"
|
||||
class="org.mariotaku.twidere.fragment.AccountsDashboardFragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:layout="@layout/fragment_accounts_dashboard"/>
|
||||
|
||||
</org.mariotaku.twidere.view.DrawerContentFrameLayout>
|
|
@ -13,7 +13,6 @@
|
|||
<attr name="quoteIndicatorBackgroundColor" format="color"/>
|
||||
<attr name="linePageIndicatorStyle" format="reference"/>
|
||||
<attr name="ateThemeKey" format="string"/>
|
||||
<attr name="windowNormalBackground" format="reference"/>
|
||||
</declare-styleable>
|
||||
<declare-styleable name="ColorLabelView">
|
||||
<attr name="ignorePadding" format="boolean"/>
|
||||
|
|
Loading…
Reference in New Issue