Prince kushwaha
cc82aeca98
Rename ActionBarOverflowTest.java to ActionBarOverflow.kt
2022-05-24 09:44:51 -05:00
Brayan Oliveira
54bb419f38
Add support to <audio>
and <object>
...
This follows upstream, so the media contained on these tags won't be deleted
reference: b403f20cae/pylib/anki/media.py (L34-L45)
2022-05-24 09:29:00 -05:00
lukstbit
7934f58593
Refactor code around DatabaseLock
2022-05-22 03:09:18 +02:00
lukstbit
70bacb0e52
Migrate Tags.java to kotlin
2022-05-18 15:00:30 -05:00
lukstbit
8a7d7a451d
Rename Tags.java to .kt
2022-05-18 15:00:30 -05:00
Nishant
5fcae3dfe2
Migrate Basic2Model to Kotlin
2022-05-18 14:29:18 -05:00
Nishant
a1378533ba
Rename .java to .kt
2022-05-18 14:29:18 -05:00
lukstbit
5b44d77ac3
Fix ModelFieldEditor leaking ModelEditorContextMenu
...
To solve the leak and decouple the two classes, this PR also:
- refactors the ModelEditorContextMenu class to remove it's reference to the activity
- fixes a @KotlinCleanup for the method where the leak occurs
- removes the @RequiresApi for AddLanguageHint, ModelEditorContextMenu will trigger this action only when possible
2022-05-18 13:08:04 -05:00
Nishant
2445e6d99f
Migrate NoteInfo to Kotlin
2022-05-18 12:41:39 -05:00
Nishant
ecd530f8dd
Rename .java to .kt
2022-05-18 12:41:39 -05:00
Prince kushwaha
0c8a93934e
Migrate CheckMediaTest.java to Kotlin
2022-05-18 12:03:52 -05:00
Prince kushwaha
7b7b642da6
Rename CheckMediaTest.java to CheckMediaTest.kt
2022-05-18 12:03:52 -05:00
Prince kushwaha
6138d8ebbb
Migrate DiffEngineTest.java to Kotlin
2022-05-18 11:48:25 -05:00
Prince kushwaha
f4e289ec21
Rename DiffEngineTest.java to DiffEngineTest.kt
2022-05-18 11:48:25 -05:00
Prateek Singh
419bf6f18c
Migrate CopyrightHeaderExistsTest [Lint Test] to Kotlin
2022-05-18 11:08:26 -05:00
Prateek Singh
601821b47a
Rename .java to .kt
2022-05-18 11:08:26 -05:00
lukstbit
387c761b3c
Migrate TextNoteExporter.java to kotlin
2022-05-18 10:17:30 -05:00
lukstbit
66301a770e
Rename TextNoteExporter.java to .kt
2022-05-18 10:17:30 -05:00
MrPenguins
7900ef700a
Fixed a bug about NavigateUp Button on DeckOverview screen ( #11005 )
2022-05-18 09:23:37 -05:00
Mike Hardy
a112501498
test(ci, windows): stop gradle daemon to unlock files for caching
...
looks like windows file locking strikes again, with the gradle daemon
locking files in a way that makes caching them not work, leading to
persistent underperformance on windows runners
2022-05-17 14:56:41 -05:00
Mike Hardy
70b722556f
test(ci): give lint / unit test a bit more time to complete
...
noticed these failed a couple times recently due to timeouts where
they *almost* completed, slacken the timeout just a bit
2022-05-17 13:15:55 -05:00
dependabot[bot]
7c4fda625d
Bump gradle from 7.1.3 to 7.2.0
...
Bumps gradle from 7.1.3 to 7.2.0.
---
updated-dependencies:
- dependency-name: com.android.tools.build:gradle
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-17 13:15:55 -05:00
Mike Hardy
bd32f30af2
test(windows, ci): increase available paging space
...
See https://github.community/t/error-the-paging-file-is-too-small-for-this-operation-to-complete/17141/12
2022-05-17 13:15:55 -05:00
Mike Hardy
f5ecb05efc
build: cut memory usage for gradle daemons
...
gradle heap was very large, and while we need slightly larger
than normal heap, we do not need excessively large heap
when too large, it causes operating system level virtual memory
thrashing on windows workflow runners in github, leading to flaky
builds as the workers are slow and time out
additionally, the kotlin compiler daemon takes up it's own massive
chunk of memory, but can run in-process with almost no performance
affect I can detect, but with elimination of GBs of RAM used
finally, test daemons can inherit main daemon settings now as they
are equivalent
2022-05-17 13:15:55 -05:00
Mike Hardy
f604eb8a56
lint: suppress naming check here for AGP7.2 compat
...
this was tripping the detector, and cleaning it right now is orthogonal
to goal of getting AGP in
2022-05-17 13:15:55 -05:00
Mike Hardy
87b5df56a2
lint: fix rule for constant detection
...
appears to interact poorly with new AGP7.2
2022-05-17 13:15:55 -05:00
dependabot[bot]
df55e82d93
build(deps): bump mockk from 1.12.3 to 1.12.4
...
Bumps [mockk](https://github.com/mockk/mockk ) from 1.12.3 to 1.12.4.
- [Release notes](https://github.com/mockk/mockk/releases )
- [Commits](https://github.com/mockk/mockk/compare/1.12.3...1.12.4 )
---
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>
2022-05-17 13:15:55 -05:00
lukstbit
94d8d85e12
Migrate FunctionalInterfaces.java to kotlin
2022-05-15 10:29:52 -05:00
lukstbit
f53c54b1e3
Rename FunctionalInterfaces.java to .kt
2022-05-15 10:29:52 -05:00
David Allison
8741aae721
refactor: Convert Collection to Kotlin
...
com.ichi2.libanki.Collection
clearUndo was inlined
crt is now always a long
loadColumn - changed 'break' to 'return'
introduced dbClosed to remove the need for a nullable DB
2022-05-14 17:16:58 -05:00
David Allison
355b5a7c37
refactor: Rename Collection.java to .kt
...
com.ichi2.libanki.Collection
2022-05-14 17:16:58 -05:00
lukstbit
b312ce26bb
Migrate IField.java to kotlin
2022-05-14 16:48:15 -05:00
lukstbit
d580eebd47
Rename IField.java to .kt
2022-05-14 16:48:15 -05:00
camo0112
fdaef5cdf5
added test for CountModels
2022-05-14 16:41:19 -05:00
camo0112
b930323054
added test for CountModels
2022-05-14 16:41:19 -05:00
oyeraghib
231df20213
[Kotlin Cleanup] Various Files
2022-05-14 15:46:29 +01:00
oyeraghib
97b150728e
[Kotlin Cleanup] JSONArrayTest
2022-05-14 14:46:45 +01:00
David Allison
e3f69c2a9b
ci: Use two CPUs when building on CI
...
GitHub Actions (Standard_DS2_v2) are 1:1 on Linux/Windows with two vCPU cores
On macOS, this uses a separate cloud.
Sources:
https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#cloud-hosts-for-github-hosted-runners
https://docs.microsoft.com/en-gb/azure/virtual-machines/acu
https://docs.microsoft.com/en-gb/azure/virtual-machines/dv2-dsv2-series
2022-05-13 13:52:33 -05:00
David Allison
fcdb08fe24
feat: Speed up tests on M1 Macs
...
M1 Macs don't have SMT, so there's no need to halve the processors when
running tests
Before:
BUILD SUCCESSFUL in 3m 1s
BUILD SUCCESSFUL in 2m 57s
After:
BUILD SUCCESSFUL in 2m 08s
BUILD SUCCESSFUL in 1m 53s
2022-05-13 13:52:33 -05:00
oyeraghib
05b96990ce
[Kotlin Cleanup] CollectionUtils
2022-05-13 10:30:09 -05:00
oyeraghib
381b1bd2af
[Kotlin Cleanup] MockCursor
2022-05-13 10:25:09 -05:00
lukstbit
3fa836ba99
Refactor IField to prepare for its migration to java
...
Actions:
- remove unsused methods
- change signatures of methods to make the transition to properties easier
- rename an extra reference of a property from one of the subclasses of IField which would clash with some class methods
during migration
2022-05-13 10:24:26 -05:00
oyeraghib
21d8a142ee
[Kotlin Cleanup] ReminderServiceTest
2022-05-13 10:18:40 -05:00
dorrin-sot
9101795b3c
Fix AutoFocus EditText Preferences Back/Return Button Bug
2022-05-13 10:17:55 -05:00
lukstbit
6306a0aec6
Fix ModelBrowser leaking its ModelBrowserContextMenu reference
...
To solve the leak and decouple the two classes, this PR also:
- refactors the ModelBrowserContextMenu class to remove it's reference to the activity
- fixes a @KotlinCleanup for the method where the leak occurs
2022-05-13 10:16:10 -05:00
David Allison
2704fcb866
feat(scoped-storage): complete migrateEssentialFiles ( #11049 )
...
* feat(scoped-storage): implement migrateEssentialFiles
Handles selection of the correct directory, and handling deletion
if an issue occurred with the copy
Co-authored-by: Arthur Milchior <arthur@milchior.fr>
2022-05-13 10:03:37 -05:00
David Allison
fa15aeb759
fix: invalid sourceSets for Android Chipmunk
...
Due to https://issuetracker.google.com/issues/37001185 we were defining
`manifest.srcFile` for `debug` instead of for `test`. This is
because manifest merging previously occurred only with build variants
Was required for robolectric. Apparently fixed in AGP 0.13.0:
https://issuetracker.google.com/issues/37001185
It seems we can manifest merge based on 'test' and 'androidTest',
so remove the `debug` sourceSet.
This caused a bug on Android Chipmunk, as we included 'test' in the
'main' source set due to a change in how sourceSets were processed
Fixes 11291
Main comments: https://issuetracker.google.com/issues/232007221
https://issuetracker.google.com/issues/220326930
Originally added in ee463c2a3e
2022-05-12 11:36:03 -05:00
Nishant
6957e562fc
Bumped API version due to kotlin visibility change on package protected
2022-05-12 09:21:07 -05:00
Nishant
f5c8c5ebb7
Migrate BasicModel to Kotlin
2022-05-12 09:21:07 -05:00
Nishant
e87ddac85e
Rename .java to .kt
2022-05-12 09:21:07 -05:00