diff --git a/README.md b/README.md index b6f92dc5e1..e76df68c49 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,18 @@ Open Source Projects Used Changelog --------- +**version 2.5.1** (released 2/17/2014) +- minor fixes + +**version 2.5.0** (released 2/10/2014) +- fixes for indonesian +- fix sdcard issue on 4.3+ +- various bugfixes and improvements + +**version 2.4.9** (released 12/21/2013) +- fix galaxy note 8 black bar issue +- various bugfixes and improvements + **version 2.4.8** (released 11/3/2013) - fix numerous crashes related to search - fix many various other crashes diff --git a/app/build.gradle b/app/build.gradle index f27908e739..b4ddd58c20 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -35,7 +35,12 @@ android { } buildTypes { + debug { + buildConfigField "boolean", "LOG_CRASHES", "false" + } + release { + buildConfigField "boolean", "LOG_CRASHES", "true" runProguard true proguardFile 'proguard.cfg' signingConfig signingConfigs.release diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 5d71f06163..09b0439d0a 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,7 +1,7 @@ diff --git a/app/src/main/java/com/quran/labs/androidquran/data/Constants.java b/app/src/main/java/com/quran/labs/androidquran/data/Constants.java index f066891850..b90fead8fd 100644 --- a/app/src/main/java/com/quran/labs/androidquran/data/Constants.java +++ b/app/src/main/java/com/quran/labs/androidquran/data/Constants.java @@ -1,7 +1,10 @@ package com.quran.labs.androidquran.data; +import com.quran.labs.androidquran.BuildConfig; + public class Constants { - public static final boolean CRASH_REPORTING_ENABLED = false; + public static final boolean CRASH_REPORTING_ENABLED = + BuildConfig.LOG_CRASHES; // Numerics public static final int DEFAULT_NIGHT_MODE_TEXT_BRIGHTNESS = 255; diff --git a/app/src/main/java/com/quran/labs/androidquran/data/QuranDataProvider.java b/app/src/main/java/com/quran/labs/androidquran/data/QuranDataProvider.java index f938e5d125..32675c73fd 100644 --- a/app/src/main/java/com/quran/labs/androidquran/data/QuranDataProvider.java +++ b/app/src/main/java/com/quran/labs/androidquran/data/QuranDataProvider.java @@ -76,6 +76,7 @@ public boolean onCreate() { @Override public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { + Crashlytics.log("uri: " + uri.toString()); switch (sURIMatcher.match(uri)) { case SEARCH_SUGGEST: if (selectionArgs == null) { diff --git a/app/src/main/java/com/quran/labs/androidquran/database/SuraTimingDatabaseHandler.java b/app/src/main/java/com/quran/labs/androidquran/database/SuraTimingDatabaseHandler.java index ed8c97f43e..d0d9066423 100644 --- a/app/src/main/java/com/quran/labs/androidquran/database/SuraTimingDatabaseHandler.java +++ b/app/src/main/java/com/quran/labs/androidquran/database/SuraTimingDatabaseHandler.java @@ -51,7 +51,8 @@ private SuraTimingDatabaseHandler(String path) throws SQLException { } catch (SQLException se) { Crashlytics.log("database at " + path + (new File(path).exists() ? " exists" : " doesn't exist")); - throw se; + Crashlytics.logException(se); + mDatabase = null; } }