()
| 148 | )); |
| 149 | |
| 150 | public static String getSqliteVersion() { |
| 151 | try (SQLiteDatabase db = SQLiteDatabase.create(null)) { |
| 152 | try (Cursor cursor = db.rawQuery( |
| 153 | "SELECT sqlite_version() AS sqlite_version", null)) { |
| 154 | if (cursor.moveToNext()) |
| 155 | return cursor.getString(0); |
| 156 | } |
| 157 | } catch (Throwable ex) { |
| 158 | Log.e(ex); |
| 159 | } |
| 160 | return null; |
| 161 | } |
| 162 | |
| 163 | public static boolean hasJson() { |
| 164 | return hasJson; |
no test coverage detected