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

51 Commits

Author SHA1 Message Date
Mike Hardy
a41a08eb3f Refuse to compile with unsupported JDKs
Fixes #6428
2020-06-10 19:39:05 -05:00
Mike Hardy
81c6e2ef67 Bump gradle plugin to 4.0.0 2020-06-03 16:57:48 +01:00
dependabot-preview[bot]
c8304665cc Bump gradle from 3.6.2 to 3.6.3
Bumps gradle from 3.6.2 to 3.6.3.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-20 10:17:35 -05:00
dependabot-preview[bot]
f059f8b669 Bump gradle from 3.6.1 to 3.6.2
Bumps gradle from 3.6.1 to 3.6.2.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-03 16:18:48 -05:00
Mike Hardy
7ab4833538 Bump Gradle to 3.6.1 to match Android Studio stable release
Note that ContentProviderTest needed a tweak as Manifest class
is no longer generated correctly, we are using the second method
to handle it, as described here:

https://developer.android.com/studio/releases/gradle-plugin#agp-missing-manifest

Also, lint in 3.6 is apparently a little stricter on NewApi checks.
For the CameraException I verified that the camera enumerated fine
on API18 which is below the API19 warning they emitted where things might
crash just from attempting to touch the class
2020-03-02 05:20:40 -06:00
tda1009
7340970c7b Update gradle plugin from 3.5.2 to 3.5.3 2019-12-28 13:50:40 +13:00
Mike Hardy
f5ef33b86a Update gradle to v6, gradle plugin to 3.5.2 2019-11-19 08:50:20 -05:00
Mike Hardy
d83a9dc6d3 Optimize CI w/test split; Verify osx/win work 2019-11-04 00:38:02 -05:00
Mike Hardy
7e1fd5129d bump jacoco version, handle new failure mode
jacoco 0.8.4 -> 0.8.5 started failing fast for all errors, but
it turns out that there were certain configurations (present in
typical android instrumented test situations) where certain failures
(like inability to write /jacoco.exec) had no consequence because actual
output went to a different directory (like /data/data/<package>/**/*.ec)

solution is to package a properties file that instructs the jacoco-agent
used to boot the app to not attempt it's normal output
2019-10-21 22:19:51 -05:00
Piotr Kubowicz
b2f19a0509 Bump Gradle from 5.6.1 to 5.6.3, JaCoCo to 0.8.4
Remove JaCoCo from build script dependencies as there is no use
of it and it was using a different version than JaCoCo used
for test execution.

Also fix some clumsy Gradle usages:
- duplicate keys in gradle.properties
- casting string jacocoVersion property to string
2019-10-18 16:56:10 -05:00
dependabot-preview[bot]
92e88729ba Bump gradle from 3.5.0 to 3.5.1
Bumps gradle from 3.5.0 to 3.5.1.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-09 12:01:51 -05:00
Frieder Bluemle
54a541eb72 Update Android Gradle plugin to 3.5.0 2019-08-29 15:46:25 -05:00
dependabot-preview[bot]
2545d4dc88 Bump gradle from 3.4.1 to 3.4.2
Bumps gradle from 3.4.1 to 3.4.2.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-20 09:42:31 +09:00
dependabot[bot]
066a204798 Bump gradle from 3.4.0 to 3.4.1
Bumps gradle from 3.4.0 to 3.4.1.

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-16 16:31:42 -05:00
dependabot[bot]
8dc4c2e44e Bump org.jacoco.core from 0.8.3 to 0.8.4
Bumps [org.jacoco.core](https://github.com/jacoco/jacoco) from 0.8.3 to 0.8.4.
- [Release notes](https://github.com/jacoco/jacoco/releases)
- [Commits](https://github.com/jacoco/jacoco/compare/v0.8.3...v0.8.4)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-16 16:31:42 -05:00
Mike Hardy
1cfa9ba543 update gradle plugin to 3.4.0 (match AndroidStudio 3.4.0) 2019-04-28 09:20:38 -05:00
Mike Hardy
3f38f204df
20190319 Dependency updates (#5263)
Just a bunch of minor non-noteworthy updates.
No code changes needed to adapt this time.
Dependabot + Travis helping us with the unglamorous chores...
2019-03-21 22:31:58 -05:00
Timothy Rae
c2fa4648d0 Update play publisher plugin 2019-02-18 01:09:17 +09:00
Mike Hardy
621b46b57b Gradle plugin update to 3.3.1 2019-02-15 19:09:05 +09:00
Mike Hardy
8b500b2c2c Upgrade JaCoCo to 0.8.3
Created a variable and used it for the required secondary locations

The project-level version definition is required or jacocoAnt gets the wrong version
The android-block version definition is required or the Jacoco agent is the wrong version
2019-01-28 14:57:37 -05:00
Mike Hardy
2401e1637b Update gradle plugin from 3.2.1 to 3.3.0 2019-01-24 08:00:09 -05:00
Mike Hardy
2524c19b4c Implement standard gradle build/test optimizations
- de-couple api + AnkiDroid by making sure all evaulation may be done separately
- fork and incremental compile
- scale concurrent tests by CPU count, mindful of containerization

All of these are intended to have no impact on CI or small machines
But if you have a lot of cores and RAM and run tests a lot (my case) you feel this

There was one optimization that didn't pan out - setting the heap big enough to
dex in process - but other than this is the full suite of recommended gradle optimizations
2018-11-24 16:19:09 -05:00
Mike Hardy
bb4af60cd9 Upgrade gradle 3.2.0 -> 3.2.1 2018-10-14 14:36:22 -05:00
Mike Hardy
4b5508fcf0 Display all compile problems, error on warnings 2018-10-07 01:48:25 -05:00
Mike Hardy
6e857716c2 Migrate to beta test APIs from alpha 2018-10-06 08:38:41 +09:00
Mike Hardy
1cd3c3b64d Dependency updates, and UI test works on API28 2018-09-27 22:57:34 +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
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
56773418d9 Expose deprecation details, examine+suppress one 2018-06-18 22:01:38 +09:00
Mike Hardy
10fe4a04ec gradle plugin to 3.1.3 to match Android Studio update 2018-06-11 08:37:49 +09:00
Mike Hardy
9a3b9d2795 google() is sufficient for deps, but it should be first 2018-06-11 08:37:49 +09:00
Mike Hardy
a42492795a Safely use HTML 5 for Java10; use google repos first (#4862) 2018-06-08 12:42:25 +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
Timothy Rae
3e78697111 Update compileSdkVersion and libraries to 26
Also updated to gradle 4
2017-12-15 13:51:05 +09:00
Timothy Rae
6643ace2c8 Update gradle to 2.3.3 2017-07-17 09:39:23 +09:00
Tim Rae
c4c6af20af Bumped version to
@branch-specific
2016-12-13 20:43:22 +09:00
Timothy Rae
d8ba8aacb5 Update gradle-play-publisher 2016-10-23 17:57:36 +09: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
Timothy Rae
bbbc5c46f6 Bump gradle version 2016-05-06 01:08:38 +09:00
Mark Carter
b33baf4add Update gradle files for Android Studio 2 2016-04-09 15:26:53 +08:00
Houssam Salem
e27e627de7 Disable pre-dexing on Travis 2016-03-12 09:45:45 +11:00
Houssam Salem
f8f3ab6ec2 Update to newer support libraries and build tools 2016-02-28 22:42:54 +11:00
timrae
937dec0eb7 Add gradle task for uploading to Google Play 2015-10-27 11:23:05 +09:00
timrae
a8bdaf7a3c Update material dialogs version
and drop targetSdkVersion to v22
2015-09-25 19:42:59 +09:00
timrae
82f5a58552 Show SnackBar instead of dialog when sync was successful 2015-09-04 13:31:48 +09:00
timrae
af91023e57 Update project configuration for Android Studio 1.0 stable 2014-12-09 11:11:40 +09:00