David Allison
95624d8760
refactor: Kotlin 2.0 prep
...
## Deprecations
* `@Deprecated`/ `@Suppress("OVERRIDE_DEPRECATION")`
====
This declaration overrides a deprecated member but is not marked as deprecated itself.
Please add the '@Deprecated' annotation or suppress the diagnostic.
See https://youtrack.jetbrains.com/issue/KT-47902 for details
## `LinkedList.first`
* `LinkedList.first` to `LinkedList.first()`
----
'val first' is deprecated. This declaration will be renamed in a future version of Kotlin.
Please consider using the 'first()' stdlib extension if the collection supports fast random access.
## `kotlinOptions`
* `kotlinOptions` -> `compilerOptions`
'kotlinOptions(KotlinJvmOptionsDeprecated /* = KotlinJvmOptions */.() -> Unit): Unit' is deprecated.
Please migrate to the compilerOptions DSL. More details are here: https://kotl.in/u1r8ln
2024-05-21 15:28:50 +00:00
lukstbit
eeb9e27ff2
Remove materialdialogs dependency
...
Some notes:
- added the back arrow from the vector assets IDE library to replace
the one used from the library
- replaced md_title_textsize with title_textsize, they have the same value, see
709cfee9b4/core/src/main/res/values/dimens.xml (L28)
2024-05-21 12:40:36 +00:00
lukstbit
041145f4f0
Remove references to MaterialDialog from DeckPickerTest
...
The app doesn't have any more MaterialDialogs so checking for them
is useless now.
2024-05-21 12:40:36 +00:00
lukstbit
12775d8d21
Migrate from MaterialDialog toAlertDialog in DeckSelectionDialog
...
In onResume() there is code added to clear some window flags that
prevented the keyboard to appear when the user would try to filter
the decks' list.
2024-05-21 12:40:36 +00:00
David Allison
b455b7b135
fix(note-editor): display 'home' deck if filtered
...
If a note is edited from the Reviewer
And the note is in a filtered deck
The 'current deck' should show the home deck
Before this change it showed the first deck
Fixes 15919
2024-05-21 09:39:15 +00:00
Haz3-jolt
887f51bf0a
Added test for addNote
2024-05-21 07:48:58 +00:00
Moreno
b7ac28c533
fix stats orientation change
2024-05-20 19:44:45 -03:00
lukstbit
08f92fa2f4
Clarify waitForPositiveButton in AlertDialog.input() documentation
...
The standard behavior of clicking any of the platform defined buttons
of a dialog is closing the dialog. This doesn't happen for the positive
button when using the extension AlertDialog.input(waitForPositiveButton = true)
as we set a custom OnClickListener on the positive button which disables the
platform behavior.
2024-05-20 14:54:23 +00:00
lukstbit
be01711243
Migrate MaterialDialog to AlertDialog in TagsDialog
...
Co-authored-by: Neel Doshi <60827173+neeldoshii@users.noreply.github.com>
2024-05-20 14:54:23 +00:00
lukstbit
7b850d20f7
Migrate MaterialDialog to AlertDialog in ModelFieldEditorTest
...
Note: showing the dialog required an app compat theme so I inserted it
by using one of our themes through a ContextWrapper. The button
declaration also requires either a resource string or a text so the empty
string satisfies this requirement.
2024-05-20 14:29:38 +00:00
David Allison
a51bf63b67
test(ci): fix windows runner hanging
...
Tracked down to all methods on TagsDialog
Adding `: RobolectricTest()` did not resolves this
So add `@Flaky`
Fixes 16404
2024-05-19 21:58:32 +00:00
David Allison
84730bec3c
test: support class-level Flaky annotation
2024-05-19 21:58:32 +00:00
Neel Doshi
62eff67e2f
Migrated AndroidPermanentlyRevokedPermissionsDialog to AlertDialog
2024-05-19 18:29:42 +00:00
AnkiDroid Translations
7853f54d4b
Updated strings from Crowdin
2024-05-19 13:48:40 +00:00
Sumit Singh
ebbd10dff4
Ankidroid use flag names like anki
2024-05-19 10:53:04 +00:00
AnkiDroid Translations
8aeb8a63d2
Updated strings from Crowdin
2024-05-19 10:32:29 +00:00
Moreno
9a49a9fd97
try catch intent handling
2024-05-19 06:39:07 +00:00
Moreno
555a8e000e
add intent url to previewer
2024-05-19 06:39:07 +00:00
Moreno
22efbf316c
refactor handleUrl to use when
2024-05-19 06:39:07 +00:00
Moreno
8daede5875
handle android app links in previewer
2024-05-19 06:39:07 +00:00
Brayan Oliveira
59fbe88329
fix: currentCard not initialized
2024-05-19 06:38:17 +00:00
Robozinho
56e9816618
fix manage notetypes menu
2024-05-18 16:30:43 -03:00
Moreno
e2bb9c8d22
fix summary overflow
2024-05-16 21:22:42 +00:00
Mike Hardy
d312629143
Dependency updates 20240516 ( #16415 )
...
* build(deps): bump org.jetbrains.kotlinx:kotlinx-coroutines-test
Bumps [org.jetbrains.kotlinx:kotlinx-coroutines-test](https://github.com/Kotlin/kotlinx.coroutines ) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/Kotlin/kotlinx.coroutines/releases )
- [Changelog](https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md )
- [Commits](https://github.com/Kotlin/kotlinx.coroutines/compare/1.8.0...1.8.1 )
---
updated-dependencies:
- dependency-name: org.jetbrains.kotlinx:kotlinx-coroutines-test
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* build(deps): bump androidx.viewpager2:viewpager2 from 1.0.0 to 1.1.0
Bumps androidx.viewpager2:viewpager2 from 1.0.0 to 1.1.0.
---
updated-dependencies:
- dependency-name: androidx.viewpager2:viewpager2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* build(deps): bump androidx.appcompat:appcompat
Bumps androidx.appcompat:appcompat from 1.7.0-beta01 to 1.7.0-rc01.
---
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.annotation:annotation from 1.7.1 to 1.8.0
Bumps androidx.annotation:annotation from 1.7.1 to 1.8.0.
---
updated-dependencies:
- dependency-name: androidx.annotation:annotation
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* build(deps): bump androidxFragmentKtx from 1.6.2 to 1.7.1
Bumps `androidxFragmentKtx` from 1.6.2 to 1.7.1.
Updates `androidx.fragment:fragment-ktx` from 1.6.2 to 1.7.1
Updates `androidx.fragment:fragment-testing` from 1.6.2 to 1.7.1
Updates `androidx.fragment:fragment-testing-manifest` from 1.6.2 to 1.7.1
---
updated-dependencies:
- dependency-name: androidx.fragment:fragment-ktx
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: androidx.fragment:fragment-testing
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: androidx.fragment:fragment-testing-manifest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* build(deps): bump io.mockk:mockk from 1.13.10 to 1.13.11
Bumps [io.mockk:mockk](https://github.com/mockk/mockk ) from 1.13.10 to 1.13.11.
- [Release notes](https://github.com/mockk/mockk/releases )
- [Commits](https://github.com/mockk/mockk/compare/1.13.10...1.13.11 )
---
updated-dependencies:
- dependency-name: io.mockk:mockk
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-16 16:02:53 -05:00
Neel Doshi
65a9ccd760
Redundant MaterialBuilderUtils
2024-05-16 12:58:23 +00:00
Neel Doshi
2bce63ced9
Refactored DatabaseErrorDialog to AlertDialog
2024-05-16 12:58:23 +00:00
Neel Doshi
480e4e8b95
Extension Function For ListItem and Message
2024-05-16 12:58:23 +00:00
Moreno
ee085a6c92
improve optimizing presets message
2024-05-15 21:57:23 +00:00
Moreno
349d4f21cf
fix language country with system default
2024-05-15 15:09:12 +00:00
Ashish Yadav
27f5f25b3d
chore: extract ActionModeClass from NoteEditor
2024-05-15 12:31:09 +00:00
Brayan Oliveira
0fc602e8b0
Update forums links
...
There are now subcategories for AnkiDroid
2024-05-15 09:59:02 -03:00
Haz3-jolt
f336065d12
fixes #16389 IO type reappears when card is added.
2024-05-14 22:00:26 +00:00
Haz3-jolt
53609f681d
changed from runBlocking -> withBrowser and simplified scope.
2024-05-14 21:26:17 +00:00
Haz3-jolt
1dc17e5a41
Added test for OnDeckSelected.
2024-05-14 21:26:17 +00:00
Ashish Yadav
d4bea9356a
enhancement: allow camera access when using image occlusion ( #15029 )
...
* enhancement: allow camera access when using image occlusion
* Use bottom sheet to display camera and gallery option
* reactor: Use generic method from ImageUtils to crop image in BasicImageFieldController
* refactor: updated IO layout to use linear layout instead on MaterialButton
2024-05-14 15:00:49 +01:00
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