0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 12:02:16 +02:00
Commit Graph

106 Commits

Author SHA1 Message Date
Mike Hardy
6e857716c2 Migrate to beta test APIs from alpha 2018-10-06 08:38:41 +09:00
Mike Hardy
e0b45d7a3b Fix coverage on JDK>=9
Remove config options that are actually defaults, simplifies the config
at the same time that it works correctly with higher JDKs, win/win
2018-10-05 15:21:33 +09:00
Mike Hardy
4262abae71 Update requery/sqlite deps
Should have been able to remove the ABI filter but requery packaging had a problem:
https://github.com/requery/sqlite-android/issues/78
2018-10-03 14:17:47 -05:00
Mike Hardy
c25f86027c Refactor->Migrate to AndroidX 2018-09-27 22:57:34 +09:00
Mike Hardy
1cd3c3b64d Dependency updates, and UI test works on API28 2018-09-27 22:57:34 +09:00
Mike Hardy
b804991cbc Add Robolectric test that opens each Activity 2018-09-20 23:12:05 +09:00
Mike Hardy
db681c36fc Use new 27.1.1 support libraries 2018-09-17 11:07:25 +09:00
Mike Hardy
a0218814da Bump junit point release 5.3.0 -> 5.3.1 2018-09-14 13:31:28 -05:00
Mike Hardy
7e2ad05f7e Use ACRA limiter to prevent sending duplicate crash reports (#4954)
Fixes #4949
2018-09-14 14:57:58 +09:00
Mike Hardy
6759201a13 Increase ADB timeouts (helps slow ARM emulators) 2018-09-14 12:32:28 +09:00
Mike Hardy
bcd5451e19 Shrink APK by removing armeabi/mips from requery 2018-09-14 12:32:28 +09:00
Mike Hardy
4652fc2cf8
Isolate support dependencies from test 2018-09-13 00:13:30 -05:00
Mike Hardy
2e98bb0606 Revert support libs to 27.0.x, Fixes #4938 2018-09-11 05:26:57 +09:00
Mike Hardy
03266e8246 Use MaterialDialogs 0.9.6.0 w/req'd refactor 2018-09-10 08:57:05 +09:00
Mike Hardy
0496c58748 Update ACRA to 5.2.0, starts API28 work (#4910) 2018-09-09 17:17:26 +09:00
Mike Hardy
943d70bf51 Remove deprecated jacoco config, use default 2018-09-08 16:43:06 +09:00
Mike Hardy
42a8d912bc Bump junit-vintage-engine to 5.3.0 (dependabot) 2018-09-08 16:43:06 +09:00
Mike Hardy
55a2253206 Use event logic only, target API26, Fixes #4883 2018-09-08 15:21:57 +09:00
Mike Hardy
7acc79e14e Coverage reports / Codacy integration (#4919)
* Add jacoco dependency, bump gradle plugin dependency
* Implement integrated coverage report for debug builds
* Report coverage in Travis, aggregate all API reports in Codacy

Fixes #4914
Fixes #3056
Fixes #4588
Fixes #2254
2018-09-03 17:02:27 +09:00
Mike Hardy
addaac9466 Upgrade to requery 3.24.0 w/extra dependency req'd for compile (#4920) 2018-08-29 20:48:03 +09:00
Mike Hardy
127f599c68 ACRA upgrade to 5.1.3 (#4893) 2018-08-29 00:21:35 +09:00
Mike Hardy
f04cef4bc5 Update dependencies that required no code changes (#4912)
Note the beta android gradle plugin is needed in combo with gradle 4.9,
but it should not have any change on compilation artifacts until D8 is enabled
2018-08-18 10:00:58 +09:00
Mike Hardy
d1c09fe767 Upgrade instrumented tests to Junit4 / Fix permission errors
- Upgrade JUnit3+AndroidTestCase to JUnit4 + Annotations
- Add ATSL (Android Test Support Library, new from google)
- Fix test permission errors w/@GrantPermissionRule from ATSL! API 24 works!
  - https://developer.android.com/reference/android/support/test/rule/GrantPermissionRule
- Run tests with orchestrator to run connected tests; crash+state isolation
- Added a "RetryRule" to re-run a flaky test and used it on MediaImporter, works 2000 times and fails 1...
2018-07-02 07:12:02 +09:00
Mike Hardy
ebd16feb11 Upgrade Timber logging dependency, refactor to new Timber API 2018-06-18 08:39:37 +09:00
Mike Hardy
2434d3e346 Upgrade test dependencies and migrate tests to new APIs
- Junit 4 -> Junit 5 using Vintage Engine
    - Mockito -> 1.10.x -> 2.18.x
    - Powermock 1.6.x -> Powermock 2.0.x
2018-06-14 08:15:42 +09:00
Mike Hardy
76b18e06ef Upgrade gradle and gradle plugin, w/migrations, travis speedups (#4851)
- fix api gradle deprecation, add warn comment in gradle wrapper
- buildtools 27.0.3 needs to be added w/license accepted
- install SDK API 16 to match emulator API 16, remove extra tools
- tools components entry twice per Travis docs
- only including build-tools 26.0.2 as it is default per my read
- only including one android API for the build
- removing non-existent extra-android-support
- changing from API-22 emulator to API-16 per performance documentation on web
- removing "no-skin" emulator argument as it is not supported
- upgrade to gradle 4.5.1 / gradle plugin 3.1.2
- alter gradle dependencies to modern fine-grained declarations
- move api build targetSdk to match main build targetSdk
2018-05-19 11:55:10 +09:00
Mike Hardy
11b3028388 Move minSdkVersion to 15 2018-05-09 11:00:03 +09:00
Mike Hardy
1e760bc633 Decrease targetSdkVersion to pre-26 / 8.0, avoids background limits (#4795) 2018-03-08 17:39:12 +09:00
Mike Hardy
15153b5efc Updating versions for buildtools and gson dependency (#4792) 2018-03-08 17:38:32 +09:00
Timothy Rae
59f46fe5ae Remove the adb install hack
This was for Travis but I don't think it ever worked
2017-12-15 13:51:05 +09:00
Timothy Rae
3e78697111 Update compileSdkVersion and libraries to 26
Also updated to gradle 4
2017-12-15 13:51:05 +09:00
Timothy Rae
8bf61267f0 Bump minimum sdk to 14 (Android 4.0) 2017-11-10 22:24:10 +09:00
Wojciech Śmigaj
3947a5151e #1463 Recognize TTS elements in questions and answers. (#4677)
If the question or answer contains any <tts> elements with the 'service'
attribute set to 'android', then only the text enclosed in these elements
is read aloud using the text-to-speech engine. The 'voice' attribute can
be used to specify the language of the text (details below). If no
<tts service='android'> elements are present in the question or answer,
the user is asked to select the language from a list (as before). <tts>
elements with other values of the 'service' attribute are ignored, which
makes it possible to use the same card format with AnkiDroid and with
the AwesomeTTS add-on to the desktop Anki application (each ignoring
unrecognised services).

'voice' attributes should be given in the format used by the
Locale.toString() function, i.e.

language_code + "_" + country_code [+ "_" + variant_code]

(the second underscore and the variant are optional and typically
unnecessary). Typical examples: en_US, en_GB, fr_FR.

Full example:

<tts service="android" voice="de_DE">{{Back}}</tts> (pl. {{Plural}})

Here only the contents of the 'Back' field are read aloud (in German); the
contents of the 'Plural' field are only displayed, not read.
2017-11-09 13:01:35 +09:00
Timothy Rae
5d15fd17b7 Write the play release channel explicitly 2017-01-05 08:05:18 +09:00
Houssam Salem
e6b63daaa5 Update support libraries 2017-01-05 07:45:49 +09:00
Tim Rae
c4c6af20af Bumped version to
@branch-specific
2016-12-13 20:43:22 +09:00
Tim Rae
97b205bbe5 Merge pull request #4483 from hssm/sqlite-support
Use SQLite support library
2016-11-02 09:48:12 +09:00
Houssam Salem
f3ead441a2 Use SQLite support library 2016-11-02 01:08:36 +11:00
Dmitry Timofeev
60365c9232 Fix PieChart diagram:
* Fix sectors drawing when there are zero values
   * Make clients responsible for providing a color legend
   * Tabs > Spaces in the whole file
   * Add missing @Override
   * Add local unit tests
2016-10-23 14:34:17 +03:00
Houssam Salem
a55a8a38b1 Update build tools and support libraries 2016-10-21 16:33:17 +11:00
Houssam Salem
eee8b4afd0 Update build tools and support libraries 2016-07-28 13:39:02 +10:00
Houssam Salem
7da2be7878 Update support libs and SDK versions 2016-06-27 14:55:48 +10:00
Houssam Salem
c76b539981 Roll back support libs
Might fix the FAB repositioning issue.
2016-05-27 17:48:14 +10:00
Houssam Salem
c68a9f335e Update support libraries 2016-05-18 14:25:19 +10:00
timrae
18d43995d9 Allow unit tests to work on SDK23 from command line 2016-04-22 00:06:51 +09:00
Houssam Salem
bec7f5c784 Update support libraries 2016-04-11 16:43:47 +10:00
Houssam Salem
e27e627de7 Disable pre-dexing on Travis 2016-03-12 09:45:45 +11:00
Houssam Salem
aa043c2bee Support library updates 2016-03-11 15:14:30 +11:00
Houssam Salem
f8f3ab6ec2 Update to newer support libraries and build tools 2016-02-28 22:42:54 +11:00
Timothy Rae
c2c44ba429 Remove material drawer depenency 2015-12-19 17:59:27 +09:00