lukstbit
bf3595f2a4
Fix Parcelable.Creator implementation for FieldEditText
2022-04-30 12:19:50 -05:00
oyeraghib
29500639c7
[Kotlin Cleanup] IntentHandlerTest
2022-04-30 12:12:56 -05:00
oyeraghib
c3516d6ead
[Kotlin Cleanup] FragmentFactoryUtilsTest
2022-04-30 11:43:16 -05:00
oyeraghib
15abefa660
[Kotlin Cleanup] ResourceLoader
2022-04-30 11:42:53 -05:00
oyeraghib
6e67bc23cc
[Kotlin Cleanup] FileUtilTest
2022-04-30 11:42:26 -05:00
oyeraghib
9ac5362c01
[Kotlin Cleanup] DeckNameComparatorTest
2022-04-30 11:41:25 -05:00
David Allison
ce8df179bd
feat: Double tap FAB to add node
...
Fixes 11084
2022-04-29 16:50:11 -05:00
David Allison
b008a2274d
refactor: add Context
to FAB constructor
...
Allows for testing and splits out the context from the DeckPicker
2022-04-29 16:50:11 -05:00
lukstbit
ae0a133376
Migrate FieldEditLine.java to Kotlin
2022-04-29 16:34:00 -05:00
lukstbit
a45903c1be
Rename FieldEditLine.java to .kt
2022-04-29 16:34:00 -05:00
Prince kushwaha
db8bd332cf
Migrate TextCardExporterTest.java to Kotlin
2022-04-29 16:26:20 -05:00
Prince kushwaha
2cb6d216c8
Rename TextCardExporterTest.java to TextCardExporterTest.kt
2022-04-29 16:26:20 -05:00
Brayan Oliveira
ae545cf1f5
refactor: Convert CustomTabActivityHelperTest to Kotlin
...
com.ichi2.compat.customtabs.CustomTabActivityHelperTest
2022-04-29 16:07:58 -05:00
Brayan Oliveira
01bb91f3bb
refactor: Rename CustomTabActivityHelperTest.java to .kt
...
com.ichi2.compat.customtabs.CustomTabActivityHelperTest
2022-04-29 16:07:58 -05:00
Brayan Oliveira
de000fcc5e
refactor: Convert DeckPickerImportTest to Kotlin
...
com.ichi2.anki.DeckPickerImportTest
2022-04-29 16:01:22 -05:00
Brayan Oliveira
3e0c07654c
refactor: Rename DeckPickerImportTest.java to .kt
...
com.ichi2.anki.DeckPickerImportTest
2022-04-29 16:01:22 -05:00
Brayan Oliveira
b6be3174af
refactor: Convert InfoTestNoOnCreate to Kotlin
...
com.ichi2.anki.InfoTestNoOnCreate
2022-04-29 15:30:09 -05:00
Brayan Oliveira
3e39387d52
refactor: Rename InfoTestNoOnCreate.java to .kt
...
com.ichi2.anki.InfoTestNoOnCreate
2022-04-29 15:30:09 -05:00
oyeraghib
62c82d62bc
[Kotlin Cleanup] CollectionUtilsTest
2022-04-29 15:22:58 -05:00
Jatin887
f13bd1fab5
[KotlinCleanup] AnkiDroidJsAPI.kt
2022-04-29 15:22:48 -05:00
oyeraghib
9e88bda35b
[Kotlin Cleanup] ExceptionUtilTest
2022-04-29 15:22:41 -05:00
Brayan Oliveira
4e183ec9b8
refactor: Convert PieChartTestParametersBuilder to Kotlin
...
com.wildplot.android.rendering.PieChartTestParametersBuilder
2022-04-29 15:22:32 -05:00
Brayan Oliveira
6b5c94bdae
refactor: Rename PieChartTestParametersBuilder.java to .kt
...
com.wildplot.android.rendering.PieChartTestParametersBuilder
2022-04-29 15:22:32 -05:00
Jatin887
1bb95cd905
[KotlinCleanup] OverviewStatsBuilder.kt
2022-04-29 15:15:46 -05:00
oyeraghib
06c2e548da
[Kotlin Cleanup] UniqueArrayListTest
2022-04-29 15:15:34 -05:00
oyeraghib
a1409d102e
[Kotlin Cleanup] OnRenderProcessGoneDelegateTest
2022-04-29 15:15:25 -05:00
puranjayK
7599d45299
Added test message explanations
2022-04-29 15:09:19 -05:00
lukstbit
d628f4fd8b
Migrate UndoTest.java to Kotlin
2022-04-29 14:34:45 -05:00
lukstbit
f67929b5f5
Rename UndoTest.java to .kt
2022-04-29 14:34:45 -05:00
DONG Tingzhen
b2883c03ef
Add support for hierarchy tag ( #10966 )
2022-04-29 13:56:20 -05:00
oyeraghib
b25c8484c9
[Kotlin Cleanup] TestCardTemplatePreviewer
2022-04-29 13:38:06 -05:00
oyeraghib
79aec75210
[Kotlin Cleanup] MapUtilTest
2022-04-29 13:31:26 -05:00
oyeraghib
95e63832cc
[Kotlin Cleanup] AssertHelperTest
2022-04-29 13:28:50 -05:00
oyeraghib
29f70b3bdb
[Kotlin Cleanup] BundleUtilsTest
2022-04-29 13:28:24 -05:00
oyeraghib
3daa0298ea
[Kotlin Cleanup] ContentResolverUtilTest
2022-04-29 13:28:11 -05:00
oyeraghib
0e038c2fd0
[Kotlin Cleanup] StringUtilTest
2022-04-29 13:27:51 -05:00
MacAndSwiss
455af336df
Manual migration of CardBrowserTest to Kotlin
2022-04-29 13:22:36 -05:00
MacAndSwiss
d6ae12c4db
Manual renaming of CardBrowserTest.java to Kotlin
2022-04-29 13:22:36 -05:00
Propo41
cd5b13ec55
added test coverage for the login method of MyAccount.kt
without server side mocking
2022-04-29 13:01:28 -05:00
Brayan Oliveira
72c44b229d
refactor: Convert DiffEngineTest to Kotlin
...
com.ichi2.anki.utils.DiffEngineTest
2022-04-29 12:17:50 -05:00
Brayan Oliveira
15a4424dcb
refactor: Rename DiffEngineTest.java to .kt
...
com.ichi2.anki.utils.DiffEngineTest
2022-04-29 12:17:50 -05:00
lukstbit
36205b500c
Fix @KotlinCleanup for IFieldController
2022-04-29 12:08:49 -05:00
lukstbit
599c505751
Centralize all ACRA related code in CrashReportService ( #11109 )
2022-04-27 09:29:42 -05:00
Mike Hardy
b1a0974c91
Bumped version to 2.16alpha62
2022-04-27 00:21:46 +00:00
codingtosh
fbfc620072
refactor: Convert AbstractFlashcardViewerCommandTest.java to Kotlin
...
com.ichi2.anki.AbstractFlashcardViewerCommandTest
2022-04-26 16:41:36 -05:00
codingtosh
03d1ea520f
refactor: Rename AbstractFlashcardViewerCommandTest.java to .kt
...
com.ichi2.anki.AbstractFlashcardViewerCommandTest
2022-04-26 16:41:36 -05:00
lukstbit
f43d8e6482
Migrate CardContentProvider.java to Kotlin
2022-04-26 16:23:51 -05:00
lukstbit
ac2bef798b
Rename CardContentProvider.java to .kt
2022-04-26 16:23:51 -05:00
Brayan Oliveira
388bb20683
Use constants on timeoutAnswer
preference
2022-04-26 16:04:36 -05:00
Brayan Oliveira
9add96a1da
Use constants on gesturesCornerTouch
key
2022-04-26 16:04:36 -05:00
Brayan Oliveira
398eb19a76
Use constants on gestures
key
2022-04-26 16:04:36 -05:00
dorrin-sot
a7948a4e05
Fixed "CheckMedia" causing crash ( #10931 )
...
* Added read permission check to DeckPicker::mediaCheck()
* Replaced all individual storage permission checks with both storage permission checks
* Fixed Welcome Dialog showing for non-First-Time startup
* Added a boolean SharedPref `"welcomeDialogDismissed"` to check whether to show welcome dialog
2022-04-26 15:56:46 -05:00
David Allison
4580f3c695
refactor: simplify enabling toolbar
...
It was asked if it was possible to remove the !!s on supportActionBar
So now:
enableToolbar:
* returns the ActionBar which is created
* now throws if provided an invalid view
* Does not accept a `null` view
use the following code to work with a non-null bar:
```kotlin
enableToolbar().apply {
}
```
2022-04-26 15:44:18 -05:00
oyeraghib
2e748a6373
[Kotlin Cleanup] ExtendedFragmentFactoryTest.kt
2022-04-26 10:00:31 -05:00
dorrin-sot
4939304351
Made Focusable DeckOptions Preferences Auto-Focus ( #11087 )
...
* Made Focusable DeckOptions Preferences Auto-Focus
* Made Default AutoFocus behavior "Cursor at the end"
2022-04-26 09:41:08 -05:00
oyeraghib
611844a8d7
[Kotlin Cleanup] HtmlUtilsTest.kt
2022-04-26 09:25:22 -05:00
oyeraghib
b0abb84f67
[Kotlin Cleanup] MockTimeTest.kt
2022-04-26 09:18:42 -05:00
codingtosh
217430c44c
refactor: Convert CardTemplatePreviewerTest.java to Kotlin
...
com.ichi2.anki.CardTemplatePreviewerTest
2022-04-26 09:09:07 -05:00
codingtosh
7aff669c45
refactor: Rename CardTemplatePreviewerTest.java to .kt
...
com.ichi2.anki.CardTemplatePreviewerTest
2022-04-26 09:09:07 -05:00
Prince kushwaha
fc2efb7778
Migrate UtilsTest.java to Kotlin
2022-04-26 08:56:02 -05:00
Prince kushwaha
8f3ab0b691
Rename UtilsTest.java to UtilsTest.kt
2022-04-26 08:56:02 -05:00
Brayan Oliveira
1d9462e669
Use same transition direction of swipe on Add note
command
2022-04-26 08:42:39 -05:00
Brayan Oliveira
d6223f3d60
Use same transition direction of swipe on Card info
command
2022-04-26 08:42:39 -05:00
Brayan Oliveira
3d792cb0bd
Use same transition direction of swipe on Edit card
command
2022-04-26 08:42:39 -05:00
Brayan Oliveira
542c8888c7
Add method to get same animation direction of a swipe gesture
...
If gesture is a swipe, return a transition to the same direction of the swipe.
Else return FADE as the default animation
2022-04-26 08:42:39 -05:00
Brayan Oliveira
25837c4349
Add fromGesture param to executeCommand()
...
This allows to know which gesture triggered the command
2022-04-26 08:42:39 -05:00
Brayan Oliveira
ecacf3105f
Add DOWN animation transition
...
Inverse of the UP animation
2022-04-26 08:42:39 -05:00
Brayan Oliveira
ee27f6a459
Add RIGHT and LEFT animation transitions
...
Useful to explicitly use right or left transitions
2022-04-26 08:42:39 -05:00
Brayan Oliveira
479f5a920b
Rename Direction.DOWN to DEFAULT
...
The DOWN animation direction was using the default Android animation, which isn't guaranteed to come from down
2022-04-26 08:42:39 -05:00
lukstbit
31887d14bb
Migrate DeckTreeNode.java to Kotlin
2022-04-26 08:35:10 -05:00
lukstbit
7e929a3a41
Rename DeckTreeNode.java to .kt
2022-04-26 08:35:10 -05:00
Prince kushwaha
fa76516913
Migrate CardInfoModelTest.java to Kotlin
2022-04-26 08:26:13 -05:00
Prince kushwaha
c282792ec1
Rename CardInfoModelTest.java to CardInfoModelTest.kt
2022-04-26 08:26:13 -05:00
Jatin887
e668bb7b85
[KotlinCleanup] LoadPronunciationActivity.kt
2022-04-26 08:14:58 -05:00
AnkiDroid Translations
3dd5e0f6b8
Updated strings from Crowdin
2022-04-26 08:03:39 -05:00
Mike Hardy
88b60ef483
fix(build): assert that more than zero androidTests executed
...
Sometimes an emulator "runs" tests, but it actually discovered zero
tests, runs zero tests, and still reports success. Lookin' at you API21.
Fixes #11078
2022-04-25 22:25:52 -05:00
Mike Hardy
25473eeaff
fix(build): lint-rules project should use common best build practices
...
extract our best-practices build settings to project-level file, apply
to all sub-projects
Fixes #11083
2022-04-25 22:25:52 -05:00
Mike Hardy
45e7c19f8b
build(deps): lint-rules hamcrest use 2.2, extract hamcrest version
...
This is the recommended way to upgrade hamcrest from 1.x to 2.x when
using junit 4.x, see http://hamcrest.org/JavaHamcrest/distributables#gradle-upgrade-example
2022-04-25 22:25:52 -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
9de60878ba
build(deps): dependency updates 20220425
...
chore(deps): bump kotlin_version from 1.6.20 to 1.6.21 c275b35
chore(deps): bump mockito-inline from 4.4.0 to 4.5.0 0eee1e6
chore(deps): bump leakcanary-android from 2.7 to 2.9 (#10988 ) 72bede3
chore(deps): bump protobuf-java from 3.20.0 to 3.20.1 e79c835
chore(deps): bump leakcanary-android from 2.9 to 2.9.1 674c833
chore(deps): bump mockito-inline from 4.5.0 to 4.5.1 e790731
build(deps): kotlin stdlib deps are implicit now #10991
2022-04-25 11:07:21 -05:00
David Allison
f870ea277c
fix(strings): missing positional string args
...
Plurals missing positional string args were previously
not detected by either lint or AAPT2. A future PR will fix this
and the code needs to have no issues.
To fix: rename:
`reviewer_window_title_days` -> `reviewer_window_title_days_new`
`reviewer_window_title_hours` -> `reviewer_window_title_hours_new`
and fix the strings: `%d` -> `%1$d`
I renamed the strings as:
* This was easier to do in the IDE, rather than deleting them
* They'll be overwritten on the next translation sync
* and with less of a 'line change'
Issue 11072
Unblocks 11081 (adding the lint)
2022-04-25 07:21:26 -05:00
Yxx
d49ff89192
Kotlin Cleanup: AbstractFlashcardViewerTest.kt
...
Part of issue #10489
Update AbstractFlashcardViewerTest.kt
Fix a code style problem.
update`AbstractFlashcardViewerTest.kt`. Apply parameterized tests
update`AbstractFlashcardViewerTest.kt`. Clean the code style
Change the input parameter to tuple to improve the readability of the code
format the code style
fix code style
2022-04-24 15:18:57 -05:00
codingtosh
ced8ebb50b
refactor: Convert CompatV21.kt to Kotlin
...
com.ichi2.compat.CompatV21
2022-04-24 15:08:26 -05:00
codingtosh
d2e651887f
refactor: Rename CompatV21.java to .kt
...
com.ichi2.compat.CompatV21
2022-04-24 15:08:26 -05:00
Prince kushwaha
4c1c9390ca
Migrate AnkiDroidAppTest.java to Kotlin
2022-04-24 14:33:56 -05:00
Prince kushwaha
760ea174a0
Rename AnkiDroidAppTest.java to AnkiDroidAppTest.kt
2022-04-24 14:33:56 -05:00
Mani
e3c3359e6e
[JS API] Reschedule card with x days ( #11071 )
2022-04-24 13:26:15 -05:00
Mani
14b3ac814b
feat: get list of addons model from json containing array of addons data ( #11023 )
2022-04-24 11:09:43 -05:00
codingtosh
8ac9d06227
[Kotlin Migration] ThreadUtils
...
Package: com.ichi2.anki.testutil
2022-04-24 11:02:40 -05:00
codingtosh
d7022ecb97
Rename ThreadUtils.java to .kt
...
Package: com.ichi2.anki.testutil
2022-04-24 11:02:40 -05:00
codingtosh
e799c5b56a
[Kotlin Migration] InstrumentedTest
...
Package: com.ichi2.anki.tests
2022-04-24 10:55:37 -05:00
codingtosh
dce09cdfc5
Rename InstrumentedTest.java to .kt
...
Package: com.ichi2.anki.tests
2022-04-24 10:55:37 -05:00
codingtosh
fabb8d76aa
[Kotlin Migration] DatabaseUtils
...
Package: com.ichi2.anki.testutil
2022-04-24 10:49:18 -05:00
codingtosh
299e51b71c
Rename DatabaseUtils.java to .kt
...
Package: com.ichi2.anki.testutil
2022-04-24 10:49:18 -05:00
Brayan Oliveira
65bad3506c
Convert ReviewerTest.kt to Kotlin
2022-04-24 10:40:23 -05:00
Brayan Oliveira
7aedbe8b90
Rename ReviewerTest.java to .kt
2022-04-24 10:40:23 -05:00
David Allison
625bb0ee38
feat(scoped-storage): let dialog execute migration
2022-04-24 10:24:26 -05:00
David Allison
bec3b346f1
fix: Don't apply strings lint to non-strings file
...
DuplicateCrowdInStrings applies to only the /values/ folder
But there are other files in the values folder aside from translatable
strings (resources, constants, etc...)
As lint does not currently have a good way to exclude files from linting
So instead we use `tools:ignore` to do this
2022-04-24 10:18:11 -05:00
Prince kushwaha
840c49ec9c
Migrate MathJaxClozeTest.java to Kotlin
2022-04-24 10:11:22 -05:00
Prince kushwaha
28a7869425
Rename MathJaxClozeTest.java to MathJaxClozeTest.kt
2022-04-24 10:11:22 -05:00
oyeraghib
261ac795eb
Migrate JSONArrayTest to Kotlin
2022-04-24 10:05:05 -05:00
oyeraghib
c9a489c75a
Rename .java to .kt
2022-04-24 10:05:05 -05:00
Prince kushwaha
1343029502
Migrate ClozeTest.java to Kotlin
2022-04-24 09:58:52 -05:00
Prince kushwaha
0611d7233e
Rename ClozeTest.java to ClozeTest.kt
2022-04-24 09:58:52 -05:00
codingtosh
9b946fd59f
[Kotlin Migration] TestEnvironment
...
Package: com.ichi2.anki.testutil
2022-04-24 09:52:06 -05:00
codingtosh
dae5fea9e7
Rename TestEnvironment.java to .kt
...
Package: com.ichi2.anki.testutil
2022-04-24 09:52:06 -05:00
codingtosh
308e87721f
[Kotlin Migration] MockReviewerUi
...
Package: com.ichi2.anki.testutil
2022-04-24 09:45:16 -05:00
codingtosh
1347353ad1
Rename MockReviewerUi.java to .kt
...
Package: com.ichi2.anki.testutil
2022-04-24 09:45:16 -05:00
Abhiram
9af6a09696
Added Unit Tests for ``StepsPreference.kt
`` ( #11058 )
2022-04-24 09:36:00 -05:00
David Allison
253d72d43d
kotlin migration: Enable ANDROID_TEST migration
...
Tested and this works
2022-04-24 09:30:11 -05:00
Sustech-yx
09e46e1c37
add the explaination for the addition test
2022-04-24 09:27:31 -05:00
oyeraghib
88670c3d75
Migrate DBTest to Kotlin
2022-04-23 22:00:34 -05:00
oyeraghib
8770a5f415
Rename .java to .kt
2022-04-23 22:00:34 -05:00
David Allison
88d71bf32d
refactor: Convert ImageField.kt to Kotlin
...
com.ichi2.anki.multimediacard.fields.ImageField
2022-04-23 21:52:53 -05:00
David Allison
297d4e7a35
refactor: Rename ImageField.java to .kt
...
com.ichi2.anki.multimediacard.fields.ImageField
2022-04-23 21:52:53 -05:00
oyeraghib
81aba92430
Migrate MockTimeTest to Kotlin
2022-04-23 21:46:36 -05:00
oyeraghib
6d3e9c87ca
Rename .java to .kt
2022-04-23 21:46:36 -05:00
Prince kushwaha
5e415b1c3b
Migrate MetaTest.java to Kotlin
2022-04-23 21:38:49 -05:00
Prince kushwaha
c793a07ca4
Rename MetaTest.java to MetaTest.kt
2022-04-23 21:38:49 -05:00
lukstbit
ae858117f4
Migrate CompatV26.java to Kotlin
2022-04-23 21:31:19 -05:00
lukstbit
67e9fbec9b
Rename CompatV26.java to .kt
2022-04-23 21:31:19 -05:00
oyeraghib
5c753d3e27
Migrate ExtendedFragmentFactoryTest to Kotlin
2022-04-23 21:24:34 -05:00
oyeraghib
c9abd994fa
Rename .java to .kt
2022-04-23 21:24:34 -05:00
oyeraghib
c679a1e29a
Migrate UniqueArrayListTest to Kotlin
2022-04-23 21:17:48 -05:00
oyeraghib
bce758de2f
Rename .java to .kt
2022-04-23 21:17:48 -05:00
oyeraghib
a33ae50658
Migrate ResourceLoader to Kotlin
2022-04-23 21:10:52 -05:00
oyeraghib
ad55227823
Rename .java to .kt
2022-04-23 21:10:52 -05:00
Brayan Oliveira
6e664ce683
Convert ImportUtilsTest.kt to Kotlin
...
com.ichi2.utils.ImportUtilsTest
2022-04-23 21:04:22 -05:00
Brayan Oliveira
207a394dcb
Rename ImportUtilsTest.java to .kt
...
com.ichi2.utils.ImportUtilsTest
2022-04-23 21:04:22 -05:00
Allison Bickford
c23e9d31d8
[Kotlin Cleanup] Statistics.kt ( #10943 )
2022-04-23 20:56:10 -05:00
Brayan Oliveira
3a554dc9cf
Convert AudioPlayerTest.kt to Kotlin
...
com.ichi2.anki.multimediacard.AudioPlayerTest
2022-04-23 20:41:55 -05:00
Brayan Oliveira
543b46dc04
Rename AudioPlayerTest.java to .kt
...
com.ichi2.anki.multimediacard.AudioPlayerTest
2022-04-23 20:41:55 -05:00
Brayan Oliveira
e8202fbc9a
Convert BeolingusParserTest.kt to Kotlin
...
com.ichi2.anki.multimediacard.beolingus.parsing.BeolingusParserTest
2022-04-23 20:35:20 -05:00
Brayan Oliveira
3b79f705da
Rename BeolingusParserTest.java to .kt
...
com.ichi2.anki.multimediacard.beolingus.parsing.BeolingusParserTest
2022-04-23 20:35:20 -05:00
Prince kushwaha
8204861dc4
Migrate MediaTest.java to Kotlin
2022-04-23 20:27:43 -05:00
Prince kushwaha
35f10a3f86
Rename MediaTest.java to MediaTest.kt
2022-04-23 20:27:43 -05:00
Brayan Oliveira
308e0368da
Convert ReviewerNoParamTest.kt to Kotlin
...
com.ichi2.anki.ReviewerNoParamTest
2022-04-23 20:20:13 -05:00
Brayan Oliveira
655b81c7d9
Rename ReviewerNoParamTest.java to .kt
...
com.ichi2.anki.ReviewerNoParamTest
2022-04-23 20:20:13 -05:00
Brayan Oliveira
8abfdd2388
Convert LanguageUtilsTest.kt to Kotlin
...
com.ichi2.utils.LanguageUtilsTest
2022-04-23 20:10:37 -05:00
Brayan Oliveira
852f03341a
Rename LanguageUtilsTest.java to .kt
...
com.ichi2.utils.LanguageUtilsTest
2022-04-23 20:10:37 -05:00
oyeraghib
21bb0e4dfb
Migrate MaxExecFunctionTest to Kotlin
2022-04-23 16:44:08 -05:00
oyeraghib
5d83eff382
Rename .java to .kt
2022-04-23 16:44:08 -05:00
oyeraghib
baab194362
Migrate NamedJSONComparatorTest to Kotlin
2022-04-23 16:27:12 -05:00
oyeraghib
dda860a7a0
Rename .java to .kt
2022-04-23 16:27:12 -05:00
oyeraghib
517611d6e9
Migrate DeckNameComparatorTest to Kotlin
2022-04-23 16:19:53 -05:00
oyeraghib
17a377d80a
Rename .java to .kt
2022-04-23 16:19:53 -05:00
oyeraghib
c1b7382e1f
Migrate ContentResolverUtilTest to Kotlin
2022-04-23 16:10:50 -05:00
oyeraghib
a87a8149aa
Rename .java to .kt
2022-04-23 16:10:50 -05:00
oyeraghib
e27f080ba1
Migrate CollectionUtilsTest to Kotlin
2022-04-23 16:04:27 -05:00
oyeraghib
ed9710728b
Rename .java to .kt
2022-04-23 16:04:27 -05:00
oyeraghib
b992cd6402
Migrate AssetHelperTest to Kotlin
2022-04-23 14:45:00 -05:00
oyeraghib
16a6e17551
Rename .java to .kt
2022-04-23 14:45:00 -05:00
David Allison
419ca855fa
refactor: prepare CollectionUtils for removal
...
There is a unit test conversion PR in flight right now,
so I didn't delete the class just yet.
2022-04-23 14:29:23 -05:00
David Allison
2637239433
refactor: Convert CollectionTask to Kotlin
...
com.ichi2.async.CollectionTask
Made a lot of lint related changes, a fair number of nullability related changes
2022-04-22 15:01:34 -05:00
David Allison
0627af2586
refactor: Rename CollectionTask.java to .kt
...
com.ichi2.async.CollectionTask
2022-04-22 15:01:34 -05:00
lukstbit
d13e76b1ae
Move code related to LeakCanary outside of AnkiDroidApp
2022-04-22 10:31:04 -05:00
codingtosh
57958d2632
[Kotlin Migration] Compat
...
Package: com.ichi2.compat
2022-04-22 08:48:41 -05:00
codingtosh
496b7cb902
Rename Compat.java to .kt
...
Package: com.ichi2.compat
2022-04-22 08:48:41 -05:00
lukstbit
24acccfb7a
Migrate BeolingusParser.java to Kotlin
2022-04-22 08:41:21 -05:00
lukstbit
63ba47c832
Rename BeolingusParser.java to .kt
2022-04-22 08:41:21 -05:00
lukstbit
4e48a6fd48
Enable @KotlinCleanup for local variables
2022-04-22 08:40:42 -05:00
Mike Hardy
5b27ab0b48
fix: forward-port to non-deprecated gradle properties
2022-04-21 18:44:04 +05:30
lukstbit
86ab90a815
Migrate DeckComparator.java to Kotlin
2022-04-20 11:42:39 +01:00
lukstbit
5fbffa8111
Rename DeckComparator.java to .kt
2022-04-20 11:42:39 +01:00
Mike Hardy
9447dac2d1
Bumped version to 2.16alpha61
2022-04-20 02:45:57 +00:00
David Allison
c8fc118c70
refactor: ImportDialogListener nullability
...
both should take non-null paths:
importAdd
importReplace
2022-04-19 21:44:51 -05:00
David Allison
ef8678bb4d
refactor: MediaCheckDialogListener nullability
2022-04-19 21:44:51 -05:00
David Allison
8323c5d587
refactor: convert InMemorySQLiteOpenHelperFactory to Kotlin
...
com.ichi2.utils.InMemorySQLiteOpenHelperFactory
2022-04-19 21:34:42 -05:00
David Allison
7b83ca3f77
refactor: Rename InMemorySQLiteOpenHelperFactory.java to .kt
...
com.ichi2.utils.InMemorySQLiteOpenHelperFactory
2022-04-19 21:34:42 -05:00
David Allison
e738028ea1
refactor: convert FragmentFactoryUtilsTest to Kotlin
...
com.ichi2.utils.FragmentFactoryUtilsTest
2022-04-19 21:23:22 -05:00
David Allison
999236492a
refactor: Rename FragmentFactoryUtilsTest.java to .kt
...
com.ichi2.utils.FragmentFactoryUtilsTest
2022-04-19 21:23:22 -05:00
Brayan Oliveira
5c06f6eb70
Implement Add note
gesture
2022-04-19 20:04:46 -05:00
David Allison
4248d9d0db
refactor: convert FileUtilTest to Kotlin
...
com.ichi2.utils.FileUtilTest
2022-04-19 19:54:48 -05:00
David Allison
911c3bb104
refactor: Rename FileUtilTest.java to .kt
...
com.ichi2.utils.FileUtilTest
2022-04-19 19:54:48 -05:00
David Allison
3d28ce0cb6
refactor: convert ExceptionUtilTest to Kotlin
...
com.ichi2.utils.ExceptionUtilTest
2022-04-19 19:44:58 -05:00
David Allison
3733367a07
refactor: Rename ExceptionUtilTest.java to .kt
...
com.ichi2.utils.ExceptionUtilTest
2022-04-19 19:44:58 -05:00
David Allison
365c0bcd13
refactor: remove ArrayUtil[Test]
...
not needed in Kotlin
replaced with arrayListOf
com.ichi2.utils.ArrayUtil
com.ichi2.utils.ArrayUtilTest
2022-04-19 19:36:59 -05:00
MacAndSwiss
89ca8fd9bb
[Kotlin Cleanup] CardTemplateBrowserAppearanceEditor.kt
2022-04-19 19:29:56 -05:00
David Allison
d9e026d200
refactor: Convert MockCursor to Kotlin
...
com.ichi2.testutils.MockCursor
2022-04-19 19:20:50 -05:00
David Allison
3e04ace867
refactor: Rename MockCursor.java to .kt
...
com.ichi2.testutils.MockCursor
2022-04-19 19:20:50 -05:00
David Allison
623ad75e4e
refactor: Convert CollectionUtils to Kotlin
...
com.ichi2.testutils.CollectionUtils
2022-04-19 18:43:22 -05:00
David Allison
7b767b2925
refactor: Rename CollectionUtils.java to .kt
...
com.ichi2.testutils.CollectionUtils
2022-04-19 18:43:22 -05:00
David Allison
fb42542a88
refactor: Convert BackendEmulatingOpenConflict to Kotlin
...
com.ichi2.testutils.BackendEmulatingOpenConflict
2022-04-19 18:35:21 -05:00
David Allison
e95872a26d
refactor: Rename BackendEmulatingOpenConflict.java to .kt
...
com.ichi2.testutils.BackendEmulatingOpenConflict
2022-04-19 18:35:21 -05:00
David Allison
14eb4d5506
refactor: Add 'UnsafeTaskDelegate'
...
A few TaskDelegates allow a 'null' collection, this allows them to
handle corruption.
* Use `UnsafeTaskDelegate` to allow a null collection in the type system
* Remove overrides of `requiresOpenCollection`
* Handle this in the base class
2022-04-19 18:28:13 -05:00
David Allison
2f85b24074
refactor: Split out 'TaskDelegateBase'
...
In preparation for Kotlin Migration of CollectionTask
A few TaskDelegates allow a 'null' collection, this allows them to
handle corruption.
But in Kotlin, the parameter was always `NonNull`
This splits out TaskDelegate into:
* TaskDelegateBase - what TaskDelegate was
* `task()` is renamed to `execTask()`
* `execTask` accepts a Collection?
Move all task executions to use `TaskDelegateBase`
in preparation for `UnsafeTaskDelegate`
2022-04-19 18:28:13 -05:00
Divyansh Kushwaha
e28126d018
Improved Preferences instantiation ( #10897 )
2022-04-19 18:17:46 -05:00
codingtosh
48ed10d635
[Kotlin Pre-Migration] Compat ( #10193 )
...
Add Nullable/NonNull annotations to the methods in Compat.java
and their implementations, instead of relying on
the Compiler's nullity inference during kotlin auto-conversion.
see: https://github.com/ankidroid/Anki-Android/pull/10193
2022-04-19 18:06:37 -05:00
Prince kushwaha
56ea8ec975
Migrate PreviewerTest.java to Kotlin
2022-04-19 17:57:40 -05:00
Prince kushwaha
517e64cb38
Rename PreviewerTest.java to PreviewerTest.kt
2022-04-19 17:57:40 -05:00
lukstbit
488beeb8df
Migrate CustomTabsHelper.java to Kotlin
2022-04-19 17:48:26 -05:00
lukstbit
83dfb72f6b
Rename CustomTabsHelper.java to .kt
2022-04-19 17:48:26 -05:00
dorrin-sot
a84a76eafb
Fixed "don't keep activities" crash on HelpDialog ( #10964 )
...
* Fixed "don't keep activities" crash on HelpDialog
2022-04-19 22:24:57 +01:00
UVrajSB
939a3de91b
changing the variable name from Object to testObject
2022-04-19 12:43:35 -05:00
lukstbit
74118bd0a1
Migrate ServiceConnection.java to Kotlin
2022-04-19 11:53:50 -05:00
lukstbit
cee8c92b24
Rename ServiceConnection.java to .kt
2022-04-19 11:53:50 -05:00
lukstbit
b108df8ebf
Migrate CustomTabsFallback.java to Kotlin
2022-04-19 11:46:47 -05:00
lukstbit
cd1f7dab08
Rename CustomTabsFallback.java to .kt
2022-04-19 11:46:47 -05:00
David Allison
0f943442c3
refactor: Convert RtlCompliantActionProviderTest to Kotlin
...
com.ichi2.ui.RtlCompliantActionProviderTest
2022-04-19 11:39:47 -05:00
David Allison
0c2ddef324
refactor: Rename RtlCompliantActionProviderTest.java to .kt
...
com.ichi2.ui.RtlCompliantActionProviderTest
2022-04-19 11:39:47 -05:00