0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-19 19:42:17 +02:00
Commit Graph

20 Commits

Author SHA1 Message Date
Voczi
a4f0d8f511 Implement release mode instrumentation with better proguard rules 2024-06-26 15:58:07 +00:00
Mike Hardy
9951decf36 test: bump jacoco to 0.8.12 2024-06-26 15:58:07 +00:00
Mike Hardy
b6c1fd314e test: fixup warning message when no coverage of type is found
doesn't look like string format works in logger.warn, use concat
2024-06-24 17:34:10 +00:00
Mike Hardy
b15994cad0 test: ensure non-zero coverage for androidTest reports
there are many toolchain incompatibilities which can result in a
false-positive androidTest test run, but with zero actual coverage
tallied

this adds a finalization task that scans the coverage report looking
for an aggregate coverage count that is non-zero
2024-06-24 12:35:54 +00:00
Mike Hardy
6ff8871885
Dependency updates 20231130 (#14855)
* build(deps): bump commons-io:commons-io from 2.15.0 to 2.15.1

Bumps commons-io:commons-io from 2.15.0 to 2.15.1.

---
updated-dependencies:
- dependency-name: commons-io:commons-io
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* build(deps): bump androidx.webkit:webkit from 1.8.0 to 1.9.0

Bumps androidx.webkit:webkit from 1.8.0 to 1.9.0.

---
updated-dependencies:
- dependency-name: androidx.webkit:webkit
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Update Gradle Wrapper from 8.4 to 8.5.

Signed-off-by: gradle-update-robot <gradle-update-robot@regolo.cc>

* build(deps): remove JDK18, support JDK21 (LTS)

* build(deps): adopt jacoco 0.8.11 - supports JDK21

* style(lint): use new build variant configuration style

documentation: https://developer.android.com/build/build-variants

- defer configuration of build types / flavors with create/named, used in example
- flavorDimensions is now a property so you += custom dimensions to it

* style(lint): gradle .all --> .configureEach

* style(lint): use imports vs fully qualified names

* docs(gradle): update comment describing CI vCPU determination

* style(lint): use deferred-configuration-compatible task registration/dependency

* style(lint): deprecated kotlinOptions -> current compilerOptions

* style(lint): project.buildDir -> project.layout.buildDirectory

required a slightly different way of building the file tree for kotlin
class location as input to the report, but despite being a little subtle
it is not at all hard to understand

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: gradle-update-robot <gradle-update-robot@regolo.cc>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: gradle-update-robot <gradle-update-robot@regolo.cc>
2023-11-30 16:01:31 -05:00
Mike Hardy
95eac24022 revert jacoco from 0.8.9 to 0.8.8 - macOS runner cannot find it
has caused spurious errors from other runners as well and from
individual contributors. Feels like the global maven central CDN
is not in sync but that is also not in our control, so revert
2023-04-16 00:18:38 +01:00
Mike Hardy
0f0a71da13 build(deps): bump jacoco to 0.8.9 2023-04-06 15:10:03 -05:00
David Allison
76f7e63296 AGP: Migrate DSL properties from jacoco to testCoverage
AGP 7.4.1 Automated Change + manual fixup

Description:

Configuration related to test coverage is now performed using the testCoverage block.

Manual fixup: the change was also added to `build.gradle`.
Revert this
2023-02-16 10:37:06 -05:00
David Allison
3c379007d2 chore: jacoco - remove Java coverage
We no longer have Java files in the project
2022-09-05 00:34:28 +02:00
David Allison
8721e8ac30 fix: improve list of excludes for Kotlin jacoco
Copy/pasted from https://medium.com/jamf-engineering/android-kotlin-code-coverage-with-jacoco-sonar-and-gradle-plugin-6-x-3933ed503a6e
2022-08-28 13:52:44 -05:00
David Allison
e3ce2d7b34 feat: Include Kotlin files in code coverage
Instructions from:
https://medium.com/jamf-engineering/android-kotlin-code-coverage-with-jacoco-sonar-and-gradle-plugin-6-x-3933ed503a6e

Fixes 9432
2022-08-28 13:52:44 -05:00
Mike Hardy
fed9f97d87 build(deps): bump jacoco from 0.8.7 to 0.8.8 2022-04-25 22:25:52 -05:00
Mike Hardy
5b27ab0b48 fix: forward-port to non-deprecated gradle properties 2022-04-21 18:44:04 +05:30
Mike Hardy
99abf0525d chore: bump jacoco to 0.8.7 2021-05-14 08:46:57 -05:00
Mike Hardy
79e2979fcf Fix jacoco reports w/correct per-flavor class dirs 2021-05-11 00:50:41 -05:00
Mrudul Tora
6d68424cd4
Fixes #8151 Build flavors for Amazon Appstore and Google Playstore (#8427)
Fixes #8151 Build flavors for Amazon Appstore and Google Playstore
2021-04-19 22:39:06 -05:00
Mike Hardy
61cb6c3f05 Update to gradle 7.0
- API publishing needed a complete overhaul, tested locally, works
- JCenter is still needed for AnkiDroid as noted unfortunately...couple months to go
- Some artifact resolution performance complaints but local testing shows every single thing works
2021-04-15 23:21:34 -05:00
Tarekk Mohamed Abdalla
30c8593f8f
feat: Enable jacoco reports to be opened (#8617)
* feat: enable jacoco reports to be opened
* fix jacocoTestReport to run independently from other jacoco tasks

Co-authored-by: Mike Hardy <github@mikehardy.net>
2021-04-14 17:29:48 -05:00
Mike Hardy
f0b52dfee9 Fix jacocoTestReport dependencies so android test run
Something about the 6.3->6.4 gradle migration required this
2020-05-17 14:47:03 -05:00
Mike Hardy
d83a9dc6d3 Optimize CI w/test split; Verify osx/win work 2019-11-04 00:38:02 -05:00