1935 Commits

Author SHA1 Message Date
Abdul Wadood
f44b949b86 Add app shortcuts 2018-06-05 23:04:01 +01:00
siddharth2010
4ff6bc60f1 Fix Codestyle: Add spaces after commas 2018-06-04 19:19:12 +01:00
siddharth2010
5759207fbe delete StyleUtilsTest
StyleUtilsTest does not have any internal logic to be tested and so unit tests for it are not needed
2018-06-04 19:19:12 +01:00
siddharth2010
8bbb8bf7a4 Add TODOs for StyleUtilsTest 2018-06-04 19:19:12 +01:00
siddharth2010
dea45194e9 Add BookUtilsTest 2018-06-04 19:19:12 +01:00
siddharth2010
a2ee79da52 add test for utils/DimenUtils 2018-06-04 19:19:12 +01:00
siddharth2010
995d69297d add test for utils/NetworkUtils 2018-06-04 19:19:12 +01:00
siddharth2010
97958665bd add test for zim_manager/library_view/LibraryUtils 2018-06-04 19:19:12 +01:00
Abdul Wadood
05ca65f525 Add BaseContract 2018-05-30 23:24:11 +01:00
Abdul Wadood
0691ac5e5b Move SplashActivity to splash package 2018-05-30 23:24:11 +01:00
Abdul Wadood
2bd4b8988a Rename KiwixErrorActivity to ErrorActivity and move it to error package 2018-05-30 23:24:11 +01:00
Abdul Wadood
974ec85da9 Move ZimContentProvider to data package 2018-05-30 23:24:11 +01:00
Abdul Wadood
0a45040747 Remove views package.
Move classes to their respective package.
2018-05-30 23:24:11 +01:00
Abdul Wadood
d052b0bfd6 Rename bookmarks_view package to bookmark 2018-05-30 23:24:11 +01:00
Abdul Wadood
18f06d8f27 Make local and remote data sources 2018-05-30 23:24:11 +01:00
Abdul Wadood
9845985099 Rename KiwixMobileActivity to MainActivity and move it to main package 2018-05-30 23:24:11 +01:00
mhutti1
ac59840bcd Remove stack exchange zim files from remote library 2018-05-20 14:55:50 +01:00
Brijesh Shah
51d241bfc4 Fix: App directly minimizes on back pressed in Find in page (#673) 2018-04-28 00:06:57 +01:00
Arpan Konar
0585c4f68f Fixed stopped download restart on restarting app and line continuations spacing (#450) 2018-04-21 02:02:15 +01:00
Abdul Wadood
d7fae9b66b Add dependency injection in KiwixErrorActivity 2018-04-21 01:46:45 +01:00
Julian Harty
00c10762a3 A minor fix that was uncovered by running our automated tests on devices
without an internet connection (but WiFi had networks available).

I mimiced the behaviour of the lines earlier in the method. It might be
worth revising the code soon as it's not entirely accurate these days.

https://github.com/kiwix/kiwix-android/issues/722
2018-04-21 01:43:09 +01:00
Hemant Joshi
0b3887e4bd Unregister Receiver (#652)
* Fixed: Unregister Receiver

* Fix: Added unregisterReceiver in LibraryFragment
2018-04-21 01:40:25 +01:00
Rohan Bhatia
2365c389f6 Added ongoing downloads notification channel (#713) 2018-04-19 02:43:15 +01:00
mhutti1
936e03167c Update error page with dagger 2018-04-19 02:28:25 +01:00
Abdul Wadood
cc6a8ff1a7 Fix memory leak in KiwixWebView 2018-04-19 02:28:25 +01:00
Abdul Wadood
c86ebae157 Fix memory leak in KiwixDatabase 2018-04-19 02:28:25 +01:00
mhutti1
9780075817 Disable multizim search for 2.4 2018-04-19 01:55:13 +01:00
Joe Reeve
938c06dfbd Added a global crash handler with report functionality (#351)
* Initial Integration

* Moved to email rather than crashlytics

* Minor modifications

* Updated crash handler target email address

* Removed hard-coded crash from testing

* Fixed app/build.graddle issues

* Fixed build and dependency issues

* Removed testing error

* chore: Use api level 14 compatible style themes for button

* fix: Fix FileUriExposedException using FileProvider

* Fixed build

* Fixed formatting

* Fixed AndroidManifest formatting
2018-04-19 01:20:04 +01:00
Brijesh Shah
a9ae13ab75 Improve: Update Gradle version (#689) 2018-04-17 00:31:22 +01:00
Julian Harty
fb5949f07d Added support to use http to download content on Android 4.x
This is to workaround these devices having older security certificates.

See https://github.com/kiwix/kiwix-android/issues/510 for details.
Notes:
- We could remove the logging once we're happy with the fix.
- We could use something like replaceFirst(...) instead of the way I've
implemented the string editing.

https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#replaceFirst(java.lang.String,%20java.lang.String)
2018-04-17 00:22:52 +01:00
Julian Harty
daa2240d55 Basic tweak to show the text Get Content button in landscape mode.
I expect we can improve the layout and presentation with some more work,
this is a simple adaptation that reduces the size of the Kiwix image so
it doesn't fill the screen.
See #693 for more info.
2018-04-17 00:22:52 +01:00
Joe Reeve
e13f1fd4c6 Updates and additional Espresso Tests (#705)
This contains various revisions aimed at improving the automated tests for the Kiwix app. 
It's joint work between @ISNIT0 and me (Julian Harty). 

The main improvements are using Barista rather than plain Espresso tests.

Minor additions are: 

* Added tests to ensure various activities start OK. These may be extended to enable us to test in additional languages and locales and confirm the activities have the resources they need.

* Added code to cope with the Android Permission prompts at runtime. This enables the tests to run more reliably on devices rather than relying on a person to grant the permission or for the DownloadTest to have run (as it asked for permission in the code using the same
technique used here).

See https://github.com/kiwix/kiwix-android/issues/246 for more info.

Here's a summary of the other tweaks:

* Modified DownloadTest to be more stable and moved some logic into TestUtils

* Fixed Java Warning

* Updated getCurrentActivity

* Slow progress on tests

* Using Barista to help with testing

* Updated idle timeout

* updated menu clicker

* Various new and improved tests

* Added erroneously removed comments

* removed unnecessary util

* Changed download/network test timeout from 350 to 180

* Removed extraneous imports

* tweak ContentTest

* Fixed ContentTest

* Changed import from espresso internal to guava

* Formatting improvements in TestUtils

* Updated screenshot method

* Ammended testdroid.py

* Updated TestUtils and DownloadTest

* Added documentation

* Updated sleeps and added more documentation

* Fixed DownloadTest

* Renamed simple tests

* Improved DownloadTest

* Minor tweaks to PR

* Removed .vscode
2018-04-16 20:06:45 +01:00
RohanBh
96704debdf Fix content header displayed bug 2018-04-11 17:54:42 +02:00
Abdul Wadood
300b3818a0 Update to Dagger 2.15 2018-04-07 23:27:33 +01:00
mhutti1
fba4adf0f1 Add leak canary stub as a dependency for all builds by default 2018-04-02 00:10:11 +01:00
Rashiq
59f0b7f732 Update code style
We're actually using square's style guide. Google's collapses annotations.
2018-04-01 23:59:33 +01:00
mhutti1
178807327f Add wait to download test as a quick test fix 2018-04-01 22:44:38 +01:00
Abdul Wadood
1e03a4ae72 Update the Android plugin for Gradle. (#677)
Add Android SDK components in .travis.yml
2018-04-01 19:23:45 +01:00
Saurav Tiwary
ebac71aeed Add Leakcanary to the project (#655) 2018-03-23 17:34:56 +01:00
Veeki Yadav
c7abb86eae Properly styles night mode credits dialog (#624)
* Properly styles night mode credits dialog
2018-03-20 20:52:28 +01:00
Siddharth Sharma
61e3b83abe Fix typo in Readme
Fix typo in Readme
2018-03-13 00:59:22 +00:00
Aditya-Sood
f9947af81b Fix erroneous forwarding of navigation history 2018-03-13 00:58:58 +00:00
Harshvardhan Takawale
b177362775 Espresso tests for settings 2018-03-13 00:38:05 +00:00
Veeki Yadav
c4313f540d Unify common code in BookDao (#587) 2018-03-13 00:28:25 +00:00
srv-twry
5b8393ef73 Fix: NullPointerException on opening Bookmarks 2018-03-11 01:25:14 +00:00
Akshay Nandwana
1936dfd161 Update readme (#589) 2018-03-11 01:12:54 +00:00
Siddharth Sharma
8ee14c04be Welcome image in night mode (#605) 2018-03-11 01:10:42 +00:00
Harshvardhan Takawale
1254101869 isFirstRun boolean applied 2018-03-11 00:59:49 +00:00
Sakchham Sharma
34aee2eb99 Add find in page button to ZIM search (#571) 2018-03-11 00:51:00 +00:00
Vansh Badkul
9c8ad891c5 Screen Rotation deletes the user input in the search bar 2018-03-11 00:30:31 +00:00