Commit 5db28cda authored by Donald's avatar Donald

refactor

parent d39adffd
......@@ -2,8 +2,8 @@ package org.horaapps.leafpic;
import android.app.Application;
import org.horaapps.leafpic.data.Album;
import org.horaapps.leafpic.data.HandlingAlbums;
import org.horaapps.leafpic.model.Album;
import org.horaapps.leafpic.model.HandlingAlbums;
/**
* Created by dnld on 28/04/16.
......
......@@ -27,8 +27,8 @@ import com.mikepenz.community_material_typeface_library.CommunityMaterial;
import com.mikepenz.iconics.view.IconicsImageView;
import org.horaapps.leafpic.activities.base.ThemedActivity;
import org.horaapps.leafpic.data.Album;
import org.horaapps.leafpic.data.base.FoldersFileFilter;
import org.horaapps.leafpic.model.Album;
import org.horaapps.leafpic.model.base.FoldersFileFilter;
import org.horaapps.leafpic.util.AlertDialogsHelper;
import org.horaapps.leafpic.util.ThemeHelper;
......
......@@ -16,7 +16,7 @@ import com.mikepenz.iconics.view.IconicsImageView;
import org.horaapps.leafpic.MyApplication;
import org.horaapps.leafpic.activities.base.ThemedActivity;
import org.horaapps.leafpic.data.CustomAlbumsHelper;
import org.horaapps.leafpic.model.CustomAlbumsHelper;
import java.io.File;
import java.util.ArrayList;
......
......@@ -53,13 +53,13 @@ import org.horaapps.leafpic.SelectAlbumBottomSheet;
import org.horaapps.leafpic.activities.base.SharedMediaActivity;
import org.horaapps.leafpic.adapters.AlbumsAdapter;
import org.horaapps.leafpic.adapters.MediaAdapter;
import org.horaapps.leafpic.data.Album;
import org.horaapps.leafpic.data.CustomAlbumsHelper;
import org.horaapps.leafpic.data.HandlingAlbums;
import org.horaapps.leafpic.data.Media;
import org.horaapps.leafpic.data.base.FilterMode;
import org.horaapps.leafpic.data.base.SortingMode;
import org.horaapps.leafpic.data.base.SortingOrder;
import org.horaapps.leafpic.model.Album;
import org.horaapps.leafpic.model.CustomAlbumsHelper;
import org.horaapps.leafpic.model.HandlingAlbums;
import org.horaapps.leafpic.model.Media;
import org.horaapps.leafpic.model.base.FilterMode;
import org.horaapps.leafpic.model.base.SortingMode;
import org.horaapps.leafpic.model.base.SortingOrder;
import org.horaapps.leafpic.util.Affix;
import org.horaapps.leafpic.util.AlertDialogsHelper;
import org.horaapps.leafpic.util.ContentHelper;
......
......@@ -61,7 +61,7 @@ import com.mikepenz.google_material_typeface_library.GoogleMaterial;
import org.horaapps.leafpic.R;
import org.horaapps.leafpic.activities.base.ThemedActivity;
import org.horaapps.leafpic.data.Media;
import org.horaapps.leafpic.model.Media;
import org.horaapps.leafpic.util.ContentHelper;
import org.horaapps.leafpic.util.Measure;
import org.horaapps.leafpic.util.player.DemoPlayer;
......
......@@ -39,9 +39,9 @@ import org.horaapps.leafpic.SelectAlbumBottomSheet;
import org.horaapps.leafpic.activities.base.SharedMediaActivity;
import org.horaapps.leafpic.adapters.MediaPagerAdapter;
import org.horaapps.leafpic.animations.DepthPageTransformer;
import org.horaapps.leafpic.data.Album;
import org.horaapps.leafpic.data.base.SortingMode;
import org.horaapps.leafpic.data.base.SortingOrder;
import org.horaapps.leafpic.model.Album;
import org.horaapps.leafpic.model.base.SortingMode;
import org.horaapps.leafpic.model.base.SortingOrder;
import org.horaapps.leafpic.fragments.ImageFragment;
import org.horaapps.leafpic.util.AlertDialogsHelper;
import org.horaapps.leafpic.util.ColorPalette;
......
......@@ -16,7 +16,7 @@ import android.widget.Toast;
import org.horaapps.leafpic.R;
import org.horaapps.leafpic.activities.base.SharedMediaActivity;
import org.horaapps.leafpic.data.Album;
import org.horaapps.leafpic.model.Album;
import org.horaapps.leafpic.util.ColorPalette;
import org.horaapps.leafpic.util.PermissionUtils;
import org.horaapps.leafpic.util.PreferenceUtil;
......
......@@ -3,8 +3,8 @@ package org.horaapps.leafpic.activities.base;
import android.os.Bundle;
import org.horaapps.leafpic.MyApplication;
import org.horaapps.leafpic.data.Album;
import org.horaapps.leafpic.data.HandlingAlbums;
import org.horaapps.leafpic.model.Album;
import org.horaapps.leafpic.model.HandlingAlbums;
/**
* Created by dnld on 03/08/16.
......
......@@ -18,8 +18,8 @@ import com.bumptech.glide.Priority;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import org.horaapps.leafpic.R;
import org.horaapps.leafpic.data.Album;
import org.horaapps.leafpic.data.Media;
import org.horaapps.leafpic.model.Album;
import org.horaapps.leafpic.model.Media;
import org.horaapps.leafpic.util.ThemeHelper;
import java.util.ArrayList;
......
......@@ -17,7 +17,7 @@ import com.koushikdutta.ion.Ion;
import com.mikepenz.community_material_typeface_library.CommunityMaterial;
import com.mikepenz.iconics.view.IconicsImageView;
import org.horaapps.leafpic.data.Media;
import org.horaapps.leafpic.model.Media;
import org.horaapps.leafpic.util.ColorPalette;
import org.horaapps.leafpic.util.ThemeHelper;
......
......@@ -8,7 +8,7 @@ import android.util.SparseArray;
import android.view.View;
import android.view.ViewGroup;
import org.horaapps.leafpic.data.Media;
import org.horaapps.leafpic.model.Media;
import org.horaapps.leafpic.fragments.GifFragment;
import org.horaapps.leafpic.fragments.ImageFragment;
import org.horaapps.leafpic.fragments.VideoFragment;
......
......@@ -9,7 +9,7 @@ import android.view.ViewGroup;
import com.koushikdutta.ion.Ion;
import org.horaapps.leafpic.activities.SingleMediaActivity;
import org.horaapps.leafpic.data.Media;
import org.horaapps.leafpic.model.Media;
import uk.co.senab.photoview.PhotoView;
import uk.co.senab.photoview.PhotoViewAttacher;
......
......@@ -14,7 +14,7 @@ import com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView;
import org.horaapps.leafpic.R;
import org.horaapps.leafpic.activities.SingleMediaActivity;
import org.horaapps.leafpic.data.Media;
import org.horaapps.leafpic.model.Media;
import org.horaapps.leafpic.util.PreferenceUtil;
import org.horaapps.leafpic.views.RotateTransformation;
......
......@@ -14,7 +14,7 @@ import com.mikepenz.iconics.view.IconicsImageView;
import org.horaapps.leafpic.activities.PlayerActivity;
import org.horaapps.leafpic.activities.SingleMediaActivity;
import org.horaapps.leafpic.data.Media;
import org.horaapps.leafpic.model.Media;
import org.horaapps.leafpic.util.ContentHelper;
import org.horaapps.leafpic.util.PreferenceUtil;
......
package org.horaapps.leafpic.data;
package org.horaapps.leafpic.model;
import android.content.Context;
import android.media.MediaScannerConnection;
......@@ -7,12 +7,12 @@ import android.support.annotation.Nullable;
import android.util.Log;
import org.horaapps.leafpic.adapters.MediaAdapter;
import org.horaapps.leafpic.data.base.FilterMode;
import org.horaapps.leafpic.data.base.MediaComparators;
import org.horaapps.leafpic.data.base.SortingMode;
import org.horaapps.leafpic.data.base.SortingOrder;
import org.horaapps.leafpic.data.providers.MediaStoreProvider;
import org.horaapps.leafpic.data.providers.StorageProvider;
import org.horaapps.leafpic.model.base.FilterMode;
import org.horaapps.leafpic.model.base.MediaComparators;
import org.horaapps.leafpic.model.base.SortingMode;
import org.horaapps.leafpic.model.base.SortingOrder;
import org.horaapps.leafpic.model.providers.MediaStoreProvider;
import org.horaapps.leafpic.model.providers.StorageProvider;
import org.horaapps.leafpic.util.ContentHelper;
import org.horaapps.leafpic.util.PreferenceUtil;
import org.horaapps.leafpic.util.StringUtils;
......
package org.horaapps.leafpic.data;
package org.horaapps.leafpic.model;
import android.content.Context;
import android.support.annotation.Nullable;
import org.horaapps.leafpic.data.base.FilterMode;
import org.horaapps.leafpic.data.base.SortingMode;
import org.horaapps.leafpic.data.base.SortingOrder;
import org.horaapps.leafpic.model.base.FilterMode;
import org.horaapps.leafpic.model.base.SortingMode;
import org.horaapps.leafpic.model.base.SortingOrder;
import java.io.Serializable;
......
package org.horaapps.leafpic.data;
package org.horaapps.leafpic.model;
import android.content.ContentValues;
import android.content.Context;
......@@ -7,8 +7,8 @@ import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.os.Environment;
import org.horaapps.leafpic.data.base.SortingMode;
import org.horaapps.leafpic.data.base.SortingOrder;
import org.horaapps.leafpic.model.base.SortingMode;
import org.horaapps.leafpic.model.base.SortingOrder;
import java.io.File;
import java.util.ArrayList;
......
package org.horaapps.leafpic.data;
package org.horaapps.leafpic.model;
import android.content.Context;
import android.content.Intent;
......@@ -12,11 +12,11 @@ import android.provider.MediaStore;
import org.horaapps.leafpic.R;
import org.horaapps.leafpic.activities.SplashScreen;
import org.horaapps.leafpic.data.base.AlbumsComparators;
import org.horaapps.leafpic.data.base.SortingMode;
import org.horaapps.leafpic.data.base.SortingOrder;
import org.horaapps.leafpic.data.providers.MediaStoreProvider;
import org.horaapps.leafpic.data.providers.StorageProvider;
import org.horaapps.leafpic.model.base.AlbumsComparators;
import org.horaapps.leafpic.model.base.SortingMode;
import org.horaapps.leafpic.model.base.SortingOrder;
import org.horaapps.leafpic.model.providers.MediaStoreProvider;
import org.horaapps.leafpic.model.providers.StorageProvider;
import org.horaapps.leafpic.util.ContentHelper;
import org.horaapps.leafpic.util.PreferenceUtil;
import org.horaapps.leafpic.util.StringUtils;
......
package org.horaapps.leafpic.data;
package org.horaapps.leafpic.model;
import android.content.Context;
import android.database.Cursor;
......@@ -18,7 +18,7 @@ import com.drew.metadata.Metadata;
import com.drew.metadata.Tag;
import org.horaapps.leafpic.R;
import org.horaapps.leafpic.data.base.MediaDetailsMap;
import org.horaapps.leafpic.model.base.MediaDetailsMap;
import org.horaapps.leafpic.util.MediaSignature;
import org.horaapps.leafpic.util.StringUtils;
import org.jetbrains.annotations.TestOnly;
......
package org.horaapps.leafpic.data;
package org.horaapps.leafpic.model;
import android.graphics.BitmapFactory;
import android.util.Log;
......
package org.horaapps.leafpic.data;
package org.horaapps.leafpic.model;
/**
* Created by brand on 8/12/2016.
......
package org.horaapps.leafpic.data.base;
package org.horaapps.leafpic.model.base;
import org.horaapps.leafpic.data.Album;
import org.horaapps.leafpic.model.Album;
import org.horaapps.leafpic.util.NumericComparator;
import java.util.Comparator;
......
package org.horaapps.leafpic.data.base;
package org.horaapps.leafpic.model.base;
/**
* Created by dnld on 18/08/16.
......
package org.horaapps.leafpic.data.base;
package org.horaapps.leafpic.model.base;
import java.io.File;
import java.io.FileFilter;
......
package org.horaapps.leafpic.data.base;
package org.horaapps.leafpic.model.base;
import java.io.File;
import java.io.FilenameFilter;
......
package org.horaapps.leafpic.data.base;
package org.horaapps.leafpic.model.base;
import org.horaapps.leafpic.data.Media;
import org.horaapps.leafpic.model.Media;
import org.horaapps.leafpic.util.NumericComparator;
import java.util.Comparator;
......
package org.horaapps.leafpic.data.base;
package org.horaapps.leafpic.model.base;
import java.util.HashMap;
import java.util.TreeMap;
......
package org.horaapps.leafpic.data.base;
package org.horaapps.leafpic.model.base;
/**
* Created by dnld on 18/08/16.
......
package org.horaapps.leafpic.data.base;
package org.horaapps.leafpic.model.base;
/**
* Created by dnld on 18/08/16.
......
package org.horaapps.leafpic.data.providers;
package org.horaapps.leafpic.model.providers;
import android.content.Context;
import android.database.Cursor;
......@@ -6,10 +6,10 @@ import android.net.Uri;
import android.provider.MediaStore;
import android.support.annotation.Nullable;
import org.horaapps.leafpic.data.Album;
import org.horaapps.leafpic.data.CustomAlbumsHelper;
import org.horaapps.leafpic.data.Media;
import org.horaapps.leafpic.data.base.ImageFileFilter;
import org.horaapps.leafpic.model.Album;
import org.horaapps.leafpic.model.CustomAlbumsHelper;
import org.horaapps.leafpic.model.Media;
import org.horaapps.leafpic.model.base.ImageFileFilter;
import org.horaapps.leafpic.util.ContentHelper;
import org.horaapps.leafpic.util.PreferenceUtil;
import org.horaapps.leafpic.util.StringUtils;
......
package org.horaapps.leafpic.data.providers;
package org.horaapps.leafpic.model.providers;
import android.content.Context;
import org.horaapps.leafpic.data.Album;
import org.horaapps.leafpic.data.CustomAlbumsHelper;
import org.horaapps.leafpic.data.Media;
import org.horaapps.leafpic.data.base.FoldersFileFilter;
import org.horaapps.leafpic.data.base.ImageFileFilter;
import org.horaapps.leafpic.model.Album;
import org.horaapps.leafpic.model.CustomAlbumsHelper;
import org.horaapps.leafpic.model.Media;
import org.horaapps.leafpic.model.base.FoldersFileFilter;
import org.horaapps.leafpic.model.base.ImageFileFilter;
import org.horaapps.leafpic.util.ContentHelper;
import org.horaapps.leafpic.util.PreferenceUtil;
......
......@@ -23,8 +23,8 @@ import com.drew.lang.GeoLocation;
import org.horaapps.leafpic.R;
import org.horaapps.leafpic.activities.base.ThemedActivity;
import org.horaapps.leafpic.data.Media;
import org.horaapps.leafpic.data.base.MediaDetailsMap;
import org.horaapps.leafpic.model.Media;
import org.horaapps.leafpic.model.base.MediaDetailsMap;
import java.lang.reflect.Field;
import java.util.Locale;
......
......@@ -2,7 +2,7 @@ package org.horaapps.leafpic.util;
import com.bumptech.glide.signature.StringSignature;
import org.horaapps.leafpic.data.Media;
import org.horaapps.leafpic.model.Media;
/**
* Created by dnld on 21/08/16.
......
......@@ -6,7 +6,7 @@ buildscript {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.1'
classpath 'com.android.tools.build:gradle:2.2.2'
classpath "gradle.plugin.com.gladed.gradle.androidgitversion:gradle-android-git-version:0.2.2"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment