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

13 Commits

Author SHA1 Message Date
Mike Hardy
6260cd6e25 build(deps): bump android gradle plugin to 7.1
- bcprov gradle.properties setting no longer needed, fix released in AGP7.1
- androidx.core resolution strategy no longer needed (actually was in fragment 1.4)
- opt in to api component publishing new regime to quiet warning
- disable certain lints that were not providing value or are already tracked
2022-01-26 15:01:40 -05:00
Mike Hardy
c9ab8ad0e1
build(gradle): use parallel GC, allow more memory
the parallel GC bit comes from https://developer.android.com/studio/build/optimize-your-build.html#configure-the-jvm-garbage-collector

the more memory bit is just a guess but does speed things a bit in local profiling
2021-10-26 11:56:43 -05:00
Mike Hardy
a035f3a658 build: increase memory available to gradle during build 2021-10-25 13:48:20 -05:00
Mike Hardy
5dae9d90f9 build(deps): bump android gradle plugin to 7.0.0
- ignore bcprov via ignorelist, can remove w/AGP7.1+ https://issuetracker.google.com/issues/159151549#comment12
- Triple-T publisher needs a switch to their agp7.0 track
- Obsolete versionCode/version/dexOptions removed (suggested by AGP migration task in Android Studio)
- AGP 7+ requires JDK11 to run, retire JDK8 from development
2021-07-31 14:58:53 -05:00
Mike Hardy
eebe6bdff8
Dependency updates 20210713 (#9258)
* Bump lint_version from 27.2.1 to 27.2.2

Bumps `lint_version` from 27.2.1 to 27.2.2.

Updates `lint-api` from 27.2.1 to 27.2.2

Updates `lint` from 27.2.1 to 27.2.2

Updates `lint-tests` from 27.2.1 to 27.2.2

---
updated-dependencies:
- dependency-name: com.android.tools.lint:lint-api
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.android.tools.lint:lint
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.android.tools.lint:lint-tests
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Bump robolectric from 4.5.1 to 4.6.1 (#9208)

* Bump lint_version from 27.2.1 to 27.2.2

Bumps `lint_version` from 27.2.1 to 27.2.2.

Updates `lint-api` from 27.2.1 to 27.2.2

Updates `lint` from 27.2.1 to 27.2.2

Updates `lint-tests` from 27.2.1 to 27.2.2

---
updated-dependencies:
- dependency-name: com.android.tools.lint:lint-api
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.android.tools.lint:lint
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.android.tools.lint:lint-tests
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Bump robolectric from 4.5.1 to 4.6.1

Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.5.1 to 4.6.1.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](https://github.com/robolectric/robolectric/compare/robolectric-4.5.1...robolectric-4.6.1)

---
updated-dependencies:
- dependency-name: org.robolectric:robolectric
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Ignore bcprov during jetifier runs

- jetifier still needed because of old material dialogs version, pending kotlin migration
- jetifier cannot handle JDK15 bytecode because of some other internal dependency with bcprov
- bcprov does not need jetifier processing though, so skipping it is okay

https://github.com/robolectric/robolectric/issues/6521#issuecomment-851736355

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mike Hardy <github@mikehardy.net>

* build(deps): bump jsoup from 1.13.1 to 1.14.1

Bumps [jsoup](https://github.com/jhy/jsoup) from 1.13.1 to 1.14.1.
- [Release notes](https://github.com/jhy/jsoup/releases)
- [Changelog](https://github.com/jhy/jsoup/blob/master/CHANGES)
- [Commits](https://github.com/jhy/jsoup/compare/jsoup-1.13.1...jsoup-1.14.1)

---
updated-dependencies:
- dependency-name: org.jsoup:jsoup
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* build(deps): bump kotlin_version from 1.5.20 to 1.5.21

Bumps `kotlin_version` from 1.5.20 to 1.5.21.

Updates `kotlin-gradle-plugin` from 1.5.20 to 1.5.21
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

Updates `kotlin-stdlib` from 1.5.20 to 1.5.21
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

Updates `kotlin-stdlib-jdk7` from 1.5.20 to 1.5.21
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib-jdk7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-16 10:09:11 -05:00
David Allison
b0e9d68661 PERF: Enable Gradle File System Watching
Should speed up incremental builds

https://docs.gradle.org/6.7/release-notes.html#performance-improvements
https://blog.gradle.org/introducing-file-system-watching
https://docs.gradle.org/current/userguide/gradle_daemon.html#sec:daemon_watch_fs
2020-10-15 09:26:38 -05:00
Mike Hardy
cb49fb552e Upgrade to robolectric 4.3.1 with new Looper mode
This involved handling some timer differences, and accessing Context differently

The only troubling part was in AbstractFlashcardViewerTest - there's a thorny timing
issue there which I solved by coarsely hacking in a sleep
2020-04-13 14:48:58 -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
Frieder Bluemle
2136b55509 Update Gradle wrapper to 5.6.1 2019-08-29 15:46:25 -05:00
Adam Wolf
b96ffdb046 Add Mathjax support. (#5285)
* Add Mathjax support.

This adds Mathjax 2.7.0.  It modifies several files in libanki, but I
tried to check them against the originals in Python.

It does not add fading like Anki but rather shows the text as soon
as Mathjax says it is finished.

I have added a few tests.  Some are ported from Anki, and other are
original.

This particular commit does not actually add the Mathjax files.  These
are in the next commit.

* Import Mathjax 2.7.0.

This is an import from the upstream git repository, checked out at the
2.7.0 tag.

* Address PR feedback.

* fix release build OOM w/gradle heap increase

* Use mathjax folder from upstream
2019-06-10 10:49:58 +09: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
070df10df2 Use binary resource loading for robolectric 2018-11-02 09:45:13 +07:00
Mike Hardy
c25f86027c Refactor->Migrate to AndroidX 2018-09-27 22:57:34 +09:00