Skip to content

Commit

Permalink
Reinstated Proguard.
Browse files Browse the repository at this point in the history
  • Loading branch information
aerovulpe committed May 26, 2015
1 parent 6bdb4c0 commit e200f90
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 16 deletions.
Binary file modified app/app-release.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ android {
applicationId "me.aerovulpe.crawler"
minSdkVersion 16
targetSdkVersion 22
versionCode 3
versionCode 4
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Expand Down
15 changes: 15 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,18 @@
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
-keep public class com.google.android.gms.ads.** {
public *;
}

-keep public class com.google.ads.** {
public *;
}

-keep public class org.jsoup.** {
public *;
}

-keep public class me.aerovulpe.crawler.fragments.PhotoViewerFragment {
private void changePagerScroller();
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@
import android.app.FragmentManager;

import me.aerovulpe.crawler.fragments.ExplorerFragment;
import me.aerovulpe.crawler.request.FlickrRequest;
import me.aerovulpe.crawler.request.PicasaAlbumsRequest;
import me.aerovulpe.crawler.util.AccountsUtil;

/**
* Created by Aaron on 12/05/2015.
*/
public class ExplorerTabAdapter extends SmartFragmentStatePagerAdapter {
private static final String[] mTabNames = {"Tumblr", "Flickr", "Picasa"};
private static final String[] mCategories = {"accessories", FlickrRequest.class.getName(),
PicasaAlbumsRequest.class.getName()};
private static final String[] mCategories = {"accessories", AccountsUtil.CATEGORY_FLICKR,
AccountsUtil.CATEGORY_PICASA};

public ExplorerTabAdapter(FragmentManager fragmentManager) {
super(fragmentManager);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@


public class AddEditAccountFragment extends DialogFragment {
private static final String ARG_FRAGMENT_TYPE = AddEditAccountFragment.class.getName() + "arg_fragment_type";
private static final String ARG_ACCOUNT_TYPE = AddEditAccountFragment.class.getName() + "arg_account_type";
private static final String ARG_ID = AddEditAccountFragment.class.getName() + "arg_id";
private static final String ARG_NAME = AddEditAccountFragment.class.getName() + "arg_name";
private static final String ARG_FRAGMENT_TYPE = "AddEditAccountFragment.arg_fragment_type";
private static final String ARG_ACCOUNT_TYPE = "AddEditAccountFragment.arg_account_type";
private static final String ARG_ID = "AddEditAccountFragment.arg_id";
private static final String ARG_NAME = "AddEditAccountFragment.arg_name";
public static int ADD_ACCOUNT = 0;
public static int EDIT_ACCOUNT = 1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ private void addCategories(Document document) {
flickrValues.put(CrawlerContract.CategoryEntry.COLUMN_ACCOUNT_TYPE,
AccountsUtil.ACCOUNT_TYPE_FLICKR);
flickrValues.put(CrawlerContract.CategoryEntry.COLUMN_CATEGORY_ID,
FlickrRequest.class.getName());
AccountsUtil.CATEGORY_FLICKR);

ContentValues picasaValues = new ContentValues();
picasaValues.put(CrawlerContract.CategoryEntry.COLUMN_ACCOUNT_TYPE,
AccountsUtil.ACCOUNT_TYPE_PICASA);
picasaValues.put(CrawlerContract.CategoryEntry.COLUMN_CATEGORY_ID,
PicasaAlbumsRequest.class.getName());
AccountsUtil.CATEGORY_PICASA);

addValues(flickrValues);
addValues(picasaValues);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/
public class ExplorerRequestWorker implements Runnable {
private int mCacheSize = 25;
private final String LOG_TAG = ExplorerRequestWorker.class.getSimpleName();
private final String LOG_TAG = "ExplorerRequestWorker";
private ContentProviderClient mProvider;
private Vector<ContentValues> mContentCache;
private final ExplorerRequest mRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public abstract class Request implements Runnable {
private static final String LAST_PHOTO_ID_SUFFIX = ".LAST_PHOTO_ID";
private static final String NUM_OF_PHOTOS_SUFFIX = ".NUM_OF_PHOTOS";
private static final String INITIAL_PAGE_SUFFIX = ".INITIAL_PAGE";
private static final String LOG_TAG = Request.class.getSimpleName();
private static final String LOG_TAG = "Request";
private int mCacheSize = 3000;
private final String mAlbumID;
private final RequestService mRequestService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

public class TouchImageView extends ImageView {

private static final String DEBUG = TouchImageView.class.getSimpleName();
private static final String DEBUG = "TouchImageView";

//
// SuperMin and SuperMax multipliers. Determine how much the image can be
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/me/aerovulpe/crawler/util/AccountsUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ public final class AccountsUtil {
public static final int ACCOUNT_TYPE_TUMBLR = 0;
public static final int ACCOUNT_TYPE_FLICKR = 1;
public static final int ACCOUNT_TYPE_PICASA = 2;
public static final String CATEGORY_FLICKR = "flickr_category";
public static final String CATEGORY_PICASA = "picasa_category";
private static final String TUMBLR_BASE_SUFFIX = ".tumblr.com";
private static final String FLICKR_BASE = "https://www.flickr.com/photos/";
private static final String PICASA_BASE = "http://picasaweb.google.com/data/feed/api/user/";
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<color name="crawlerPrimaryColor">@color/md_indigo_500</color>
<color name="crawlerSecondaryColor">@color/md_indigo_700</color>
<color name="crawlerBackgroundAccent">@color/md_pink_700</color>
<color name="crawlerBackgroundColor">@color/md_grey_500</color>
<color name="crawlerBackgroundColor">@color/md_grey_400</color>
<color name="crawlerPrimaryTextColor">@color/md_white_1000</color>
<color name="crawlerSecondaryTextColor">@color/md_grey_700</color>
<color name="crawlerHighlightColor">@color/md_indigo_A700</color>
Expand Down

0 comments on commit e200f90

Please sign in to comment.