1624 Commits

Author SHA1 Message Date
Julian Harty
e28a04542f Added two build variants to help us control the scope of our testing of
network operations. This is the initial skeleton that proves the
approach can work. Future work will enable us to control whether to
fully mock network operatins, have a local download server, or use the
public kiwix download server.
2017-08-17 16:51:56 -04:00
Isaac Hutt
aced181a3e Update and rename README to README.md 2017-08-17 09:15:51 -04:00
mhutti1
956272811e Some work on Download Service 2017-08-16 13:12:21 -04:00
Julian Harty
8629e78511 Fixed a hard to find quirk where the tests ran on devices that don't
have a hardware menu key, but failed on those that did. Espresso
contains two similar calls to launch the menu. Either are OK on devices
that don't have a menu key (the vast majority of devices) so this bug
was latent until I tested on a wider mix of devices.

See
https://developer.android.com/training/testing/espresso/recipes.html#matching-view-inside-action-bar
and keep reading until you reach the example for "contextual action
bar".

See also https://github.com/kiwix/kiwix-android/issues/213 for the
historical context where this problem was initially exposed. It took
working with Isaac in person for us to discover the cause.
2017-08-15 16:48:08 -04:00
mhutti1
45d9e2a730 Default and remove preference for fulltext search 2017-08-15 11:54:49 -04:00
Julian Harty
b9c009a2e0 We now inject the network state so that the rest of the test is able to
run. See https://github.com/kiwix/kiwix-android/issues/227 for more
detail.
2017-08-15 11:00:04 -04:00
Kelson
58ebdce8ab Merge pull request #231 from kiwix/2.3_changelog
Changelog 2.3 update
2017-08-13 14:05:17 -04:00
Isaac Hutt
e7ca257305 Update CHANGELOG 2017-08-13 12:01:20 -04:00
Kelson
e8ee618257 Changelog 2.3 update 2017-08-13 17:54:21 +02:00
Isaac Hutt
7eeeb983c2 Merge pull request #230 from kiwix/mhutti1/crashfixes
Set vanilla version code/name from properties if possible
2017-08-12 16:44:01 -04:00
mhutti1
290f62f54e Set vanilla version code/name from properties if possible 2017-08-12 16:32:49 -04:00
Isaac Hutt
19f39ac069 Merge pull request #229 from kiwix/mhutti1/crashfixes
Download service is correctly restared on crash
2017-08-12 16:13:46 -04:00
mhutti1
a4e13b591b Download service is correctly restared on crash 2017-08-12 16:00:48 -04:00
Isaac Hutt
8a3fa8153a Merge pull request #228 from kiwix/bottombar
Added bottombar as optional feature #165
2017-08-10 11:00:38 -04:00
Isaac Hutt
3f1bb11876 Merge branch 'master' into bottombar 2017-08-10 10:16:27 -04:00
mhutti1
de7445f75c Add bottombar to settings menu 2017-08-10 09:57:39 -04:00
mhutti1
709aa86d16 Hide bottombar in fullscreen 2017-08-09 19:24:18 -04:00
mhutti1
9d8a8dc404 Bottom bar scrolls out of view when in scroll mode 2017-08-09 15:21:00 -04:00
Kelson
e9c75f1ca7 Merge pull request #225 from kiwix/ui_translation
Ui translation
2017-08-09 18:37:12 +02:00
Kelson
5839b68f57 Fix escaping for Android 2017-08-09 18:20:54 +02:00
Kelson
7cba0eace8 Update UI string translations 2017-08-09 18:20:54 +02:00
Kelson
965e4317af Merge pull request #224 from kiwix/rm_gen_custom_app_icon
Move gen-std-icon.py to kiwix-android-custom git repo
2017-08-09 17:58:59 +02:00
Kelson
9f3be72717 Move gen-std-icon.py to kiwix-android-custom git repo 2017-08-09 17:35:13 +02:00
mhutti1
078998a9b5 Update tests for new JNI 2017-08-02 20:38:07 +01:00
mhutti1
91972ef941 Bump kiwixlib version 2017-08-02 20:38:07 +01:00
mhutti1
552c3eda49 Fix custom app downloads for some mirrors 2017-08-02 20:38:07 +01:00
mhutti1
ec0ef0509a Only copy embedded content to built architectures 2017-08-02 20:38:07 +01:00
mhutti1
1ba530d2cb Update JNI schema 2017-08-02 20:38:07 +01:00
mhutti1
958d217a27 Download kiwixlib from jcenter 2017-08-02 20:38:07 +01:00
Kelson
b442edb5b7 Merge pull request #221 from kiwix/hide_wifi_only_pref
Remove option 'Download content only via Wifi' for custom apps #220
2017-08-02 21:08:00 +02:00
mhutti1
738d653e28 Remove option 'Download content only via Wifi' for custom apps #220 2017-08-02 19:43:42 +01:00
Kelson
0651037ceb Remove option 'Download content only via Wifi' for custom apps #220 2017-08-02 20:00:08 +02:00
mhutti1
e6dcc9c21d Bump android-storage-devices 2017-08-01 22:57:26 +01:00
Kelson
e355fbbde5 Merge pull request #210 from kiwix/mhutti1/credits
Move credits to assets
2017-07-19 06:49:38 +02:00
mhutti1
e56ee29cd0 Moved res/raw to assets 2017-07-18 19:59:07 +01:00
Matthieu Gautier
4782cb3172 Don't assume about icu data filename.
Instead of directly copying "icudt.dat" file, copy all file in "icu"
assets directory.

The icu data filename must include the version of icu lib.
But we don't want android code to be dependent of the icu lib version.
So let's copy all files in the icu directory.

Fixes #201.
2017-07-18 18:07:12 +01:00
mhutti1
1c97991b47 Use fixed url for example download 2017-07-18 00:19:54 +01:00
mhutti1
9a184f0e43 Change customexample mirror location 2017-07-18 00:19:54 +01:00
mhutti1
70d402e0ac Remove custom directory 2017-07-18 00:19:54 +01:00
mhutti1
eb57d25c7e Switch custom test zim file 2017-07-18 00:19:54 +01:00
mhutti1
d1829f6194 Fix custom version numbers 2017-07-17 20:32:34 +01:00
Matthieu Gautier
e510b4bef2 Force ZIM_FILE_SIZE literal to be a long.
By default, literal numbers are `int`. If the size of a zim doesn't fit in
a `int`, java will complains.

By appending a `L` at the end of the literal number, java will interpret
it as a `long` and will accept it.
2017-07-17 18:32:17 +01:00
mhutti1
06a41daae4 Removed captures directory #167 2017-07-16 21:00:37 +01:00
kelson42
9594dd4c48 Kiwix should be written with K in uppercase 2017-07-12 06:44:58 +02:00
mhutti1
fe6aceb667 Remove whitespace from table of contents #189 2017-07-10 22:33:41 +01:00
mhutti1
63dda78e61 Flush prints to stop travis timeout 2017-07-03 21:55:21 +01:00
mhutti1
7ecf4203bf Fixed string lint error 2017-07-03 21:27:59 +01:00
mhutti1
46989c0dd5 Readded JNI file 2017-07-01 22:45:54 +01:00
Lukas Renggli
22232e378c Remove unused code 2017-07-01 22:45:54 +01:00
mhutti1
11d4e8cfdb Readded JNI imports 2017-07-01 22:45:21 +01:00