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

19128 Commits

Author SHA1 Message Date
Mike Hardy
d4d48b920c
build: prepare main for 2.19 development alpha series 2024-05-14 08:56:58 -05:00
Mike Hardy
7af0e3a7e5
chore(ci): update milestone script to point issues to 2.19 release 2024-05-14 08:56:55 -05:00
leobugeja
1ef78c45d6 fix: inconsistent tag checkbox color 2024-05-13 18:54:30 +00:00
Mike Hardy
464cf290cc Bumped version to 2.18.0 2024-05-13 02:55:41 +00:00
Mike Hardy
d87e1c3cb3
release: version bump for 2.18.0 release
release track set to beta earlier, no need to change it
2024-05-12 21:49:44 -05:00
AnkiDroid Translations
8aecaf6fad Updated strings from Crowdin 2024-05-12 21:07:14 -05:00
Moreno
30f3431dd2 add search keyboard shortcut 2024-05-12 21:06:35 -05:00
Mike Hardy
7db8c60f9d
Dependency updates 20240512 (#16383)
* build(deps): bump androidx.core:core-ktx from 1.13.0 to 1.13.1

Bumps androidx.core:core-ktx from 1.13.0 to 1.13.1.

---
updated-dependencies:
- dependency-name: androidx.core:core-ktx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* build(deps): bump androidx.appcompat:appcompat

Bumps androidx.appcompat:appcompat from 1.7.0-alpha03 to 1.7.0-beta01.

---
updated-dependencies:
- dependency-name: androidx.appcompat:appcompat
  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.10.0 to 1.11.0

Bumps androidx.webkit:webkit from 1.10.0 to 1.11.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>

* build(deps): bump org.jetbrains.kotlin:kotlin-reflect

Bumps [org.jetbrains.kotlin:kotlin-reflect](https://github.com/JetBrains/kotlin) from 1.9.23 to 1.9.24.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.9.24/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.9.23...v1.9.24)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-reflect
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* build(deps): bump com.google.android.material:material

Bumps [com.google.android.material:material](https://github.com/material-components/material-components-android) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/material-components/material-components-android/releases)
- [Commits](https://github.com/material-components/material-components-android/compare/1.11.0...1.12.0)

---
updated-dependencies:
- dependency-name: com.google.android.material:material
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* build(deps): bump kotlinTest from 1.9.23 to 1.9.24

Bumps `kotlinTest` from 1.9.23 to 1.9.24.

Updates `org.jetbrains.kotlin:kotlin-test` from 1.9.23 to 1.9.24
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.9.24/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.9.23...v1.9.24)

Updates `org.jetbrains.kotlin:kotlin-test-junit` from 1.9.23 to 1.9.24
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.9.24/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.9.23...v1.9.24)

Updates `org.jetbrains.kotlin:kotlin-test-junit5` from 1.9.23 to 1.9.24
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.9.24/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.9.23...v1.9.24)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-test
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin:kotlin-test-junit
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin:kotlin-test-junit5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* build(deps): bump kotlin from 1.9.23 to 1.9.24

Bumps `kotlin` from 1.9.23 to 1.9.24.

Updates `org.jetbrains.kotlin:kotlin-stdlib` from 1.9.23 to 1.9.24
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.9.24/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.9.23...v1.9.24)

Updates `org.jetbrains.kotlin.android` from 1.9.23 to 1.9.24
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.9.24/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.9.23...v1.9.24)

Updates `org.jetbrains.kotlin.plugin.parcelize` from 1.9.23 to 1.9.24
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.9.24/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.9.23...v1.9.24)

Updates `org.jetbrains.kotlin.jvm` from 1.9.23 to 1.9.24
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.9.24/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.9.23...v1.9.24)

Updates `org.jetbrains.kotlin.plugin.serialization` from 1.9.23 to 1.9.24
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.9.24/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.9.23...v1.9.24)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin.android
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin.plugin.parcelize
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin.jvm
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin.plugin.serialization
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-12 21:06:12 -05:00
Moreno
0ffc6b0b7c fix class not found issue in API 25
Co-authored-by: Brayan Oliveira <69634269+brayandso@users.noreply.github.com>
2024-05-13 00:57:44 +00:00
David Allison
f1b7c668c1 feat: Toggle Bury
Issue 14163
2024-05-12 19:41:41 -05:00
David Allison
946268479d refactor: actionBarMenu -> remove !! 2024-05-12 19:41:41 -05:00
Robozinho
5d81a57079 grant audio capture permission to webview 2024-05-12 19:40:42 -05:00
Brayan Oliveira
bf1f7fbba7 fix: CORS issue with JS loading 2024-05-12 19:40:24 -05:00
AnkiDroid Translations
84dea7a48f Updated strings from Crowdin 2024-05-12 18:48:05 -05:00
Robozinho
769dd4bca6
fix tts in browser (#16347)
* add tts tag test

Co-authored-by: David Allison <62114487+david-allison@users.noreply.github.com>

* fix tts tag in browser

---------

Co-authored-by: David Allison <62114487+david-allison@users.noreply.github.com>
2024-05-12 15:52:25 -03:00
David Allison
636cf9e1d5 fix: lateinit property viewPager has not been initialized
`onCollectionLoaded` is not guaranteed to be called synchronously

Fixes 16301
2024-05-12 18:24:09 +00:00
AnkiDroid Translations
d3f1bdd39f Updated strings from Crowdin 2024-05-12 05:05:28 +00:00
Aditya
23c5ecd701 Added ContentDescription for check pronunciation 2024-05-11 22:33:37 +00:00
AnkiDroid Translations
4e44f37149 Updated strings from Crowdin 2024-05-11 20:23:21 +00:00
Brayan Oliveira
c24fba66eb chore: update a part of libanki
chore(libanki): setCurrent()

c9c7a3133c/pylib/anki/decks.py (L409)

chore(libanki): parentsByName()

4fc535ec88/pylib/anki/decks.py (L503-L517)

chore(libanki): parents()

4fc535ec88/pylib/anki/decks.py (L482-L501)

chore(libanki): add methods to Decks (3)

4fc535ec88/pylib/anki/decks.py (L471-L480)

chore(libanki): add methods to Decks (2)

4fc535ec88/pylib/anki/decks.py (L456-L469)

chore(libanki): add methods to Decks (1)

4fc535ec88/pylib/anki/decks.py (L441-L450)

chore(libanki): customStudy() and customStudyDefaults()

4fc535ec88/pylib/anki/scheduler/base.py (L98-L102)

chore(libanki): add haveManuallyBuried and haveBuriedSiblings

4fc535ec88/pylib/anki/scheduler/base.py (L88-L92)

chore(libanki): rename haveBuried()

4fc535ec88/pylib/anki/scheduler/base.py (L94)

chore(libanki): add congratulationsInfo()

4fc535ec88/pylib/anki/scheduler/base.py (L85)
2024-05-11 18:30:32 +00:00
MarkusJLechner
2f40205e10 fix: prevent screen highlight using bluetooth controller
Closes: https://github.com/ankidroid/Anki-Android/issues/14262
2024-05-11 14:58:52 +00:00
Brayan Oliveira
d60d773554
Guide support and feature requests to the forums (#16370)
* Update config.yml

* Delete .github/ISSUE_TEMPLATE/feature_request.md
2024-05-10 17:29:34 -03:00
Robozinho
bc58dceaad add progress dialog to deck options 2024-05-05 02:14:58 +00:00
Robozinho
d983b81864 fix sync tooltip text 2024-05-05 02:14:35 +00:00
AnkiDroid Translations
9a81b50c2c Updated strings from Crowdin 2024-05-04 22:53:32 +00:00
David Allison
5ed93adaec fix(audio-recorder): crash if saving immediately
` if (isRecording || isRecordingPaused) {` returned true

so `clearRecording` was called even though `stop()` has been called

which crashed.

```
Done -> stopAndSaveRecording()
then -> done() -> onViewFocusChanged()
```

We fix this by setting the state to CLEARED after stopAndSaveRecording

Cause: cad603ef08
I missed that `stopAndSaveRecording` was public

Fixes 16321
2024-05-04 22:42:09 +00:00
David Allison
905a407c62 chore: KotlinCleanup 2024-05-04 16:16:00 +00:00
David Allison
a74f1a0552 chore: assertThrows 2024-05-04 16:16:00 +00:00
David Allison
55f396beea chore: fix hungarian notation 2024-05-04 16:16:00 +00:00
David Allison
47f4d91e60 fix: 'iw' is a RTL language
Alias for Hebrew, Android needs both 'iw' and 'heb'

cause: 0f795cea36
2024-05-04 15:59:26 +00:00
Robozinho
19acfe08a3 add keyboard shortcuts to flag and mark in previewer 2024-05-04 15:58:28 +00:00
David Allison
625473cca6 fix(template-previewer): 'currentCard' has not been initialized
Don't keep activities calls `onPageFinished(isAfterRecreation)`
, but the ViewModel has not been initialized previously

Fixes 16322
2024-05-03 12:15:55 +00:00
David Allison
057693cdec build(ci): decrease unit test timeout to 30 minutes
Our longest unit test runner is Windows (~18 mins)

We are currently having timeout issues with this runner,
hitting this 40 min timeout.

This saves about 7x10 minutes of CI time per day for failed runners

Save the trees
2024-05-03 08:23:54 +00:00
Hari Srinivasan
17e7cf71dd
Created test for onSelectedTags. (#16307)
* Created test for onSelectedTags.

* Reverted change, and moved to ReviewerTest.kt and formated it for it.

* Added test for onSelectedTags

* Modified to match legacy methods.

* assert question/answer display state before executing code under test

---------

Co-authored-by: Mike Hardy <github@mikehardy.net>
2024-05-02 18:12:02 -05:00
Kevin
0f795cea36
fix: duplicate values-heb into values-iw so hebrew works on all devices (#16316)
* fix: localizations not being added to values-iw

Some devices rely on hebrew translations being in the values-heb resource directory
and others rely on the translations being in values-iw. This change is a quick fix
which reuses the same algorithm for updating localization resources, while duplicating
hebrew translations to values-heb and values-iw.

* Update tools/localization/src/update.ts

---------

Co-authored-by: Mike Hardy <github@mikehardy.net>
2024-05-02 17:35:58 -05:00
Mike Hardy
dc5348852b Bumped version to 2.18beta2 2024-05-02 19:38:24 +00:00
David Allison
731b85c5ad fix: lateinit property of questions and answers not initialised
`isAfterRecreation = true` -> sounds were not loaded

This was triggered if "Don't keep activities" was set

Fixes 16302
2024-05-02 14:32:13 -05:00
lukstbit
4bd2cd1e09 Fix refresh of DeckPicker UI after a new collection import
The fix introduces a call to withCol {} to make sure the collection is
open and available before any of the code that updates the UI in
DeckPicker runs.
2024-05-02 18:56:44 +00:00
Mike Hardy
8e29b5a50b
Dependency updates 20240501 (#16315)
* build(deps): bump androidx.core:core-ktx from 1.12.0 to 1.13.0 (#16202)

* Reapply "Dependency updates 20240417 (#16193)"

This reverts commit a75ef34cf9.

* build(deps): bump androidx.core:core-ktx from 1.12.0 to 1.13.0

Bumps androidx.core:core-ktx from 1.12.0 to 1.13.0.

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

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

* refactor: use same named parameter name as overridden method

else we get build warnings which we consider errors

* refactor: call View.generateViewId directly to handle deprecation

* refactor: handle CancellationSignal type ambiguity from deprecation by pinning w/declaration

attempting to cast it inline with `as CancellationSignal` results in "cast never succeeds"
warnings which are unsightly

---------

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

* build(deps): bump com.squareup.leakcanary:leakcanary-android

Bumps [com.squareup.leakcanary:leakcanary-android](https://github.com/square/leakcanary) from 2.13 to 2.14.
- [Release notes](https://github.com/square/leakcanary/releases)
- [Changelog](https://github.com/square/leakcanary/blob/main/docs/changelog.md)
- [Commits](https://github.com/square/leakcanary/compare/v2.13...v2.14)

---
updated-dependencies:
- dependency-name: com.squareup.leakcanary:leakcanary-android
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* build(deps): bump lint from 31.3.2 to 31.4.0

Bumps `lint` from 31.3.2 to 31.4.0.

Updates `com.android.tools.lint:lint-api` from 31.3.2 to 31.4.0

Updates `com.android.tools.lint:lint` from 31.3.2 to 31.4.0

Updates `com.android.tools.lint:lint-tests` from 31.3.2 to 31.4.0

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

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

* build(deps): bump androidGradlePlugin from 8.3.2 to 8.4.0

Bumps `androidGradlePlugin` from 8.3.2 to 8.4.0.

Updates `com.android.application` from 8.3.2 to 8.4.0

Updates `com.android.library` from 8.3.2 to 8.4.0

---
updated-dependencies:
- dependency-name: com.android.application
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.android.library
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* build(deps): bump androidx.activity:activity-ktx from 1.8.2 to 1.9.0 (#16201)

* build(deps): bump androidx.activity:activity-ktx from 1.8.2 to 1.9.0

Bumps androidx.activity:activity-ktx from 1.8.2 to 1.9.0.

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

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

* refactor: use activity directly, all ktx extensions in main dep now

Per release notes:

> The remainder of the Activity APIs have been rewritten in Kotlin and
> all extensions previously available in activity-ktx have been moved
> to activity. activity-ktx is now completely empty.

* refactor: handle Intent nullability changes

* fix: [set/add]ContentView nullability change

* fix: onBackPressed deprecation

* fix: further onBackPressed deprecation

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mike Hardy <github@mikehardy.net>
Co-authored-by: David Allison <62114487+david-allison@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: David Allison <62114487+david-allison@users.noreply.github.com>
2024-05-02 12:59:34 -05:00
David Allison
3cf54e7aff fix(tags-dialog): alignment of checkbox
Cause: 6119d54233

Shift by -12dp to fix

Fixes 15205
2024-05-01 18:52:02 +00:00
AnkiDroid Translations
1eafebcca8 Updated strings from Crowdin 2024-05-01 18:06:25 +00:00
leobugeja
d573645766 feat: undo stroke in drawing editor 2024-05-01 16:06:37 +00:00
David Allison
b6b2006f5b fix: NullPointerException: deckSpinnerSelection
Fixes 16303
2024-05-01 09:37:21 +00:00
Mike Hardy
52b26a31e4 fix(ci): do not run conflict scheduled job on forks
in general scheduled jobs should be main repo only
in specific this job only makes sense on main repo
2024-04-30 23:36:28 +00:00
Mike Hardy
877a96bae8 feat(ci): run flake finder daily for passive flake scan 2024-04-30 23:36:28 +00:00
Mike Hardy
c12b398c21 Bumped version to 2.18beta1 2024-04-29 04:12:14 +00:00
Mike Hardy
a6e6cf827c
release: switch to 2.18 to beta with distribution to beta channel 2024-04-28 23:11:09 -05:00
Mike Hardy
988ab5c055 build(deps): use v4 of upload-artifact in new code
this new code was added with old dep while dependency-updates were
in limbo due to hanging issues
2024-04-28 23:07:18 -05:00
Mike Hardy
acf6ecb65f Reapply "Dependency updates 20240417 (#16193)"
This reverts commit a75ef34cf9.
2024-04-28 23:07:18 -05:00
Mike Hardy
2f42b12d35
fix: use internal cache directory instead of external cache directory 2024-04-28 22:26:13 -05:00