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

65 Commits

Author SHA1 Message Date
Mike Hardy
964ec9b401
build: remove remnant dirs from r8 failure workaround
Fixes #8982 maybe

(cherry picked from commit db31220406)
2021-05-28 12:14:41 -05:00
Mike Hardy
49edb49e17 build: android-gradle-plugin 4.2.0 + others
- remove jcenter (deprecated, thankfully no longer needed)
- remove r8 workaround for previous issue, AGP 4.2.0 has fix built-in
- bump Triple-T / Play Publisher plugin to match AGP 4.2.0
- remove java 1_8 source/target compat annotation, it is default in 4.2
- add noinspection for commons-compress - has to wait until API26
- lint to 27.2.0
- fragment to 1.2.3
2021-05-07 17:16:00 -05:00
dependabot-preview[bot]
9bd7fbab5b Bump gradle from 4.1.2 to 4.1.3
Bumps gradle from 4.1.2 to 4.1.3.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-19 15:31:02 -05:00
dependabot-preview[bot]
903faf8556 Bump r8 from 2.2.40 to 2.2.60
Bumps r8 from 2.2.40 to 2.2.60.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-19 15:31:02 -05:00
Mike Hardy
a25cb062a4
Dependency updates 20210120 (#8029)
* Bump mockito-inline from 3.6.28 to 3.7.0

Bumps [mockito-inline](https://github.com/mockito/mockito) from 3.6.28 to 3.7.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.6.28...v3.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump mockito-inline from 3.7.0 to 3.7.7

Bumps [mockito-inline](https://github.com/mockito/mockito) from 3.7.0 to 3.7.7.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.7.0...v3.7.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump gradle from 4.1.1 to 4.1.2

Bumps gradle from 4.1.1 to 4.1.2.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump lint-tests from 27.1.1 to 27.1.2

Bumps lint-tests from 27.1.1 to 27.1.2.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump sqlite-android from 3.33.0 to 3.34.0

Bumps [sqlite-android](https://github.com/requery/sqlite-android) from 3.33.0 to 3.34.0.
- [Release notes](https://github.com/requery/sqlite-android/releases)
- [Changelog](https://github.com/requery/sqlite-android/blob/master/CHANGELOG.md)
- [Commits](https://github.com/requery/sqlite-android/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump lint-api from 27.1.1 to 27.1.2

Bumps lint-api from 27.1.1 to 27.1.2.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump lint to 27.1.2 to match other lint artifacts

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-20 10:03:14 -05:00
Mike Hardy
e696f3a58a Make Travis build toggles into generic CI toggles
This makes the build settings that change in virtualized / CI environments
generic across any CI provider

Needed for port to Github Actions
2020-12-20 13:22:29 -05:00
Mike Hardy
6307ab9d5e Workaround for #7558 / https://issuetracker.google.com/issues/169584856 2020-11-11 14:12:53 -05:00
dependabot-preview[bot]
f386670761 Bump gradle from 4.0.2 to 4.1.1
Bumps gradle from 4.0.2 to 4.1.1.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-11 14:12:53 -05:00
Mike Hardy
0b0c1e936d
Revert "Bump gradle from 4.0.2 to 4.1.0"
This reverts commit 3dbe42687c.
2020-10-27 17:59:43 -05:00
dependabot-preview[bot]
3dbe42687c Bump gradle from 4.0.2 to 4.1.0
Bumps gradle from 4.0.2 to 4.1.0.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-14 06:06:10 -05:00
dependabot-preview[bot]
5ac3404c7d Bump gradle from 4.0.1 to 4.0.2
Bumps gradle from 4.0.1 to 4.0.2.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-07 15:09:22 -05:00
dependabot-preview[bot]
85964727d3 Bump gradle from 4.0.0 to 4.0.1
Bumps gradle from 4.0.0 to 4.0.1.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-16 17:07:34 -05:00
Mike Hardy
598e16e538
Upload universal APK to Amazon for public releases 2020-06-17 16:51:47 -05:00
Mike Hardy
6c51a9c5f8 Allow universal APK in release, upload it to github
Previous change meant we never had universal APKs but they are useful

This enables them again if you send a command-line toggle in, and then
uses the toggle to upload builds to github
2020-06-15 17:12:33 -05:00
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