1955 Commits

Author SHA1 Message Date
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
Vansh Badkul
a7d6f08fa5 Fixed Screen rotation user input deletes
Screen Rotation fix using bundle

Screen Rotation fix using bundle update

Screen Rotation fix using bundle update

Screen Rotation fix using bundle update 3

Indentation Update to ScreenRotation Issue
2018-03-11 00:30:31 +00:00
RohanBh
0876071a36 Fix #567 2018-03-11 00:17:17 +00:00
RohanBh
6d6dbf8d86 Fix #345 2018-03-08 00:35:30 +00:00
Harshvardhan Takawale
1977294bdb Italicized text
Italicized problem fixed
2018-03-08 00:00:31 +00:00
Ashutosh Sathe
a470756e8f Style night mode dialogs correctly 2018-03-07 00:54:47 +00:00
RohanBh
f61d072548 Add inject() call to inject sharedPreferenceUtil in AutoCompleteAdapter class 2018-03-07 00:41:37 +00:00
RohanBh
d44fbae0c7 Fix crash 2018-03-07 00:41:37 +00:00
Ashutosh Sathe
286b0e2159 Remove GPL3 header from manifest 2018-03-06 15:09:04 +01:00
Ashutosh Sathe
79808773d1 Rearrange header for AndroidManifest
Signed-off-by: Ashutosh Sathe <2ashutoshbs@gmail.com>
2018-03-06 15:09:04 +01:00
Ashutosh Sathe
33c9bc8911 Rearrange header for AndroidManifest
Signed-off-by: Ashutosh Sathe <2ashutoshbs@gmail.com>
2018-03-06 15:09:04 +01:00
Ashutosh Sathe
f24c7ed5af Add GPL3 header to AndroidManifest
Signed-off-by: Ashutosh Sathe <2ashutoshbs@gmail.com>
2018-03-06 15:09:04 +01:00
Ashutosh Sathe
d375bfb42d Add GPL3 header to java files
Signed-off-by: Ashutosh Sathe <2ashutoshbs@gmail.com>
2018-03-06 15:09:04 +01:00
Abdul Wadood
c55f4bebf2 Replace PNGs with vector images, remove unused images and refactor code. 2018-03-06 01:40:24 +00:00
Abdul Wadood
706466d421 Migrate from RxJava 1.x to RxJava 2.x 2018-03-06 01:32:35 +00:00
Brijesh Shah
b14d589308 Refactor: Extract dimensions of resources (#534) 2018-03-06 01:24:34 +00:00
Abishek
5550275b3f Fix code styling issue in KiwixTextToSpeech 2018-03-06 01:10:55 +00:00
Abishek
fcadd2fd41 Fix code styling issues 2018-03-06 01:10:55 +00:00
Abishek
0359bb5ad5 Remove unnecessary changes 2018-03-06 01:10:55 +00:00
Abishek
7a20b82512 Pause/Resume other music when read aloud is enabled 2018-03-06 01:10:55 +00:00
Brijesh Shah
0619ba5408 Fix: App minimizing on back pressed in fullscreen mode 2018-03-06 00:59:37 +00:00
srv-twry
cf4187f4b7 Fix: 2 space indentation in SharedPreferenceUtil 2018-03-05 01:53:58 +00:00
srv-twry
92c1d7793e Fix: Indentation in SharedPreferenceUtil 2018-03-05 01:53:58 +00:00
srv-twry
6646b319c9 Refactor: Unify SharedPreferences using SharedPreferences Manager 2018-03-05 01:53:58 +00:00
Harshvardhan Takawale
f4243a58f7 Language name overlap resolved 2018-03-05 01:25:18 +00:00
Vansh Badkul
9b1a2cccc3 Update Action bar gets cut off resolved #520 2018-03-03 00:23:32 +00:00
Vansh Badkul
e8f99a323b Update to Action bar gets cut off resolved #520 2018-03-03 00:23:32 +00:00
Vansh Badkul
66b8a2fd5e Action bar gets cut off resolved #520 2018-03-03 00:23:32 +00:00
Isaac Hutt
3ac9f21b6e
Update ISSUE_TEMPLATE.md 2018-03-02 23:41:13 +00:00
Brijesh Shah
90ba3a6bdf Refactor: Explicitly include codestyle for XML files 2018-03-02 00:58:07 +00:00
RajaVamsi11
a8d5f5cfc4 Add ripple effect to get content button 2018-03-02 00:45:05 +00:00