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

861 Commits

Author SHA1 Message Date
Mike Hardy
6630ff411d Bumped version to 2.19beta1 2024-08-23 21:18:32 +00:00
Mike Hardy
54c8d458fb release: switch 2.19 to beta version series, beta play store track 2024-08-23 18:14:18 +00:00
Mike Hardy
f720ae030b Bumped version to 2.19alpha12 2024-08-21 18:54:12 +00:00
Mike Hardy
1e1e46d7e2 Bumped version to 2.19alpha11 2024-08-17 01:47:07 +00:00
SanjaySargam
292d662d0b note-editor: drop files
This commit ensures that we can drop files (photos, videos, and audio) in NoteEditor (FixedEditText).

Fix: Handle minSdkVersion conflict with DropHelper and enable file drop in NoteEditor
Added DropHelperCompat to handle the incompatibility issue with DropHelper and minSdkVersion 23. The manifest merger failed with the following error:

> Manifest merger failed: uses-sdk:minSdkVersion 23 cannot be smaller than version 24 declared in library [androidx.draganddrop:draganddrop:1.0.0] /Users/davidallison/.gradle/cache> s/8.8/transforms/0a1688833d368c1b9b07d2054911030e/transformed/draganddrop-1.0.0/AndroidManifest.xml as the library might be using APIs not available in 23
> Suggestion: use a compatible library with a minSdk of at most 23,
>     or increase this project's minSdk version to at least 24,
>     or use tools:overrideLibrary="androidx.draganddrop" to force usage
>     (may lead to runtime failures)

To resolve this, the DropHelperCompat class is used to conditionally configure the view for drag and drop operations only when the SDK version is 24 or higher.
2024-08-15 18:49:35 +00:00
Ashish Yadav
7d82d127ca enhacement: add Audio and Video multimedia options
* refactor: viewModel to use generic media terms and livedata
* refactor: use reselect string instead of restart
* refactor: extract MenuProvider class
* refactor: show multimedia bottomsheet in case result is cancelled
2024-07-31 14:54:09 +00:00
Mike Hardy
4afa7ec41e Bumped version to 2.19alpha10 2024-07-19 11:19:21 +00:00
lukstbit
8c352ec3de Remove "app.brant.amazonappstorepublisher" plugin
The plugin hasn't been updated for quite some time and it currently
breaks the build and apk publishing. This PR removes it along its
configuration and any additional setup code.

The plugin was already removed from the publishing process as it
didn't work anymore. See https://github.com/ankidroid/Anki-Android/issues/14161
2024-07-19 06:18:30 -05:00
Mike Hardy
703e6487ae
release: manual bump to 2.19alpha9
required me to build release with production signing key locally
for upload vs on CI so I could manually work through foreground
service justification process on Play Console
2024-07-13 17:31:02 -06:00
Mike Hardy
a9fd2c5cca Bumped version to 2.19alpha8 2024-06-27 21:45:10 +00:00
Voczi
a4f0d8f511 Implement release mode instrumentation with better proguard rules 2024-06-26 15:58:07 +00:00
Mike Hardy
4aecb2a246 Bumped version to 2.19alpha7 2024-06-25 12:09:20 +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
Voczi
1456d77dc3 Switch from hardcoded signing config 2024-06-24 12:28:04 +00:00
Mike Hardy
d2ddaaf122 Bumped version to 2.19alpha6 2024-06-20 15:38:31 +00:00
Voczi
87b4ec91bb Exclude robolectric deps from release 2024-06-20 14:48:39 +00:00
Mike Hardy
5a13cfba50 Bumped version to 2.19alpha5 2024-06-19 17:00:57 +00:00
abdelrahmanesam
dcb10769b1 extract magic numbers to version catalog 2024-06-16 08:21:52 +00:00
David Allison
eed9ca8b4d build: create 'common' module
* Defined as 'Android Library'
* Replaced junit reference with vintage engine
 * to match project
* Removed example unit tests
2024-06-07 20:23:17 +00:00
Mike Hardy
a2a109caa8 Bumped version to 2.19alpha4 2024-06-02 02:52:20 +00:00
David Allison
ee1dcd8571 test(card-browser-view-model): selected rows
This also introduces Turbine, a Google-recommended library for testing flows

https://github.com/cashapp/turbine

https://developer.android.com/kotlin/flow/test

Accessed 2024-05-27
2024-06-01 23:19:36 +00:00
Mike Hardy
77b02ec1b0 Bumped version to 2.19alpha3 2024-05-27 12:37:25 +00:00
Mike Hardy
6bcf93dca0 Bumped version to 2.19alpha2 2024-05-25 00:30:43 +00:00
Mike Hardy
a6f01fd2b6
release: version should already be 2.19alpha1
not sure how things got out of sync, but 2.19alpha1 is already
up on google play store, so need to bump this to be in sync
2024-05-24 19:27:33 -05: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
Mike Hardy
d4d48b920c
build: prepare main for 2.19 development alpha series 2024-05-14 08:56:58 -05: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
Mike Hardy
dc5348852b Bumped version to 2.18beta2 2024-05-02 19:38:24 +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
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
Brayan Oliveira
f502ddb852
feat: show that media is running in-app (#16127)
* test: remove RobolectricTestAnnotationTest

We're going to introduce WorkManagerTestInitHelper and it's
outlived its usefulness

Change to a check on `setUp`

* feat: show that media is running in-app

useful if the user has notifications disabled

* fix: sync badges

---------

Co-authored-by: David Allison <62114487+david-allison@users.noreply.github.com>
2024-04-21 14:19:43 +01:00
Mike Hardy
7da94c1238 Bumped version to 2.18alpha9 2024-04-18 03:37:08 +00:00
Nandu
0ea6a709ef refactor: ankidroidBackend to ankiBackend 2024-04-03 08:10:38 +00:00
David Allison
cb5903b8aa fix: BACKEND_VERSION build field
previously: `provider(?)`
now: `0.1.36-anki24.04`

----

Cause: bb0c4a85bf
PR: 15966

----

Fixes 16079
2024-04-03 04:40:32 +00:00
Mike Hardy
6fc26947fd Bumped version to 2.18alpha8 2024-04-03 00:39:16 +00:00
Mike Hardy
1c5a6b3c22 Bumped version to 2.18alpha7 2024-03-30 00:07:17 +00:00
AbdelrahmanEsam
bb0c4a85bf
Migrate version catalog (#15966)
* version catalog conflict
 solve

* implementing version catalog for stable versioning between modules

* implementing version catalog for stable versioning between modules

---------

Co-authored-by: abdelrahmanesam <abdelrahmanesam>
2024-03-27 00:53:28 +00:00
Brayan Oliveira
d227711a4c feat: sync media in the background
I'm using WorkManager as the persistent job solution for the issue since it was more versatile and backwards compatible than the other option that Android proposes for data sync, that is [user initiated data jobs](https://developer.android.com/about/versions/14/changes/user-initiated-data-transfers)

Also, it has a variety of APIs for setting the work in different conditions, like internet connection and battery level, which are relevant to syncing

note: this doesn't handle the previous MediaSyncListener call that resumed the scoped storage migration process, since the migration apparatus should be removed relatively soon and therefore it isn't worth my time (nor anyone's else IMO)

So, if this is deemed as necessary for merging, consider this as `Needs a new dev` or wait for the migration code to be removed.
2024-03-19 08:50:52 +00:00
Mike Hardy
d80b76744d Bumped version to 2.18alpha6 2024-03-14 02:37:09 +00:00
Mike Hardy
d27c999e56 Bumped version to 2.18alpha5 2024-03-06 03:38:18 +00:00
Mike Hardy
a5e9c2b0a9 fix: Play store already has 2.18alpha4, bump version
as part of the release pipeline failure previously, the build version
commit did not land on main, so our version in source on main is stale
vs the version already out in alpha channel, causing all releases to fail
as the version has been used
2024-03-05 03:37:44 +00:00
Mike Hardy
726a14c12e Bumped version to 2.18alpha3 2024-03-01 18:07:30 +00:00
David Allison
30a4e5824a docs: pre-commit hook 2024-02-29 13:04:25 +00:00
Mike Hardy
0ab90ba8c1 Bumped version to 2.18alpha2 2024-02-25 23:27:28 +00:00
Mike Hardy
40f3b11a1d Bumped version to 2.18alpha1 2024-02-23 17:46:58 +00:00
Mike Hardy
4c489a9665
build: prepare main branch for 2.18 alpha series 2024-02-23 12:39:45 -05:00
Mike Hardy
c17fed63b9 Bumped version to 2.17beta6 2024-02-20 16:50:06 +00:00
Mike Hardy
38cc8e4c1b
Dependency updates 20240220 (#15604)
* chore(deps): bump androidx.test.uiautomator:uiautomator

Bumps androidx.test.uiautomator:uiautomator from 2.3.0-beta01 to 2.3.0-rc01.

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

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

* chore(deps): bump androidx.webkit:webkit from 1.9.0 to 1.10.0

Bumps androidx.webkit:webkit from 1.9.0 to 1.10.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>

* chore(deps): bump org.jetbrains.kotlinx:kotlinx-coroutines-test

Bumps [org.jetbrains.kotlinx:kotlinx-coroutines-test](https://github.com/Kotlin/kotlinx.coroutines) from 1.7.3 to 1.8.0.
- [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.7.3...1.8.0)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlinx:kotlinx-coroutines-test
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* chore(deps-dev): bump @typescript-eslint/parser in /tools/localization

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.21.0 to 7.0.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.0.1/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

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

* chore(deps): bump com.google.protobuf:protobuf-kotlin-lite

Bumps com.google.protobuf:protobuf-kotlin-lite from 3.25.2 to 3.25.3.

---
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>

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

Bumps [org.jetbrains.kotlinx:kotlinx-serialization-json](https://github.com/Kotlin/kotlinx.serialization) from 1.6.2 to 1.6.3.
- [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.6.2...v1.6.3)

---
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>

* chore(deps): bump com.github.ByteHamster:SearchPreference

Bumps [com.github.ByteHamster:SearchPreference](https://github.com/ByteHamster/SearchPreference) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/ByteHamster/SearchPreference/releases)
- [Commits](https://github.com/ByteHamster/SearchPreference/compare/v2.5.0...v2.5.1)

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

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

* chore(deps): bump org.apache.commons:commons-compress

Bumps org.apache.commons:commons-compress from 1.25.0 to 1.26.0.

---
updated-dependencies:
- dependency-name: org.apache.commons:commons-compress
  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-02-20 11:19:52 -05:00
Mike Hardy
a06d445bfc Bumped version to 2.17beta5 2024-02-18 03:33:42 +00:00