Mike Hardy
2eeed6570e
build: bump compileSdkVersion to 33
2022-09-09 21:03:19 -03:00
David Allison
512c86eb8a
chore: remove redundant '@JvmField' annotations
...
We're no longer in Java, so only a few annotations are still necessary.
These are mostly test methods (`@Parameter/@Rule`),
This is a potentially flaky commit, hopefully the reduction in code causes a reduction in compile times
It did not modify the API project public classes
2022-09-09 13:16:30 -03:00
David Allison
3e07d87ff8
chore: remove redundant '@JvmStatic' annotations
...
We're no longer in Java, so only a few annotations are still necessary.
These are mostly test methods (`@Parameters/@MethodSource`),
a few which are useful for mocks, and a small number which cause tests
to fail if they're removed for no reasonable reason
This is a potentially flaky commit, hopefully the reduction in
code causes a reduction in compile times
This was a mostly automated process, adding comments manually
if removing the annotation failed tests
It did not modify the API project public classes
2022-09-06 08:21:31 -05:00
David Allison
ba3ba03e4a
chore: remove kotlinMigration-api.gradle
...
No longer necessary. API has been converted to Kotlin
2022-09-05 00:34:28 +02:00
David Allison
cbba9e3b6f
refactor!: Convert AddContentApi to Kotlin
...
com.ichi2.anki.api.AddContentApi
The conversion caused breaking changes WRT nullability of parameters
AND changing `fun` to `val`
This is NOT the final nullability which we desire, we perform the conversion
in a single commit to reduce the chance of bugs being introduced
Changes from a 'pure' conversion':
- addNotes:
- fieldsList: changed to List<Array<String>?>
- tagsList: changed to List<Set<String>?>?
- addNewCustomModel changed from auto conversion:
- fields: -> Array<String>
- cards -> Array<String>
- qfmt -> Array<String>
- afmt -> Array<String>
- splitFields(flds).length -> splitFields(flds).size
suppress lint for name shadowing:
- `var preferredName = preferredName`
add `!!`
- `val fname = File(returnUri!!.path).toString()`
- `val fname = File(returnUri!!.path!!).toString()`
remove `private`:
- `private get() = if (apiHostSpecVersion < 2) CompatV1() else CompatV2()`
- `get() = if (apiHostSpecVersion < 2) CompatV1() else CompatV2()`
remove imports:
- NoteInfo.Companion.buildFromCursor
- Utils.fieldChecksum
- Utils.joinFields
- Utils.joinTags
- Utils.splitFields
add imports: FlashCardsContract
- Card
- CardTemplate
- Deck
- Model
- Note
many spacing changes:
- sample: values.put(Note.TAGS, Utils.joinTags(tagsList[i]))
- moved back to a single line
Moved api docs from <pre> to ```
----
Converted with disabled git hooks + tested manually
2022-09-04 15:42:51 -03:00
David Allison
fe9892704b
refactor: Rename AddContentApi.java to .kt
...
com.ichi2.anki.api.AddContentApi
2022-09-04 15:42:51 -03:00
lukstbit
033c51f47b
Migrate FlashCardsContract.java to kotlin
2022-09-02 11:55:14 -05:00
lukstbit
3bfa59fe6c
Rename FlashCardsContract.java to .kt
2022-09-02 11:55:14 -05:00
David Allison
0364d9376f
refactor: Convert ApiUtilsTest to Kotlin
...
com.ichi2.anki.api.ApiUtilsTest
Git hooks were disabled for this commit due to the extra commit for the
java -> kt rename
(irrelevant) Issue with conversion file was listed: 12209
added kotlin-test for null-safe: `assertNull` required for lint
2022-09-02 07:39:21 -03:00
David Allison
e9a56c59b9
refactor: Rename ApiUtilsTest.java to .kt
...
com.ichi2.anki.api.ApiUtilsTest
Git hooks were disabled for this commit due to the extra commit for the
java -> kt rename
Tested manually
(irrelevant) Issue with conversion file was listed: 12209
2022-09-02 07:39:21 -03:00
Nishant Bhandari
7003afaa25
Made joinFields accept not null arr string in list ( #12250 )
...
* Made joinFields accept not null string in array.
* Added todo for contract.
2022-09-01 07:05:59 +03:00
Nishant
298c5e6b94
Replaced Character.toString with kotlin function toString.
2022-08-31 13:33:58 +01:00
Mike Hardy
67533b62bc
Dependency updates 20220825 ( #12170 )
...
* build(deps): bump robolectric from 4.8.1 to 4.8.2
Bumps [robolectric](https://github.com/robolectric/robolectric ) from 4.8.1 to 4.8.2.
- [Release notes](https://github.com/robolectric/robolectric/releases )
- [Commits](https://github.com/robolectric/robolectric/compare/robolectric-4.8.1...robolectric-4.8.2 )
---
updated-dependencies:
- dependency-name: org.robolectric:robolectric
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* build(deps): bump mockk from 1.12.5 to 1.12.7
Bumps [mockk](https://github.com/mockk/mockk ) from 1.12.5 to 1.12.7.
- [Release notes](https://github.com/mockk/mockk/releases )
- [Commits](https://github.com/mockk/mockk/compare/1.12.5...1.12.7 )
---
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>
* build(deps): bump ktlint-gradle from 10.3.0 to 11.0.0
Bumps ktlint-gradle from 10.3.0 to 11.0.0.
---
updated-dependencies:
- dependency-name: org.jlleitschuh.gradle:ktlint-gradle
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* build(deps): bump jsoup from 1.15.2 to 1.15.3
Bumps [jsoup](https://github.com/jhy/jsoup ) from 1.15.2 to 1.15.3.
- [Release notes](https://github.com/jhy/jsoup/releases )
- [Changelog](https://github.com/jhy/jsoup/blob/master/CHANGES )
- [Commits](https://github.com/jhy/jsoup/compare/jsoup-1.15.2...jsoup-1.15.3 )
---
updated-dependencies:
- dependency-name: org.jsoup:jsoup
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* build(deps): bump webkit from 1.4.0 to 1.5.0
Bumps webkit from 1.4.0 to 1.5.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>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-25 11:06:33 -05:00
Mike Hardy
f919d7af0a
build: bump compileSdkVersion to 32
2022-08-25 09:17:37 -05:00
Arthur Milchior
bc78279662
Remove splitFieldsShouldReturnNullWhenStringIsNull
...
This method do not take nullable value anymore. And it seems that even from
java's code, it can't be called with nullable value, since it's only called from
either literals or result of Cursor. I.e. strings that are not null by
assumption about the database.
2022-07-24 14:40:34 -05:00
Arthur Milchior
fb385b8647
Remove splitTagsShouldReturnNullWhenStringIsNull
...
This method do not take nullable value anymore. And it seems that even from
java's code, it can't be called with nullable value, since it's only called from
result of Cursor. I.e. strings that are not null by assumption about the database.
2022-07-24 14:40:34 -05:00
Arthur Milchior
2442dfc882
ApiUtilsTest: remove override ambiguity
...
This test failed to compile because it did not know whether to use (Object,
Object) or (long, long).
2022-07-24 14:40:34 -05:00
dependabot[bot]
02c444bade
Bump annotation from 1.3.0 to 1.4.0
...
Bumps annotation from 1.3.0 to 1.4.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>
2022-07-04 22:34:37 -05:00
Nishant
9024e6629b
Migrate Utils to Kotlin
2022-05-24 10:35:58 -05:00
Nishant
f5b3844854
Rename .java to .kt
2022-05-24 10:35:58 -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
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
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
Mike Hardy
ae95643f1f
build(deps): Dependency updates 20220510
2022-05-10 18:07:18 -05:00
Nishant
513a6c1e2d
kotlinMigration.gradle for api project.
2022-05-09 12:07:57 -05:00
Brayan Oliveira
8f9f8c2261
Use JUnit5 on tests
...
1. Extract JUnit version to a constant, so all 3 testImplementations uses the same version
2. Add JUnitPlatform use to `build.gradle`
3. Fix imports to `kotlin.test.junit5.JUnit5Asserter`
4. Fix `AbstractFlashcardViewerTest.getSignalFromUrlTest`
- It is currently the only parameterized test that uses jupiter-params. It wasn't being discovered before, so it haven't raised any exception.
- Now that it's discovered, it needed to be fixed
2022-05-01 19:13:49 -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
5b27ab0b48
fix: forward-port to non-deprecated gradle properties
2022-04-21 18:44:04 +05:30
Mike Hardy
458dc53884
chore: rename default branch to main
2022-03-06 14:22:18 -05:00
Mike Hardy
417160f919
Dependency updates 20211217 ( #9990 )
...
* Bump mockito-inline from 4.0.0 to 4.1.0 (#9940 )
Bumps [mockito-inline](https://github.com/mockito/mockito ) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/mockito/mockito/releases )
- [Commits](https://github.com/mockito/mockito/compare/v4.0.0...v4.1.0 )
---
updated-dependencies:
- dependency-name: org.mockito:mockito-inline
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump okhttp from 4.9.2 to 4.9.3
Bumps [okhttp](https://github.com/square/okhttp ) from 4.9.2 to 4.9.3.
- [Release notes](https://github.com/square/okhttp/releases )
- [Changelog](https://github.com/square/okhttp/blob/master/CHANGELOG.md )
- [Commits](https://github.com/square/okhttp/compare/parent-4.9.2...parent-4.9.3 )
---
updated-dependencies:
- dependency-name: com.squareup.okhttp3:okhttp
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump constraintlayout from 2.1.1 to 2.1.2
Bumps [constraintlayout](https://github.com/androidx/constraintlayout ) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/androidx/constraintlayout/releases )
- [Commits](https://github.com/androidx/constraintlayout/commits )
---
updated-dependencies:
- dependency-name: androidx.constraintlayout:constraintlayout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump com.github.triplet.play from 3.6.0 to 3.7.0
Bumps com.github.triplet.play from 3.6.0 to 3.7.0.
---
updated-dependencies:
- dependency-name: com.github.triplet.play
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump lint_version from 30.0.3 to 30.0.4 (#9972 )
Bumps `lint_version` from 30.0.3 to 30.0.4.
Updates `lint-api` from 30.0.3 to 30.0.4
Updates `lint` from 30.0.3 to 30.0.4
Updates `lint-tests` from 30.0.3 to 30.0.4
---
updated-dependencies:
- dependency-name: com.android.tools.lint:lint-api
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: com.android.tools.lint:lint
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: com.android.tools.lint:lint-tests
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump gradle from 7.0.3 to 7.0.4 (#9973 )
Bumps gradle from 7.0.3 to 7.0.4.
---
updated-dependencies:
- dependency-name: com.android.tools.build:gradle
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump kotlin_version from 1.6.0 to 1.6.10 (#9980 )
Bumps `kotlin_version` from 1.6.0 to 1.6.10.
Updates `kotlin-gradle-plugin` from 1.6.0 to 1.6.10
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.6.10/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.6.0...v1.6.10 )
Updates `kotlin-stdlib` from 1.6.0 to 1.6.10
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.6.10/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.6.0...v1.6.10 )
Updates `kotlin-stdlib-jdk7` from 1.6.0 to 1.6.10
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.6.10/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.6.0...v1.6.10 )
Updates `kotlin-reflect` from 1.6.0 to 1.6.10
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.6.10/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.6.0...v1.6.10 )
---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-gradle-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib-jdk7
dependency-type: direct:production
update-type: version-update:semver-patch
- 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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump sqlite-framework from 2.1.0 to 2.2.0
Bumps sqlite-framework from 2.1.0 to 2.2.0.
---
updated-dependencies:
- dependency-name: androidx.sqlite:sqlite-framework
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump mockito-inline from 4.1.0 to 4.2.0
Bumps [mockito-inline](https://github.com/mockito/mockito ) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/mockito/mockito/releases )
- [Commits](https://github.com/mockito/mockito/compare/v4.1.0...v4.2.0 )
---
updated-dependencies:
- dependency-name: org.mockito:mockito-inline
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump junit-vintage-engine from 5.8.1 to 5.8.2
Bumps [junit-vintage-engine](https://github.com/junit-team/junit5 ) from 5.8.1 to 5.8.2.
- [Release notes](https://github.com/junit-team/junit5/releases )
- [Commits](https://github.com/junit-team/junit5/compare/r5.8.1...r5.8.2 )
---
updated-dependencies:
- dependency-name: org.junit.vintage:junit-vintage-engine
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-31 15:36:17 -05:00
dikshamalik2552
6ef6630b9c
build(deps): Bump robolectric from 4.7.1 to 4.7.3 ( #9966 )
...
* Bump robolectric from 4.7.1 to 4.7.3
* Update AnkiDroid/build.gradle
Co-authored-by: Mike Hardy <github@mikehardy.net>
2021-12-04 13:29:52 -05:00
Mike Hardy
3fcfcc9957
Dependency updates 20211118 ( #9932 )
...
* build(deps): bump material-tap-target-prompt from 3.3.0 to 3.3.1
Bumps [material-tap-target-prompt](https://github.com/sjwall/MaterialTapTargetPrompt ) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/sjwall/MaterialTapTargetPrompt/releases )
- [Changelog](https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sjwall/MaterialTapTargetPrompt/compare/v3.3.0...v3.3.1 )
---
updated-dependencies:
- dependency-name: uk.co.samuelwall:material-tap-target-prompt
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* build(deps): bump material-tap-target-prompt from 3.3.1 to 3.3.2
Bumps [material-tap-target-prompt](https://github.com/sjwall/MaterialTapTargetPrompt ) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/sjwall/MaterialTapTargetPrompt/releases )
- [Changelog](https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sjwall/MaterialTapTargetPrompt/compare/v3.3.1...v3.3.2 )
---
updated-dependencies:
- dependency-name: uk.co.samuelwall:material-tap-target-prompt
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump annotations from 22.0.0 to 23.0.0 (#9869 )
* Bump annotations from 22.0.0 to 23.0.0
Bumps [annotations](https://github.com/JetBrains/java-annotations ) from 22.0.0 to 23.0.0.
- [Release notes](https://github.com/JetBrains/java-annotations/releases )
- [Changelog](https://github.com/JetBrains/java-annotations/blob/master/CHANGELOG.md )
- [Commits](https://github.com/JetBrains/java-annotations/compare/22.0.0...23.0.0 )
---
updated-dependencies:
- dependency-name: org.jetbrains:annotations
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump robolectric from 4.6.1 to 4.7
Bumps [robolectric](https://github.com/robolectric/robolectric ) from 4.6.1 to 4.7.
- [Release notes](https://github.com/robolectric/robolectric/releases )
- [Commits](https://github.com/robolectric/robolectric/compare/robolectric-4.6.1...robolectric-4.7 )
---
updated-dependencies:
- dependency-name: org.robolectric:robolectric
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix(test): Kotlin 1.6 requires exhaustive `when`, fix TagsDialogTest
* Bump kotlin_version from 1.5.31 to 1.6.0
Bumps `kotlin_version` from 1.5.31 to 1.6.0.
Updates `kotlin-gradle-plugin` from 1.5.31 to 1.6.0
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/commits )
Updates `kotlin-stdlib` from 1.5.31 to 1.6.0
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/commits )
Updates `kotlin-stdlib-jdk7` from 1.5.31 to 1.6.0
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/commits )
Updates `kotlin-reflect` from 1.5.31 to 1.6.0
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/commits )
---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-gradle-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib-jdk7
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: org.jetbrains.kotlin:kotlin-reflect
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump robolectric from 4.7 to 4.7.1
Bumps [robolectric](https://github.com/robolectric/robolectric ) from 4.7 to 4.7.1.
- [Release notes](https://github.com/robolectric/robolectric/releases )
- [Commits](https://github.com/robolectric/robolectric/compare/robolectric-4.7...robolectric-4.7.1 )
---
updated-dependencies:
- dependency-name: org.robolectric:robolectric
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump appcompat from 1.3.1 to 1.4.0
fix: androidx.appcompat.resources.R.layout no longer exists
Bumps appcompat from 1.3.1 to 1.4.0.
---
updated-dependencies:
- dependency-name: androidx.appcompat:appcompat
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix(lint): add copyright
* Bump fragment-ktx from 1.3.6 to 1.4.0
Bumps fragment-ktx from 1.3.6 to 1.4.0.
Note: https://issuetracker.google.com/issues/206855622 requires ignoring ObsoleteLintCustomCheck for now
---
updated-dependencies:
- dependency-name: androidx.fragment:fragment-ktx
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump fragment-testing from 1.3.6 to 1.4.0
Bumps fragment-testing from 1.3.6 to 1.4.0.
---
updated-dependencies:
- dependency-name: androidx.fragment:fragment-testing
dependency-type: direct:production
update-type: version-update:semver-minor
...
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-1@users.noreply.github.com>
2021-11-18 19:33:55 -05:00
dependabot[bot]
4246143fa6
build(deps): bump annotation from 1.2.0 to 1.3.0
...
Bumps annotation from 1.2.0 to 1.3.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>
2021-11-04 20:45:40 -05:00
Mike Hardy
0e43472891
fix(android, api31): implement compileSdkVersion 31 compatibility
...
- added new CompatV31 object to compat infrastructure
- handled MediaRecorder() ctor deprecation by threading Context through, adding new Compat method
- handled Context.VIBRATOR_SERVICE deprecation with recommended new APIs in CompatV31 override
2021-11-04 17:03:01 -05:00
Mike Hardy
4bdb52ce11
build(deps): allow robolectric to move past previous api28 pin
...
robolectric api29+ required java9+ which was previously out of reach for us
when updating robolectric
Now with Android Studio 2020+ we are on JDK11 as a default, so this remnant
api28 pin may be removed
Reform the CI-flake-busting robolectric download to grab the new android.jar
implementations for api28+
2021-10-18 23:48:24 +01:00
David Allison
30d62a94c4
lint: pause 'copyright' error on legacy files
...
We need to get copyright for these, but want to disable
the lint warning for now so we can enable it as an error
on tests to prevent users from forgetting the header
Issue 8659 - getting the copyright
Issue 9538 - enable lint warnings on tests
2021-10-09 09:40:08 -05:00
dependabot[bot]
217e92deca
build(deps): bump junit-vintage-engine from 5.8.0 to 5.8.1
...
Bumps [junit-vintage-engine](https://github.com/junit-team/junit5 ) from 5.8.0 to 5.8.1.
- [Release notes](https://github.com/junit-team/junit5/releases )
- [Commits](https://github.com/junit-team/junit5/compare/r5.8.0...r5.8.1 )
---
updated-dependencies:
- dependency-name: org.junit.vintage:junit-vintage-engine
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-09-28 12:32:36 -05:00
Mike Hardy
e8cb5562d7
Dependency updates 20210921 ( #9534 )
...
* build(deps): bump mockito-inline from 3.11.2 to 3.12.0
Bumps [mockito-inline](https://github.com/mockito/mockito ) from 3.11.2 to 3.12.0.
- [Release notes](https://github.com/mockito/mockito/releases )
- [Commits](https://github.com/mockito/mockito/compare/v3.11.2...v3.12.0 )
---
updated-dependencies:
- dependency-name: org.mockito:mockito-inline
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* build(deps): bump mockito-inline from 3.12.0 to 3.12.1
Bumps [mockito-inline](https://github.com/mockito/mockito ) from 3.12.0 to 3.12.1.
- [Release notes](https://github.com/mockito/mockito/releases )
- [Commits](https://github.com/mockito/mockito/compare/v3.12.0...v3.12.1 )
---
updated-dependencies:
- dependency-name: org.mockito:mockito-inline
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* build(deps): bump kotlin_version from 1.5.21 to 1.5.30
Bumps `kotlin_version` from 1.5.21 to 1.5.30.
Updates `kotlin-gradle-plugin` from 1.5.21 to 1.5.30
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.5.30/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.5.21...v1.5.30 )
Updates `kotlin-stdlib` from 1.5.21 to 1.5.30
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.5.30/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.5.21...v1.5.30 )
Updates `kotlin-stdlib-jdk7` from 1.5.21 to 1.5.30
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.5.30/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.5.21...v1.5.30 )
Updates `kotlin-reflect` from 1.5.21 to 1.5.30
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.5.30/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.5.21...v1.5.30 )
---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-gradle-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib-jdk7
dependency-type: direct:production
update-type: version-update:semver-patch
- 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 mockito-inline from 3.12.1 to 3.12.3
Bumps [mockito-inline](https://github.com/mockito/mockito ) from 3.12.1 to 3.12.3.
- [Release notes](https://github.com/mockito/mockito/releases )
- [Commits](https://github.com/mockito/mockito/compare/v3.12.1...v3.12.3 )
---
updated-dependencies:
- dependency-name: org.mockito:mockito-inline
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* build(deps): bump mockito-inline from 3.12.3 to 3.12.4
Bumps [mockito-inline](https://github.com/mockito/mockito ) from 3.12.3 to 3.12.4.
- [Release notes](https://github.com/mockito/mockito/releases )
- [Commits](https://github.com/mockito/mockito/compare/v3.12.3...v3.12.4 )
---
updated-dependencies:
- dependency-name: org.mockito:mockito-inline
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* build(deps): bump jackson-databind from 2.12.4 to 2.12.5
Bumps [jackson-databind](https://github.com/FasterXML/jackson ) from 2.12.4 to 2.12.5.
- [Release notes](https://github.com/FasterXML/jackson/releases )
- [Commits](https://github.com/FasterXML/jackson/commits )
---
updated-dependencies:
- dependency-name: com.fasterxml.jackson.core:jackson-databind
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* build(deps): bump gradle from 7.0.1 to 7.0.2
Bumps gradle from 7.0.1 to 7.0.2.
---
updated-dependencies:
- dependency-name: com.android.tools.build:gradle
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* build(deps): bump lint_version from 30.0.1 to 30.0.2
Bumps `lint_version` from 30.0.1 to 30.0.2.
Updates `lint-api` from 30.0.1 to 30.0.2
Updates `lint` from 30.0.1 to 30.0.2
Updates `lint-tests` from 30.0.1 to 30.0.2
---
updated-dependencies:
- dependency-name: com.android.tools.lint:lint-api
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: com.android.tools.lint:lint
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: com.android.tools.lint:lint-tests
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* build(deps): bump junit-vintage-engine from 5.7.2 to 5.8.0
Bumps [junit-vintage-engine](https://github.com/junit-team/junit5 ) from 5.7.2 to 5.8.0.
- [Release notes](https://github.com/junit-team/junit5/releases )
- [Commits](https://github.com/junit-team/junit5/compare/r5.7.2...r5.8.0 )
---
updated-dependencies:
- dependency-name: org.junit.vintage:junit-vintage-engine
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* build(deps): bump protobuf-java from 3.17.3 to 3.18.0
Bumps [protobuf-java](https://github.com/protocolbuffers/protobuf ) from 3.17.3 to 3.18.0.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases )
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/master/generate_changelog.py )
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.17.3...v3.18.0 )
---
updated-dependencies:
- dependency-name: com.google.protobuf:protobuf-java
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* build(deps): bump kotlin_version from 1.5.30 to 1.5.31
Bumps `kotlin_version` from 1.5.30 to 1.5.31.
Updates `kotlin-gradle-plugin` from 1.5.30 to 1.5.31
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.5.31/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.5.30...v1.5.31 )
Updates `kotlin-stdlib` from 1.5.30 to 1.5.31
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.5.31/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.5.30...v1.5.31 )
Updates `kotlin-stdlib-jdk7` from 1.5.30 to 1.5.31
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.5.31/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.5.30...v1.5.31 )
Updates `kotlin-reflect` from 1.5.30 to 1.5.31
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.5.31/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.5.30...v1.5.31 )
---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-gradle-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib-jdk7
dependency-type: direct:production
update-type: version-update:semver-patch
- 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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-21 22:19:41 -05:00
Dennis Titze
f39b7fa10f
fix links to point to new documentation
2021-09-21 17:05:25 -05:00
Mike Hardy
5dae9d90f9
build(deps): bump android gradle plugin to 7.0.0
...
- ignore bcprov via ignorelist, can remove w/AGP7.1+ https://issuetracker.google.com/issues/159151549#comment12
- Triple-T publisher needs a switch to their agp7.0 track
- Obsolete versionCode/version/dexOptions removed (suggested by AGP migration task in Android Studio)
- AGP 7+ requires JDK11 to run, retire JDK8 from development
2021-07-31 14:58:53 -05:00
David Allison
fcf111c329
lint: remove "debug" config
...
After moving to AGP 7, we can no longer apply lintConfig on
`task.doFirst`
Since we're not using the baseline/debug config, we might as well
simplify this file and remove the implementation.
Baseline usage was never properly implemented, and was on Travis CI
which we are no longer using.
Related: 9338
2021-07-31 14:58:53 -05:00
Mike Hardy
eebe6bdff8
Dependency updates 20210713 ( #9258 )
...
* Bump lint_version from 27.2.1 to 27.2.2
Bumps `lint_version` from 27.2.1 to 27.2.2.
Updates `lint-api` from 27.2.1 to 27.2.2
Updates `lint` from 27.2.1 to 27.2.2
Updates `lint-tests` from 27.2.1 to 27.2.2
---
updated-dependencies:
- dependency-name: com.android.tools.lint:lint-api
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: com.android.tools.lint:lint
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: com.android.tools.lint:lint-tests
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump robolectric from 4.5.1 to 4.6.1 (#9208 )
* Bump lint_version from 27.2.1 to 27.2.2
Bumps `lint_version` from 27.2.1 to 27.2.2.
Updates `lint-api` from 27.2.1 to 27.2.2
Updates `lint` from 27.2.1 to 27.2.2
Updates `lint-tests` from 27.2.1 to 27.2.2
---
updated-dependencies:
- dependency-name: com.android.tools.lint:lint-api
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: com.android.tools.lint:lint
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: com.android.tools.lint:lint-tests
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump robolectric from 4.5.1 to 4.6.1
Bumps [robolectric](https://github.com/robolectric/robolectric ) from 4.5.1 to 4.6.1.
- [Release notes](https://github.com/robolectric/robolectric/releases )
- [Commits](https://github.com/robolectric/robolectric/compare/robolectric-4.5.1...robolectric-4.6.1 )
---
updated-dependencies:
- dependency-name: org.robolectric:robolectric
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Ignore bcprov during jetifier runs
- jetifier still needed because of old material dialogs version, pending kotlin migration
- jetifier cannot handle JDK15 bytecode because of some other internal dependency with bcprov
- bcprov does not need jetifier processing though, so skipping it is okay
https://github.com/robolectric/robolectric/issues/6521#issuecomment-851736355
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mike Hardy <github@mikehardy.net>
* build(deps): bump jsoup from 1.13.1 to 1.14.1
Bumps [jsoup](https://github.com/jhy/jsoup ) from 1.13.1 to 1.14.1.
- [Release notes](https://github.com/jhy/jsoup/releases )
- [Changelog](https://github.com/jhy/jsoup/blob/master/CHANGES )
- [Commits](https://github.com/jhy/jsoup/compare/jsoup-1.13.1...jsoup-1.14.1 )
---
updated-dependencies:
- dependency-name: org.jsoup:jsoup
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* build(deps): bump kotlin_version from 1.5.20 to 1.5.21
Bumps `kotlin_version` from 1.5.20 to 1.5.21.
Updates `kotlin-gradle-plugin` from 1.5.20 to 1.5.21
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/commits )
Updates `kotlin-stdlib` from 1.5.20 to 1.5.21
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/commits )
Updates `kotlin-stdlib-jdk7` from 1.5.20 to 1.5.21
- [Release notes](https://github.com/JetBrains/kotlin/releases )
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md )
- [Commits](https://github.com/JetBrains/kotlin/commits )
---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-gradle-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib-jdk7
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-16 10:09:11 -05:00
David Allison
aae98e787f
api: Don't publish lint.jar
...
Our lint checks are internal and not for consumers.
Added in 018c1db71f
lintChecks performs the checks for the project
lintPublish publishes the checks into the aar
https://developer.android.com/studio/build/dependencies#dependency_configurations
Fixes 9214
2021-07-07 17:36:00 -05:00
David Allison
66b7ea6b19
api: ignore failing lint checks
...
In prep for 9214, which enables lint
Lint was previously disabled by accident
2021-07-07 17:36:00 -05:00
David Allison
1a08c583f3
Extract Kotlin version to variable
...
Review comment: keeps all Kotlin modules in sync
Note: adding this to the `ext { }` section didn't work for the main
build.gradle, but would be a better solution
Using
https://stackoverflow.com/questions/64834818/android-studio-could-not-get-unknown-property-kotlin-version
2021-06-23 23:16:23 -05:00
Shridhar
49a98af859
Migrate UiUtil to Kotlin
2021-05-28 20:12:33 +02:00