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

19543 Commits

Author SHA1 Message Date
Brayan Oliveira
666c8ae135 feat(new reviewer): next times 2024-06-29 10:45:56 +00:00
Brayan Oliveira
0a90271cdb refactor: add a @LibAnkiAlias 2024-06-29 10:45:56 +00:00
Mike Hardy
a9fd2c5cca Bumped version to 2.19alpha8 2024-06-27 21:45:10 +00:00
Sachin Kumar Singh
1ad67a9ac9 No Flag Icon not showing on light theme, Fixed #16622 2024-06-27 20:29:10 +00:00
Mike Hardy
674d93b92a
Dependency updates 20240627 (#16666)
* build(deps): bump com.google.protobuf:protobuf-kotlin-lite

Bumps com.google.protobuf:protobuf-kotlin-lite from 4.27.1 to 4.27.2.

---
updated-dependencies:
- dependency-name: com.google.protobuf:protobuf-kotlin-lite
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* build(deps): bump org.jetbrains.kotlinx:kotlinx-serialization-json

Bumps [org.jetbrains.kotlinx:kotlinx-serialization-json](https://github.com/Kotlin/kotlinx.serialization) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/Kotlin/kotlinx.serialization/releases)
- [Changelog](https://github.com/Kotlin/kotlinx.serialization/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Kotlin/kotlinx.serialization/compare/v1.7.0...v1.7.1)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlinx:kotlinx-serialization-json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* build(deps): bump androidx.test:runner from 1.5.2 to 1.6.0

Bumps androidx.test:runner from 1.5.2 to 1.6.0.

---
updated-dependencies:
- dependency-name: androidx.test:runner
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* build(deps): bump com.github.triplet.play from 3.10.0 to 3.10.1

Bumps com.github.triplet.play from 3.10.0 to 3.10.1.

---
updated-dependencies:
- dependency-name: com.github.triplet.play
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* build(deps): bump androidx.test:runner from 1.6.0 to 1.6.1

Bumps androidx.test:runner from 1.6.0 to 1.6.1.

---
updated-dependencies:
- dependency-name: androidx.test:runner
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* build(deps): bump androidx.test.ext:junit from 1.1.5 to 1.2.1

Bumps androidx.test.ext:junit from 1.1.5 to 1.2.1.

---
updated-dependencies:
- dependency-name: androidx.test.ext:junit
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* build(deps): bump androidxTextCore from 1.5.0 to 1.6.1

Bumps `androidxTextCore` from 1.5.0 to 1.6.1.

Updates `androidx.test:rules` from 1.5.0 to 1.6.1

Updates `androidx.test:core` from 1.5.0 to 1.6.1

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

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

* build(deps): bump androidxFragmentKtx from 1.8.0 to 1.8.1

Bumps `androidxFragmentKtx` from 1.8.0 to 1.8.1.

Updates `androidx.fragment:fragment-ktx` from 1.8.0 to 1.8.1

Updates `androidx.fragment:fragment-testing` from 1.8.0 to 1.8.1

Updates `androidx.fragment:fragment-testing-manifest` from 1.8.0 to 1.8.1

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

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

* build(deps): bump espresso from 3.5.1 to 3.6.1

Bumps `espresso` from 3.5.1 to 3.6.1.

Updates `androidx.test.espresso:espresso-contrib` from 3.5.1 to 3.6.1

Updates `androidx.test.espresso:espresso-core` from 3.5.1 to 3.6.1

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

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-06-27 15:29:32 -05:00
lukstbit
d8831cf24a Fix adding a notetype when using the name of a standard notetype
This fixes a bug where the user couldn't add a notetype with the name
of one of the standard notetypes(even if it didn't existed), because
the code checked the new name against the existing notetypes names +
the standard notetypes names so it behaved like the name already
existed.

The change makes the code look only at the existing notetypes names.
2024-06-27 18:57:34 +00:00
AnkiDroid Translations
969c0e8f05 Updated strings from Crowdin 2024-06-27 18:52:36 +00:00
Brayan Oliveira
d20d8c3e42 feat(new reviewer): auto advance
This differs from the legacy reviewer in four things:

1. It implements `Show reminder` as an action (it is a tooltip in Anki, so I made it a snackbar here)
2. It doesn't follow the global switch in settings, as Anki desktop doesn't have one and users complained about finding the global setting unexpected
3. There is now a `Question action` setting
4. The legacy reviewer has an issue where the same configuration is carried through all cards in the review session. So if a card with a different deck config shows up, the config won't be respected. This is fixed in the new reviewer
2024-06-27 18:52:05 +00:00
Voczi
edd15ee8f8 Add support for custom certificate
(9e3a34f17f)
2024-06-27 17:55:17 +00:00
AnkiDroid Translations
b064f4965f Updated strings from Crowdin 2024-06-27 17:44:18 +00:00
David Allison
79b7a6e8bd tests: reduce log spam in ChangeManager
No point in logging a no-op in `@Before`

removes log: `D/ChangeManager: clearing 0 subscribers`
2024-06-27 16:56:38 +00:00
David Allison
d8633961b8 fix(tests): allow update to espresso 3.6.1
`ViewActions.closeSoftKeyboard` became `@CheckResult`

`androidx.test.espresso.Espresso.closeSoftKeyboard` is not

PR 16657
2024-06-27 16:50:52 +00:00
Voczi
a4f0d8f511 Implement release mode instrumentation with better proguard rules 2024-06-26 15:58:07 +00:00
Mike Hardy
9951decf36 test: bump jacoco to 0.8.12 2024-06-26 15:58:07 +00:00
Mike Hardy
584d5bb803 test(ci): do not pre-compress emulator logcat pre-upload
upload-artifact already compresses on upload, so this was an
ineffective double-compression from a space perspective, and worse
when you downloaded it you had to double-uncompress
2024-06-26 15:58:07 +00:00
Mike Hardy
9480c1f2b5 test(ci): remove "clearCaches" workflow feature
in practice it is currently unused
it was added originally because github offered no way to delete caches
cache management (including delete) is possible using github web ui now though,
and it is all I've used for months
2024-06-26 15:58:07 +00:00
Mike Hardy
4aecb2a246 Bumped version to 2.19alpha7 2024-06-25 12:09:20 +00:00
Voczi
bef936d118 Fix publish workflow after recent changes 2024-06-25 07:08:15 -05:00
Mike Hardy
b6c1fd314e test: fixup warning message when no coverage of type is found
doesn't look like string format works in logger.warn, use concat
2024-06-24 17:34:10 +00:00
Mike Hardy
b15994cad0 test: ensure non-zero coverage for androidTest reports
there are many toolchain incompatibilities which can result in a
false-positive androidTest test run, but with zero actual coverage
tallied

this adds a finalization task that scans the coverage report looking
for an aggregate coverage count that is non-zero
2024-06-24 12:35:54 +00:00
Mike Hardy
850c391d43 test: copy testlib common files into androidTest directly
we are unable to depend on them in androidTestImplementation terms
because android gradle plugin has a bug that breaks coverage with
a shared test/androidTest dep

we want the code to be truly shared though and just need to work around
the issue temporarily (we hope)

so a build-time copy seems the least-worst alternative
2024-06-24 12:35:54 +00:00
Mike Hardy
cf1b98d0a2 refactor(test): shift common testlib items into a 'common' package
this means they have their own separate directory with no collisions
in other modules that consume them
2024-06-24 12:35:54 +00:00
Voczi
1456d77dc3 Switch from hardcoded signing config 2024-06-24 12:28:04 +00:00
David Allison
07c4923407 improvement: re-add import qualifier
Removed in
301f0a152a

But 'Builder' is ambiguous
2024-06-23 15:01:13 +00:00
ShalenMathew
301f0a152a
Fix IDE Warning: Removing redundant qualifiers name (#16638) 2024-06-23 10:19:00 -03:00
Brayan Oliveira
8b196f6f68 feat(new reviewer): counts 2024-06-22 09:00:17 -03:00
snowtimeglass
16c23cf167 Rename "Cancel" of Media Sync to "Abort"
- in "Media Sync Log" dialog box and in "Syncing media" notification

 - The use of "Abort" in the dialog box is consistency with Anki Desktop.
2024-06-21 19:08:31 +00:00
Brayan Oliveira
a4f9f95ad2 refactor: handleNoteEditorResult and handleDeckOptionsResult 2024-06-21 17:35:10 +00:00
Brayan Oliveira
8ab378ca80 feat(new reviewer): flags 2024-06-21 17:35:10 +00:00
Brayan Oliveira
90a3a419a3 refactor: define flags ids statically
It is technically possible (although unlikely) to get an ID conflicts when using the ordinals as IDs.

Also, I think that `onMenuItemClick` is easier to follow this way.
2024-06-21 17:35:10 +00:00
Brayan Oliveira
700ee53e17 feat(new reviewer): undo and redo 2024-06-21 17:35:10 +00:00
Brayan Oliveira
e5a9652def feat(new reviewer): user action 2024-06-21 17:35:10 +00:00
Brayan Oliveira
6fc9a15a0b feat(new reviewer): suspend 2024-06-21 17:35:10 +00:00
Brayan Oliveira
c7734d57b3 feat(new reviewer): bury 2024-06-21 17:35:10 +00:00
Brayan Oliveira
8f4b1e72de refactor: updateCurrentCard()
to remove some of the indent
2024-06-21 17:35:10 +00:00
Brayan Oliveira
89c463121f feat(new reviewer): delete note 2024-06-21 17:35:10 +00:00
Brayan Oliveira
69a3c38b48 feat(new reviewer): mark 2024-06-21 17:35:10 +00:00
Brayan Oliveira
83d54fc8f8 feat(new reviewer): add and edit note 2024-06-21 17:35:10 +00:00
Brayan Oliveira
ff060ecd65 feat(new reviewer): deck options 2024-06-21 17:35:10 +00:00
Brayan Oliveira
4aec82486b feat(new reviewer): card info 2024-06-21 17:35:10 +00:00
Mike Hardy
d2ddaaf122 Bumped version to 2.19alpha6 2024-06-20 15:38:31 +00:00
AnkiDroid Translations
f1732d35c9 Updated strings from Crowdin 2024-06-20 15:07:13 +00:00
Voczi
87b4ec91bb Exclude robolectric deps from release 2024-06-20 14:48:39 +00:00
David Allison
bd296276fb improvement(rename-flag): remove 'ok/cancel'
* This made it more obvious that the 'tick' should be pressed
* Cancel didn't work as expected
* OK didn't perform saves

Prompted by
https://redirect.github.com/ankidroid/Anki-Android/pull/16244#issuecomment-2180497998

Related: 16205
2024-06-20 13:38:39 +00:00
lukstbit
11f7d5a7c5 Change source/kotlin compatibility in common module to Java 11 2024-06-20 13:23:24 +00:00
lukstbit
8a75195321 Add proguard rules for common module
The rules added are the ones used by the :AnkiDroid module.
2024-06-20 13:23:24 +00:00
David Allison
bf5b6d1746 refactor: 'browser'-related APIs
All non-functional, in preparation for moving
to the backend for rendering
2024-06-20 12:01:24 +00:00
David Allison
dac0c2d6f1 docs: removeNotes 2024-06-20 12:01:24 +00:00
David Allison
6c39ce2858 docs: Flag.setUserFlag 2024-06-20 12:01:24 +00:00
David Allison
3d33211823 chore: darkenColor util 2024-06-20 12:01:24 +00:00