From a67adf20583055bb3ad6ff057bfeb518cd274daf Mon Sep 17 00:00:00 2001 From: Ezerous Date: Sun, 12 Mar 2017 12:20:33 +0200 Subject: [PATCH] Timber init (Report class was removed), library updates --- app/build.gradle | 11 ++- app/src/debug/java/mthmmy/utils/Report.java | 81 ---------------- app/src/main/assets/apache_libraries.html | 4 +- app/src/main/assets/mit_libraries.html | 2 +- .../mthmmy/activities/LoginActivity.java | 9 +- .../activities/board/BoardActivity.java | 20 +--- .../mthmmy/activities/board/BoardAdapter.java | 1 - .../downloads/DownloadsActivity.java | 18 +--- .../downloads/DownloadsAdapter.java | 5 - .../mthmmy/activities/main/MainActivity.java | 1 - .../activities/main/forum/ForumFragment.java | 14 +-- .../main/recent/RecentFragment.java | 14 +-- .../activities/profile/ProfileActivity.java | 29 ++---- .../latestPosts/LatestPostsAdapter.java | 5 - .../latestPosts/LatestPostsFragment.java | 25 ++--- .../profile/stats/StatsFragment.java | 27 ++---- .../profile/summary/SummaryFragment.java | 25 ++--- .../mthmmy/activities/topic/ReplyParser.java | 6 -- .../activities/topic/TopicActivity.java | 31 +++--- .../mthmmy/activities/topic/TopicAdapter.java | 11 +-- .../mthmmy/activities/topic/TopicParser.java | 13 +-- .../gr/thmmy/mthmmy/base/BaseApplication.java | 9 ++ .../gr/thmmy/mthmmy/base/BaseFragment.java | 12 +-- .../java/gr/thmmy/mthmmy/model/ThmmyPage.java | 4 +- .../gr/thmmy/mthmmy/receiver/Receiver.java | 6 +- .../mthmmy/services/DownloadService.java | 25 ++--- .../thmmy/mthmmy/session/SessionManager.java | 43 ++++----- .../mthmmy/utils/CrashReportingTree.java | 34 +++++++ app/src/release/java/mthmmy.utils/Report.java | 96 ------------------- build.gradle | 2 +- gradle/wrapper/gradle-wrapper.properties | 4 +- 31 files changed, 176 insertions(+), 411 deletions(-) delete mode 100644 app/src/debug/java/mthmmy/utils/Report.java create mode 100644 app/src/main/java/gr/thmmy/mthmmy/utils/CrashReportingTree.java delete mode 100644 app/src/release/java/mthmmy.utils/Report.java diff --git a/app/build.gradle b/app/build.gradle index 2469aa31..522c3627 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 25 - buildToolsVersion "25.0.1" + buildToolsVersion "25.0.2" defaultConfig { vectorDrawables.useSupportLibrary = true @@ -33,20 +33,21 @@ dependencies { compile 'com.android.support:support-v4:25.2.0' compile 'com.android.support:cardview-v7:25.2.0' compile 'com.android.support:recyclerview-v7:25.2.0' - compile 'com.google.firebase:firebase-crash:10.0.1' - compile 'com.squareup.okhttp3:okhttp:3.5.0' + compile 'com.google.firebase:firebase-crash:10.2.0' + compile 'com.squareup.okhttp3:okhttp:3.6.0' compile 'com.squareup.picasso:picasso:2.5.2' compile 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.1.0' compile 'org.jsoup:jsoup:1.10.2' compile 'com.github.franmontiel:PersistentCookieJar:v1.0.0' compile 'com.github.PhilJay:MPAndroidChart:v3.0.1' - compile('com.mikepenz:materialdrawer:5.8.1@aar') { + compile('com.mikepenz:materialdrawer:5.8.2@aar') { transitive = true } compile 'com.mikepenz:fontawesome-typeface:4.7.0.0@aar' - compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.3' + compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.5' compile 'com.bignerdranch.android:expandablerecyclerview:3.0.0-RC1' compile 'me.zhanghai.android.materialprogressbar:library:1.3.0' + compile 'com.jakewharton.timber:timber:4.5.1' } apply plugin: 'com.google.gms.google-services' diff --git a/app/src/debug/java/mthmmy/utils/Report.java b/app/src/debug/java/mthmmy/utils/Report.java deleted file mode 100644 index 6e6a906f..00000000 --- a/app/src/debug/java/mthmmy/utils/Report.java +++ /dev/null @@ -1,81 +0,0 @@ -package mthmmy.utils; - -import android.util.Log; - -public class Report -{ - - public static void v (String TAG, String message) - { - Log.v(TAG,message); - } - - public static void v (String TAG, String message, Throwable tr) - { - Log.v(TAG,message + ": " + tr.getMessage(),tr); - } - - public static void d (String TAG, String message) - { - Log.d(TAG,message); - } - - public static void d (String TAG, String message, Throwable tr) - { - Log.d(TAG,message + ": " + tr.getMessage(),tr); - } - - public static void i (String TAG, String message) - { - Log.i(TAG,message); - } - - public static void i (String TAG, String message, Throwable tr) - { - Log.i(TAG,message + ": " + tr.getMessage(),tr); - } - - public static void w (String TAG, String message) - { - Log.w(TAG,message); - } - - public static void w (String TAG, String message, Throwable tr) - { - Log.w(TAG,message + ": " + tr.getMessage(),tr); - } - - public static void e (String TAG, String message) - { - Log.e(TAG,message); - } - - public static void e (String TAG, String message, Throwable tr) - { - Log.e(TAG,message + ": " + tr.getMessage(),tr); - } - - public static void wtf (String TAG, String message) - { - Log.wtf(TAG,message); - } - - public static void wtf (String TAG, String message, Throwable tr) - { - Log.wtf(TAG,message + ": " + tr.getMessage(),tr); - } - - /** - * Prints long messages in logcat (debug level). - */ - public static void longMessage(String TAG, String message) - { - int maxLogSize = 1000; - for(int i = 0; i <= message.length() / maxLogSize; i++) { - int start = i * maxLogSize; - int end = (i+1) * maxLogSize; - end = end > message.length() ? message.length() : end; - Report.d(TAG, message.substring(start, end)); - } - } -} \ No newline at end of file diff --git a/app/src/main/assets/apache_libraries.html b/app/src/main/assets/apache_libraries.html index 10867db3..2c0ceabc 100644 --- a/app/src/main/assets/apache_libraries.html +++ b/app/src/main/assets/apache_libraries.html @@ -39,7 +39,7 @@