Skip to content

Commit

Permalink
Public release v1.9.6 (#709)
Browse files Browse the repository at this point in the history
* Improve dependancy management (#370)

* Add versions catalogs

* Add dependencyResolutionManagement, update vgscollect module dependecies handling

* Update bouncer/cardio/app modules dependencies handling

* Update root gradle file, remove redundant dependencies.gradle file

* Update naming

* Fix bouncer dependency

* Update gradle version and remove redundant enableFeaturePreview("VERSION_CATALOGS"), as VERSION_CATALOGS is now stable feature

* Remove deprecated alias function from settings.gradle

* Tests: update dependabot target branch

* Revert commit: "Tests: update dependabot target branch"

* Update material

* Change dependabot target branch for tests

* Remove test code

* Bump core-ktx from 1.7.0 to 1.8.0 (#371)

Bumps core-ktx from 1.7.0 to 1.8.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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump okhttp from 4.9.3 to 4.10.0 (#372)

Bumps [okhttp](https://github.com/square/okhttp) from 4.9.3 to 4.10.0.
- [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.3...parent-4.10.0)

---
updated-dependencies:
- dependency-name: com.squareup.okhttp3:okhttp
  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 mockito-core from 4.4.0 to 4.6.1 (#374)

Bumps [mockito-core](https://github.com/mockito/mockito) from 4.4.0 to 4.6.1.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.4.0...v4.6.1)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
  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 appcompat from 1.4.1 to 1.4.2 (#379)

Bumps appcompat from 1.4.1 to 1.4.2.

---
updated-dependencies:
- dependency-name: androidx.appcompat:appcompat
  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 mockito-inline from 4.4.0 to 4.6.1 (#378)

Bumps [mockito-inline](https://github.com/mockito/mockito) from 4.4.0 to 4.6.1.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.4.0...v4.6.1)

---
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 mockk from 1.12.3 to 1.12.4 (#377)

Bumps [mockk](https://github.com/mockk/mockk) from 1.12.3 to 1.12.4.
- [Release notes](https://github.com/mockk/mockk/releases)
- [Commits](https://github.com/mockk/mockk/compare/1.12.3...1.12.4)

---
updated-dependencies:
- dependency-name: io.mockk:mockk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add tokenization API (#376)

* Bump constraintlayout from 2.1.3 to 2.1.4 (#381)

Bumps [constraintlayout](https://github.com/androidx/constraintlayout) from 2.1.3 to 2.1.4.
- [Release notes](https://github.com/androidx/constraintlayout/releases)
- [Commits](https://github.com/androidx/constraintlayout/compare/2.1.3...2.1.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump leakcanary-android from 2.8.1 to 2.9.1 (#380)

Bumps [leakcanary-android](https://github.com/square/leakcanary) from 2.8.1 to 2.9.1.
- [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.8.1...v2.9.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add tokenization tests (#385)

* Add Tokenization.kt tests

* Add tokenization request data test

* Bump robolectric from 4.7.3 to 4.8.1 (#383)

Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.7.3 to 4.8.1.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](https://github.com/robolectric/robolectric/compare/robolectric-4.7.3...robolectric-4.8.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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump json from 20211205 to 20220320 (#384)

Bumps [json](https://github.com/douglascrockford/JSON-java) from 20211205 to 20220320.
- [Release notes](https://github.com/douglascrockford/JSON-java/releases)
- [Changelog](https://github.com/stleary/JSON-java/blob/master/docs/RELEASES.md)
- [Commits](https://github.com/douglascrockford/JSON-java/commits)

---
updated-dependencies:
- dependency-name: org.json:json
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* update config (#387)

* Update minSdkVersion version to 21 (#386)

* Update minSdk version to 21, remove redundant sdk version checks

* Update scanners target/min/compile sdk versions

* Bump jsonassert from 1.5.0 to 1.5.1 (#389)

Bumps [jsonassert](https://github.com/skyscreamer/JSONassert) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/skyscreamer/JSONassert/releases)
- [Changelog](https://github.com/skyscreamer/JSONassert/blob/master/CHANGELOG.md)
- [Commits](https://github.com/skyscreamer/JSONassert/compare/jsonassert-1.5.0...jsonassert-1.5.1)

---
updated-dependencies:
- dependency-name: org.skyscreamer:jsonassert
  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>
Co-authored-by: Dmytro Kos <dmitriy.kosolapenko@vgs.io>

* Implement tokenization analytics (#390)

* Add tokenization parameter to submit event.

* Add tokenization parameter to before submit event.

* Fix tests

* Add supporting route id (#391)

* Tokenization demo (#393)

* add setRoutId function

* rebuild url

* make public tokenize function

* add documentation

* update tests

* Update start screen select flow buttons

* Update environment selection handling

* Update hint

* Update action bar

* Update colors

* Remove redundant import

* Update strings

* Add basic UI for tokenization flow

* Improve tokenization demo UI

* Update start screen inputs

* Remove overscroll on main screen

* Add reset button

* Add field names, test input, snackbar to show error messages

* Add ability to copy tokenization response

* Show toast when response copied.

* Add configureTokenization function

* Improve reset button handling

* Fix utils.gradle

* Add image background for card

* Improve loading state

* Remove image from card background

* Basic implementation of card

* Parse tokenization response

* Add menu and card scan

* Remove hint

* Update message

* Add progress bar

* Add hints

* Add collect onDestroy

* Add tokenization settings activity

* Implement tokenization settings activity

* Implement tokenization settings activity

* Add code example layout

* Fix memory leak

* Update json formatting

* Update response handling

* Update copy code example ripple color

* Remove route id

* Add collect demo apk

* Fix gradle.utils

* Rename icon

* Not clear inputs when reset view

* Code formatt

* Update reset/tokenize button positions

* Fix animation when reset code example

* Remove apk

Co-authored-by: Dmytro <dmitriy.kosolapenko@vgs.io>

* Bump dokka-base from 1.6.10 to 1.7.0 (#373)

Bumps [dokka-base](https://github.com/Kotlin/dokka) from 1.6.10 to 1.7.0.
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.6.10...v1.7.0)

---
updated-dependencies:
- dependency-name: org.jetbrains.dokka:dokka-base
  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: Dmytro Kos <dmitriy.kosolapenko@vgs.io>

* Bump gradle-maven-publish-plugin from 0.19.0 to 0.21.0 (#394)

* Bump gradle-maven-publish-plugin from 0.19.0 to 0.21.0

Bumps [gradle-maven-publish-plugin](https://github.com/vanniktech/gradle-maven-publish-plugin) from 0.19.0 to 0.21.0.
- [Release notes](https://github.com/vanniktech/gradle-maven-publish-plugin/releases)
- [Changelog](https://github.com/vanniktech/gradle-maven-publish-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vanniktech/gradle-maven-publish-plugin/compare/0.19.0...0.21.0)

---
updated-dependencies:
- dependency-name: com.vanniktech:gradle-maven-publish-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Replace deprecated function with new

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dmytrodmytryshyn <dmytro.dmytryshyn@vgs.io>

* Bump dokka-gradle-plugin from 1.6.10 to 1.7.10 (#395)

Bumps [dokka-gradle-plugin](https://github.com/Kotlin/dokka) from 1.6.10 to 1.7.10.
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/commits)

---
updated-dependencies:
- dependency-name: org.jetbrains.dokka:dokka-gradle-plugin
  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 dokka-base from 1.7.0 to 1.7.10 (#397)

Bumps [dokka-base](https://github.com/Kotlin/dokka) from 1.7.0 to 1.7.10.
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.7.0...v1.7.10)

---
updated-dependencies:
- dependency-name: org.jetbrains.dokka:dokka-base
  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>
Co-authored-by: dmytrodmytryshyn <dmytro.dmytryshyn@vgs.io>

* Bump kotlin-gradle-plugin from 1.6.10 to 1.7.0 (#382)

* Bump kotlin-gradle-plugin from 1.6.10 to 1.7.0

Bumps [kotlin-gradle-plugin](https://github.com/JetBrains/kotlin) from 1.6.10 to 1.7.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/compare/v1.6.10...v1.7.0)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Update 'when' statements

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dmytro <dmitriy.kosolapenko@vgs.io>
Co-authored-by: dmytrodmytryshyn <dmytro.dmytryshyn@vgs.io>

* Implement 8 chars bin & update tests (#396)

* Implement validation error messages (#400)

* Add validation result listener for custom validation rules

* Refactor validator creating flow

* Fix BaseInputField.kt

* Revert test code

* Rename LengthValidator.kt to LengthMatchValidator.kt

* Add LengthValidator.kt

* Refactor public validation rules, add ability to set length validation rule.

* Make input connection validator non nullable.

* Make content parameter not null

* Fix validators code formatting

* Fix composite validator functions order

* Remove redundant CardCVCCodeValidator.kt

* Make validator immutable property in BaseInputConnection.kt

* Refactor CheckSumValidator.kt

* Fix TimeGapsValidator.kt nullable content

* Remove MutableValidator interface

* Fix tests

* Update PaymentCardNumberRule.kt min/max

* Add possibility to set error messages for custom validators

* Move state/output to base class

* Add errors parameter to FieldState.kt

* Return errors to end user

* Fix min/max length error message

* Fix min/max length optional error message

* Remove tests code

* Rename function, remove redundant function

* Rename composite validator isValid function

* Make validators return boolean, fix tests

* Rename errors state field to validationErrors

* Bump gradle from 7.2.1 to 7.2.2 (#402)

Bumps gradle from 7.2.1 to 7.2.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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump kotlin-gradle-plugin from 1.7.0 to 1.7.10 (#401)

Bumps [kotlin-gradle-plugin](https://github.com/JetBrains/kotlin) from 1.7.0 to 1.7.10.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.7.10/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.7.0...v1.7.10)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-gradle-plugin
  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>
Co-authored-by: dmytrodmytryshyn <dmytro.dmytryshyn@vgs.io>

* Add `setRule/setRules/appendRule` functions (#403)

* Fix addRule function by adding setRule/setRules/appendRule functions, mark addRule as deprecated

* VGSEditTextTest.kt tests update.

* Update PersonNameEditTextTest.kt

* Update VGSCardNumberEditTextTest.kt

* Fix tests

* Fix comments.

* Public release v1.7.1 (#404)

* Version name & code rise

* Add @JvmOverloads annotations

* Update MIGRATING.md

* Update MIGRATING.md

* Update docs

* Update UI tests

* Update docs (#406)

* Payopt demo (#410)

* Add UI

* Implement network requests

* add activity to manifest

* Improve error handling

* Code format

* Update start screen.

* Update start screen descriptions.

* Update start screen descriptions.

Co-authored-by: Dmytro <dmitriy.kosolapenko@vgs.io>

* Bump robolectric from 4.8.1 to 4.8.2 (#411)

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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump mockito-core from 4.6.1 to 4.7.0 (#408)

Bumps [mockito-core](https://github.com/mockito/mockito) from 4.6.1 to 4.7.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.6.1...v4.7.0)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-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>

* Bump mockito-inline from 4.6.1 to 4.7.0 (#409)

Bumps [mockito-inline](https://github.com/mockito/mockito) from 4.6.1 to 4.7.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.6.1...v4.7.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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dmytro Kos <dmitriy.kosolapenko@vgs.io>

* Update payment demo UI (#412)

* Add UI

* Implement network requests

* add activity to manifest

* Improve error handling

* Code format

* Add adapter

* Add margin decorator

* Improve UI

* Disable item clipping

* Update title

* Resolve merge conflicts

* Fix UI, move requests to separate class

* Fix disable loading in collect response

* Remove hard coded urls

* Update dependencies management

Co-authored-by: Dmytro <dmitriy.kosolapenko@vgs.io>

* Bump mockito-core from 4.7.0 to 4.8.0

Bumps [mockito-core](https://github.com/mockito/mockito) from 4.7.0 to 4.8.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.7.0...v4.8.0)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Bump mockito-inline from 4.7.0 to 4.8.0

Bumps [mockito-inline](https://github.com/mockito/mockito) from 4.7.0 to 4.8.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.7.0...v4.8.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 appcompat from 1.4.2 to 1.6.0-rc01 (#416)

* Bump appcompat from 1.4.2 to 1.5.1

Bumps appcompat from 1.4.2 to 1.5.1.

---
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 a bug https://issuetracker.google.com/issues/242384116?pli=1
androidx.compat conflicting with androidx.preference:preference-ktx

* remove redundant file

* increase version

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dmytro <dmitriy.kosolapenko@vgs.io>

* Bump core-ktx from 1.8.0 to 1.9.0 (#417)

Bumps core-ktx from 1.8.0 to 1.9.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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dmytro Kos <dmitriy.kosolapenko@vgs.io>

* Bump gradle-maven-publish-plugin from 0.21.0 to 0.22.0 (#418)

Bumps [gradle-maven-publish-plugin](https://github.com/vanniktech/gradle-maven-publish-plugin) from 0.21.0 to 0.22.0.
- [Release notes](https://github.com/vanniktech/gradle-maven-publish-plugin/releases)
- [Changelog](https://github.com/vanniktech/gradle-maven-publish-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vanniktech/gradle-maven-publish-plugin/compare/0.21.0...0.22.0)

---
updated-dependencies:
- dependency-name: com.vanniktech:gradle-maven-publish-plugin
  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>

* Merge into dev (#420)

* Merge dev into master (#405)

* Release/v1.6.13 to dev (#240)

* Bump dokka_version from 1.5.0 to 1.5.30 (#242)

Bumps `dokka_version` from 1.5.0 to 1.5.30.

Updates `dokka-gradle-plugin` from 1.5.0 to 1.5.30
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.0...v1.5.30)

Updates `dokka-base` from 1.5.0 to 1.5.30
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.0...v1.5.30)

---
updated-dependencies:
- dependency-name: org.jetbrains.dokka:dokka-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.dokka:dokka-base
  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>

* Improve default validation (#243)

* Update MIGRATING.md (#244)

* Release v1.6.14 (#246)

* Bump cardscan-ui from 2.1.0011 to 2.1.0012 (#249)

Bumps [cardscan-ui](https://github.com/getbouncer/cardscan-android) from 2.1.0011 to 2.1.0012.
- [Release notes](https://github.com/getbouncer/cardscan-android/releases)
- [Changelog](https://github.com/getbouncer/cardscan-android/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getbouncer/cardscan-android/compare/2.1.0011...2.1.0012)

---
updated-dependencies:
- dependency-name: com.getbouncer:cardscan-ui
  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-gradle-plugin from 1.5.30 to 1.5.31 (#253)

Bumps [kotlin-gradle-plugin](https://github.com/JetBrains/kotlin) 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
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump constraintlayout from 2.1.0 to 2.1.1 (#257)

Bumps [constraintlayout](https://github.com/androidx/constraintlayout) from 2.1.0 to 2.1.1.
- [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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Improve validation logic, fix tests (#261)

* Fix nullable return type (#260)

* Bump okhttp from 4.9.1 to 4.9.2 (#258)

Bumps [okhttp](https://github.com/square/okhttp) from 4.9.1 to 4.9.2.
- [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.1...parent-4.9.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dmytro <dmitriy.kosolapenko@vgs.io>

* Bump dokka_version from 1.5.30 to 1.5.31 (#264)

Bumps `dokka_version` from 1.5.30 to 1.5.31.

Updates `dokka-gradle-plugin` from 1.5.30 to 1.5.31
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.30...v1.5.31)

Updates `dokka-base` from 1.5.30 to 1.5.31
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.30...v1.5.31)

---
updated-dependencies:
- dependency-name: org.jetbrains.dokka:dokka-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.dokka:dokka-base
  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>
Co-authored-by: Dmytro <dmitriy.kosolapenko@vgs.io>

* Public release v1.6.15 (#266)

* Version name & code rise

* Update docs

* Bump firebase-bom from 28.4.1 to 28.4.2 (#270)

Bumps firebase-bom from 28.4.1 to 28.4.2.

---
updated-dependencies:
- dependency-name: com.google.firebase:firebase-bom
  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 mockito_version from 3.12.4 to 4.0.0 (#271)

Bumps `mockito_version` from 3.12.4 to 4.0.0.

Updates `mockito-core` from 3.12.4 to 4.0.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.12.4...v4.0.0)

Updates `mockito-inline` from 3.12.4 to 4.0.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.12.4...v4.0.0)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: org.mockito:mockito-inline
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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.2 to 7.0.3 (#273)

Bumps gradle from 7.0.2 to 7.0.3.

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

* Fix submit function response body (#274)

* Public release v1.6.16 (#275)

* Merge dev into master (#269)

* Release/v1.6.13 to dev (#240)

* Bump dokka_version from 1.5.0 to 1.5.30 (#242)

Bumps `dokka_version` from 1.5.0 to 1.5.30.

Updates `dokka-gradle-plugin` from 1.5.0 to 1.5.30
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.0...v1.5.30)

Updates `dokka-base` from 1.5.0 to 1.5.30
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.0...v1.5.30)

---
updated-dependencies:
- dependency-name: org.jetbrains.dokka:dokka-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.dokka:dokka-base
  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>

* Improve default validation (#243)

* Update MIGRATING.md (#244)

* Release v1.6.14 (#246)

* Bump cardscan-ui from 2.1.0011 to 2.1.0012 (#249)

Bumps [cardscan-ui](https://github.com/getbouncer/cardscan-android) from 2.1.0011 to 2.1.0012.
- [Release notes](https://github.com/getbouncer/cardscan-android/releases)
- [Changelog](https://github.com/getbouncer/cardscan-android/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getbouncer/cardscan-android/compare/2.1.0011...2.1.0012)

---
updated-dependencies:
- dependency-name: com.getbouncer:cardscan-ui
  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-gradle-plugin from 1.5.30 to 1.5.31 (#253)

Bumps [kotlin-gradle-plugin](https://github.com/JetBrains/kotlin) 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
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump constraintlayout from 2.1.0 to 2.1.1 (#257)

Bumps [constraintlayout](https://github.com/androidx/constraintlayout) from 2.1.0 to 2.1.1.
- [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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Improve validation logic, fix tests (#261)

* Fix nullable return type (#260)

* Bump okhttp from 4.9.1 to 4.9.2 (#258)

Bumps [okhttp](https://github.com/square/okhttp) from 4.9.1 to 4.9.2.
- [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.1...parent-4.9.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dmytro <dmitriy.kosolapenko@vgs.io>

* Bump dokka_version from 1.5.30 to 1.5.31 (#264)

Bumps `dokka_version` from 1.5.30 to 1.5.31.

Updates `dokka-gradle-plugin` from 1.5.30 to 1.5.31
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.30...v1.5.31)

Updates `dokka-base` from 1.5.30 to 1.5.31
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.30...v1.5.31)

---
updated-dependencies:
- dependency-name: org.jetbrains.dokka:dokka-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.dokka:dokka-base
  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>
Co-authored-by: Dmytro <dmitriy.kosolapenko@vgs.io>

* Public release v1.6.15 (#266)

* Version name & code rise

* Update docs

Co-authored-by: Dmytro Kos <dmitriy.kosolapenko@vgs.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Images patch 1 (#272)

* Version name & code rise

* Update docs

* Update config.yml

Co-authored-by: Dmytro Kos <dmitriy.kosolapenko@vgs.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump tensorflow-lite from 2.1.0011 to 2.1.0015 (#262)

Bumps [tensorflow-lite](https://github.com/getbouncer/cardscan-android) from 2.1.0011 to 2.1.0015.
- [Release notes](https://github.com/getbouncer/cardscan-android/releases)
- [Changelog](https://github.com/getbouncer/cardscan-android/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getbouncer/cardscan-android/compare/2.1.0011...2.1.0015)

---
updated-dependencies:
- dependency-name: com.getbouncer:tensorflow-lite
  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>
Co-authored-by: dmytrodmytryshyn <dmytro.dmytryshyn@vgs.io>

* Bump scan-payment-full from 2.1.0011 to 2.1.0015 (#265)

Bumps [scan-payment-full](https://github.com/getbouncer/cardscan-android) from 2.1.0011 to 2.1.0015.
- [Release notes](https://github.com/getbouncer/cardscan-android/releases)
- [Changelog](https://github.com/getbouncer/cardscan-android/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getbouncer/cardscan-android/compare/2.1.0011...2.1.0015)

---
updated-dependencies:
- dependency-name: com.getbouncer:scan-payment-full
  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>
Co-authored-by: dmytrodmytryshyn <dmytro.dmytryshyn@vgs.io>

* Bump cardscan-ui from 2.1.0012 to 2.1.0015 (#263)

Bumps [cardscan-ui](https://github.com/getbouncer/cardscan-android) from 2.1.0012 to 2.1.0015.
- [Release notes](https://github.com/getbouncer/cardscan-android/releases)
- [Changelog](https://github.com/getbouncer/cardscan-android/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getbouncer/cardscan-android/compare/2.1.0012...2.1.0015)

---
updated-dependencies:
- dependency-name: com.getbouncer:cardscan-ui
  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>
Co-authored-by: dmytrodmytryshyn <dmytro.dmytryshyn@vgs.io>

* Bump bouncer versions from 2.1.0015 -> 2.1.0016 (#279)

* Bouncer adapter version name & code rise (#278)

* Bump core-ktx from 1.6.0 to 1.7.0 (#285)

* Bump core-ktx from 1.6.0 to 1.7.0

Bumps core-ktx from 1.6.0 to 1.7.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>

* update compileSdkVersion

* update cursor.getString

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dmytro <dmitriy.kosolapenko@vgs.io>

* Bump firebase-bom from 28.4.2 to 29.0.0 (#286)

Bumps firebase-bom from 28.4.2 to 29.0.0.

---
updated-dependencies:
- dependency-name: com.google.firebase:firebase-bom
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump robolectric from 4.6.1 to 4.7 (#287)

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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump kotlin-gradle-plugin from 1.5.31 to 1.6.0 (#288)

Bumps [kotlin-gradle-plugin](https://github.com/JetBrains/kotlin) 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
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add max Length (#289)

* Bump mockk from 1.12.0 to 1.12.1 (#290)

Bumps [mockk](https://github.com/mockk/mockk) from 1.12.0 to 1.12.1.
- [Release notes](https://github.com/mockk/mockk/releases)
- [Commits](https://github.com/mockk/mockk/compare/v1.12.0...1.12.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump appcompat from 1.3.1 to 1.4.0 (#291)

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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump robolectric from 4.7 to 4.7.1 (#292)

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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump constraintlayout from 2.1.1 to 2.1.2 (#293)

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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump okhttp from 4.9.2 to 4.9.3 (#294)

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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump mockito_version from 4.0.0 to 4.1.0 (#295)

Bumps `mockito_version` from 4.0.0 to 4.1.0.

Updates `mockito-core` 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)

Updates `mockito-inline` 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-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
- 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 robolectric from 4.7.1 to 4.7.2 (#296)

Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.7.1 to 4.7.2.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](https://github.com/robolectric/robolectric/compare/robolectric-4.7.1...robolectric-4.7.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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump dokka_version from 1.5.31 to 1.6.0 (#297)

Bumps `dokka_version` from 1.5.31 to 1.6.0.

Updates `dokka-gradle-plugin` from 1.5.31 to 1.6.0
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.31...v1.6.0)

Updates `dokka-base` from 1.5.31 to 1.6.0
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.31...v1.6.0)

---
updated-dependencies:
- dependency-name: org.jetbrains.dokka:dokka-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.jetbrains.dokka:dokka-base
  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>

* Merge public release v1.16.17 into development (#299)

* Merge public release 1.6.16 into master (#277)

* Release/v1.6.13 to dev (#240)

* Bump dokka_version from 1.5.0 to 1.5.30 (#242)

Bumps `dokka_version` from 1.5.0 to 1.5.30.

Updates `dokka-gradle-plugin` from 1.5.0 to 1.5.30
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.0...v1.5.30)

Updates `dokka-base` from 1.5.0 to 1.5.30
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.0...v1.5.30)

---
updated-dependencies:
- dependency-name: org.jetbrains.dokka:dokka-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.dokka:dokka-base
  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>

* Improve default validation (#243)

* Update MIGRATING.md (#244)

* Release v1.6.14 (#246)

* Bump cardscan-ui from 2.1.0011 to 2.1.0012 (#249)

Bumps [cardscan-ui](https://github.com/getbouncer/cardscan-android) from 2.1.0011 to 2.1.0012.
- [Release notes](https://github.com/getbouncer/cardscan-android/releases)
- [Changelog](https://github.com/getbouncer/cardscan-android/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getbouncer/cardscan-android/compare/2.1.0011...2.1.0012)

---
updated-dependencies:
- dependency-name: com.getbouncer:cardscan-ui
  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-gradle-plugin from 1.5.30 to 1.5.31 (#253)

Bumps [kotlin-gradle-plugin](https://github.com/JetBrains/kotlin) 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
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump constraintlayout from 2.1.0 to 2.1.1 (#257)

Bumps [constraintlayout](https://github.com/androidx/constraintlayout) from 2.1.0 to 2.1.1.
- [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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Improve validation logic, fix tests (#261)

* Fix nullable return type (#260)

* Bump okhttp from 4.9.1 to 4.9.2 (#258)

Bumps [okhttp](https://github.com/square/okhttp) from 4.9.1 to 4.9.2.
- [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.1...parent-4.9.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dmytro <dmitriy.kosolapenko@vgs.io>

* Bump dokka_version from 1.5.30 to 1.5.31 (#264)

Bumps `dokka_version` from 1.5.30 to 1.5.31.

Updates `dokka-gradle-plugin` from 1.5.30 to 1.5.31
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.30...v1.5.31)

Updates `dokka-base` from 1.5.30 to 1.5.31
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.30...v1.5.31)

---
updated-dependencies:
- dependency-name: org.jetbrains.dokka:dokka-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.dokka:dokka-base
  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>
Co-authored-by: Dmytro <dmitriy.kosolapenko@vgs.io>

* Public release v1.6.15 (#266)

* Version name & code rise

* Update docs

* Bump firebase-bom from 28.4.1 to 28.4.2 (#270)

Bumps firebase-bom from 28.4.1 to 28.4.2.

---
updated-dependencies:
- dependency-name: com.google.firebase:firebase-bom
  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 mockito_version from 3.12.4 to 4.0.0 (#271)

Bumps `mockito_version` from 3.12.4 to 4.0.0.

Updates `mockito-core` from 3.12.4 to 4.0.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.12.4...v4.0.0)

Updates `mockito-inline` from 3.12.4 to 4.0.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.12.4...v4.0.0)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: org.mockito:mockito-inline
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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.2 to 7.0.3 (#273)

Bumps gradle from 7.0.2 to 7.0.3.

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

* Fix submit function response body (#274)

* Public release v1.6.16 (#275)

* Merge dev into master (#269)

* Release/v1.6.13 to dev (#240)

* Bump dokka_version from 1.5.0 to 1.5.30 (#242)

Bumps `dokka_version` from 1.5.0 to 1.5.30.

Updates `dokka-gradle-plugin` from 1.5.0 to 1.5.30
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.0...v1.5.30)

Updates `dokka-base` from 1.5.0 to 1.5.30
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.0...v1.5.30)

---
updated-dependencies:
- dependency-name: org.jetbrains.dokka:dokka-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.dokka:dokka-base
  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>

* Improve default validation (#243)

* Update MIGRATING.md (#244)

* Release v1.6.14 (#246)

* Bump cardscan-ui from 2.1.0011 to 2.1.0012 (#249)

Bumps [cardscan-ui](https://github.com/getbouncer/cardscan-android) from 2.1.0011 to 2.1.0012.
- [Release notes](https://github.com/getbouncer/cardscan-android/releases)
- [Changelog](https://github.com/getbouncer/cardscan-android/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getbouncer/cardscan-android/compare/2.1.0011...2.1.0012)

---
updated-dependencies:
- dependency-name: com.getbouncer:cardscan-ui
  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-gradle-plugin from 1.5.30 to 1.5.31 (#253)

Bumps [kotlin-gradle-plugin](https://github.com/JetBrains/kotlin) 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
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump constraintlayout from 2.1.0 to 2.1.1 (#257)

Bumps [constraintlayout](https://github.com/androidx/constraintlayout) from 2.1.0 to 2.1.1.
- [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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Improve validation logic, fix tests (#261)

* Fix nullable return type (#260)

* Bump okhttp from 4.9.1 to 4.9.2 (#258)

Bumps [okhttp](https://github.com/square/okhttp) from 4.9.1 to 4.9.2.
- [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.1...parent-4.9.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dmytro <dmitriy.kosolapenko@vgs.io>

* Bump dokka_version from 1.5.30 to 1.5.31 (#264)

Bumps `dokka_version` from 1.5.30 to 1.5.31.

Updates `dokka-gradle-plugin` from 1.5.30 to 1.5.31
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.30...v1.5.31)

Updates `dokka-base` from 1.5.30 to 1.5.31
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.30...v1.5.31)

---
updated-dependencies:
- dependency-name: org.jetbrains.dokka:dokka-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.dokka:dokka-base
  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>
Co-authored-by: Dmytro <dmitriy.kosolapenko@vgs.io>

* Public release v1.6.15 (#266)

* Version name & code rise

* Update docs

Co-authored-by: Dmytro Kos <dmitriy.kosolapenko@vgs.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Images patch 1 (#272)

* Version name & code rise

* Update docs

* Update config.yml

Co-authored-by: Dmytro Kos <dmitriy.kosolapenko@vgs.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Co-authored-by: Dmytro Kos <dmitriy.kosolapenko@vgs.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Merge dev into master (#280)

* Release/v1.6.13 to dev (#240)

* Bump dokka_version from 1.5.0 to 1.5.30 (#242)

Bumps `dokka_version` from 1.5.0 to 1.5.30.

Updates `dokka-gradle-plugin` from 1.5.0 to 1.5.30
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.0...v1.5.30)

Updates `dokka-base` from 1.5.0 to 1.5.30
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.0...v1.5.30)

---
updated-dependencies:
- dependency-name: org.jetbrains.dokka:dokka-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.dokka:dokka-base
  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>

* Improve default validation (#243)

* Update MIGRATING.md (#244)

* Release v1.6.14 (#246)

* Bump cardscan-ui from 2.1.0011 to 2.1.0012 (#249)

Bumps [cardscan-ui](https://github.com/getbouncer/cardscan-android) from 2.1.0011 to 2.1.0012.
- [Release notes](https://github.com/getbouncer/cardscan-android/releases)
- [Changelog](https://github.com/getbouncer/cardscan-android/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getbouncer/cardscan-android/compare/2.1.0011...2.1.0012)

---
updated-dependencies:
- dependency-name: com.getbouncer:cardscan-ui
  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-gradle-plugin from 1.5.30 to 1.5.31 (#253)

Bumps [kotlin-gradle-plugin](https://github.com/JetBrains/kotlin) 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
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump constraintlayout from 2.1.0 to 2.1.1 (#257)

Bumps [constraintlayout](https://github.com/androidx/constraintlayout) from 2.1.0 to 2.1.1.
- [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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Improve validation logic, fix tests (#261)

* Fix nullable return type (#260)

* Bump okhttp from 4.9.1 to 4.9.2 (#258)

Bumps [okhttp](https://github.com/square/okhttp) from 4.9.1 to 4.9.2.
- [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.1...parent-4.9.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dmytro <dmitriy.kosolapenko@vgs.io>

* Bump dokka_version from 1.5.30 to 1.5.31 (#264)

Bumps `dokka_version` from 1.5.30 to 1.5.31.

Updates `dokka-gradle-plugin` from 1.5.30 to 1.5.31
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.30...v1.5.31)

Updates `dokka-base` from 1.5.30 to 1.5.31
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.30...v1.5.31)

---
updated-dependencies:
- dependency-name: org.jetbrains.dokka:dokka-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.dokka:dokka-base
  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>
Co-authored-by: Dmytro <dmitriy.kosolapenko@vgs.io>

* Public release v1.6.15 (#266)

* Version name & code rise

* Update docs

* Bump firebase-bom from 28.4.1 to 28.4.2 (#270)

Bumps firebase-bom from 28.4.1 to 28.4.2.

---
updated-dependencies:
- dependency-name: com.google.firebase:firebase-bom
  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 mockito_version from 3.12.4 to 4.0.0 (#271)

Bumps `mockito_version` from 3.12.4 to 4.0.0.

Updates `mockito-core` from 3.12.4 to 4.0.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.12.4...v4.0.0)

Updates `mockito-inline` from 3.12.4 to 4.0.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.12.4...v4.0.0)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: org.mockito:mockito-inline
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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.2 to 7.0.3 (#273)

Bumps gradle from 7.0.2 to 7.0.3.

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

* Fix submit function response body (#274)

* Public release v1.6.16 (#275)

* Merge dev into master (#269)

* Release/v1.6.13 to dev (#240)

* Bump dokka_version from 1.5.0 to 1.5.30 (#242)

Bumps `dokka_version` from 1.5.0 to 1.5.30.

Updates `dokka-gradle-plugin` from 1.5.0 to 1.5.30
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.0...v1.5.30)

Updates `dokka-base` from 1.5.0 to 1.5.30
- [Release notes](https://github.com/Kotlin/dokka/releases)
- [Commits](https://github.com/Kotlin/dokka/compare/v1.5.0...v1.5.30)

---
updated-dependencies:
- dependency-name: org.jetbrains.dokka:dokka-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.dokka:dokka-base
  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>

* Improve default validation (#243)

* Update MIGRATING.md (#244)

* Release v1.6.14 (#246)

* Bump cardscan-ui from 2.1.0011 to 2.1.0012 (#249)

Bumps [cardscan-ui](https://github.com/getbouncer/cardscan-android) from 2.1.0011 to 2.1.0012.
- [Release notes](https://github.com/getbouncer/cardscan-android/releases)
- [Changelog](https://github.com/getbouncer/cardscan-android/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getbouncer/cardscan-android/compare/2.1.0011...2.1.0012)

---
updated-dependencies:
- dependency-name: com.getbouncer:cardscan-ui
  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-gradle-plugin from 1.5.30 to 1.5.31 (#253)

Bumps [kotlin-gradle-plugin](https://github.com/JetBrains/kotlin) 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
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump constraintlayout from 2.1.0 to 2.1.1 (#257)

Bumps [constraintlayout](https://github.com/androidx/constraintlayout) from 2.1.0 …
  • Loading branch information
8 people authored Nov 7, 2024
1 parent 2378261 commit dc940d9
Show file tree
Hide file tree
Showing 6 changed files with 188 additions and 203 deletions.
2 changes: 0 additions & 2 deletions gradle/test-libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ junit = '4.13.2'
mockito-core = '5.11.0'
mockito-inline = '5.2.0'
robolectric = '4.11.1'
mockk = '1.12.4'
json = '20240303'
jsonassert = '1.5.1'

Expand All @@ -12,6 +11,5 @@ junit = { group = 'junit', name = 'junit', version.ref = 'junit' }
mockito-core = { group = 'org.mockito', name = 'mockito-core', version.ref = 'mockito-core' }
mockito-inline = { group = 'org.mockito', name = 'mockito-inline', version.ref = 'mockito-inline' }
robolectric = { group = 'org.robolectric', name = 'robolectric', version.ref = 'robolectric' }
mockk = { group = 'io.mockk', name = 'mockk', version.ref = 'mockk' }
json = { group = 'org.json', name = 'json', version.ref = 'json' }
jsonassert = { group = 'org.skyscreamer', name = 'jsonassert', version.ref = 'jsonassert' }
1 change: 0 additions & 1 deletion vgscollect/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ dependencies {
testImplementation testLibs.mockito.core
testImplementation testLibs.mockito.inline
testImplementation testLibs.robolectric
testImplementation testLibs.mockk
testImplementation testLibs.json
testImplementation testLibs.jsonassert

Expand Down
4 changes: 2 additions & 2 deletions vgscollect/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ POM_INCEPTION_YEAR=2021
POM_PACKAGING=aar

# Version code & name
VERSION_NAME=1.9.5
VERSION_CODE=1905
VERSION_NAME=1.9.6
VERSION_CODE=1906
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,26 @@ package com.verygoodsecurity.vgscollect.view.date

import android.annotation.SuppressLint
import android.app.AlertDialog
import android.app.DatePickerDialog
import android.app.Dialog
import android.content.Context
import android.content.DialogInterface
import android.content.res.Resources
import android.graphics.Color
import android.os.Build
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.DatePicker
import androidx.annotation.AttrRes
import androidx.annotation.ColorInt
import com.verygoodsecurity.vgscollect.R
import com.verygoodsecurity.vgscollect.widget.core.VisibilityChangeListener
import java.util.*
import java.util.Calendar

/** @suppress */
internal class DatePickerBuilder(private val context: Context, mode:DatePickerMode) {
internal class DatePickerBuilder(private val context: Context, mode: DatePickerMode) {
private val layout: ViewGroup
private val datePickerControl: DatePicker
private var currentDate: Calendar? = null
private var minDate:Long? = null
private var maxDate:Long? = null
private var minDate: Long? = null
private var maxDate: Long? = null
private var listener: DatePicker.OnDateChangedListener? = null
private var positiveListener: DialogInterface.OnClickListener? = null
private var negativeListener: DialogInterface.OnClickListener? = null
Expand All @@ -35,13 +30,14 @@ internal class DatePickerBuilder(private val context: Context, mode:DatePickerMo
private var isDateVisible = true

init {
val layoutId = when(mode) {
val layoutId = when (mode) {
DatePickerMode.CALENDAR -> if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.LOLLIPOP_MR1) {
// This is a bug in Android 5.0 and up that occurs when the datepicker is in its new material style calendar mode.
R.layout.vgs_datepicker_spinner_layout
} else {
R.layout.vgs_datepicker_calendar_layout
}

DatePickerMode.SPINNER -> R.layout.vgs_datepicker_spinner_layout
else -> R.layout.vgs_datepicker_calendar_layout
}
Expand All @@ -51,52 +47,59 @@ internal class DatePickerBuilder(private val context: Context, mode:DatePickerMo
datePickerControl = layout.findViewById(R.id.datePickerControl)
}

fun setDayFieldVisibility(state:Boolean):DatePickerBuilder {
fun setDayFieldVisibility(state: Boolean): DatePickerBuilder {
isDateVisible = state
return this
}

fun setMinDate(minDate:Long):DatePickerBuilder {
fun setMinDate(minDate: Long): DatePickerBuilder {
this.minDate = minDate
return this
}

fun setMaxDate(maxDate:Long):DatePickerBuilder {
fun setMaxDate(maxDate: Long): DatePickerBuilder {
this.maxDate = maxDate
return this
}

fun setCurrentDate(date:Long):DatePickerBuilder {
fun setCurrentDate(date: Long): DatePickerBuilder {
val calendar = Calendar.getInstance()
calendar.timeInMillis = date
currentDate = calendar
return this
}

fun setOnDateChangedListener(listener: DatePicker.OnDateChangedListener):DatePickerBuilder {
fun setOnDateChangedListener(listener: DatePicker.OnDateChangedListener): DatePickerBuilder {
this.listener = listener
return this
}

fun setOnPositiveButtonClick(listener: DialogInterface.OnClickListener):DatePickerBuilder {
fun setOnPositiveButtonClick(listener: DialogInterface.OnClickListener): DatePickerBuilder {
positiveListener = listener
return this
}

fun setOnNegativeButtonClick(listener: DialogInterface.OnClickListener):DatePickerBuilder {
fun setOnNegativeButtonClick(listener: DialogInterface.OnClickListener): DatePickerBuilder {
negativeListener = listener
return this
}

fun build(): Dialog {
if(currentDate == null) {
if (currentDate == null) {
currentDate = Calendar.getInstance()
}

val dialog = AlertDialog.Builder(context)
.setView(layout)
.setPositiveButton("Done", positiveListener)
.setNegativeButton("Cancel", negativeListener)
.setTitle(context.getString(R.string.vgs_date_picker_title))
.setPositiveButton(
context.getString(R.string.vgs_date_picker_positive_button),
positiveListener
)
.setNegativeButton(
context.getString(R.string.vgs_date_picker_negative_button),
negativeListener
)
.create()

setupTimeGaps()
Expand All @@ -107,38 +110,20 @@ internal class DatePickerBuilder(private val context: Context, mode:DatePickerMo
visibilityChangeListener?.onDismiss()
}
dialog.setOnShowListener {
val c = getThemeColor(context, com.google.android.material.R.attr.colorAccent)
dialog?.getButton(DatePickerDialog.BUTTON_NEGATIVE)?.apply {
setTextColor(c)
setBackgroundColor(Color.TRANSPARENT)
}
dialog?.getButton(DatePickerDialog.BUTTON_POSITIVE)?.apply {
setTextColor(c)
setBackgroundColor(Color.TRANSPARENT)
}
visibilityChangeListener?.onShow()
}

return dialog
}

@ColorInt
fun getThemeColor(
context: Context,
@AttrRes attributeColor: Int
): Int {
val value = TypedValue()
context.theme.resolveAttribute(attributeColor, value, true)
return value.data
}

private fun setupPickerControl() {
val dayOfMonth = if (isDateVisible) {
currentDate!!.get(Calendar.DAY_OF_MONTH)
} else {
currentDate!!.getActualMaximum(Calendar.DAY_OF_MONTH)
}
datePickerControl.init(currentDate!!.get(Calendar.YEAR),
datePickerControl.init(
currentDate!!.get(Calendar.YEAR),
currentDate!!.get(Calendar.MONTH),
dayOfMonth,
listener
Expand All @@ -147,19 +132,19 @@ internal class DatePickerBuilder(private val context: Context, mode:DatePickerMo

@SuppressLint("DiscouragedApi")
private fun setupFieldVisibility() {
if(!isDateVisible) {
if (!isDateVisible) {
datePickerControl.findViewById<ViewGroup>(
Resources.getSystem().getIdentifier("day", "id", "android")
)?.visibility = View.GONE
}
}

private fun setupTimeGaps() {
if(minDate != null) {
if (minDate != null) {
datePickerControl.minDate = minDate!!
}
if(maxDate != null ) {
if(minDate != null && maxDate!! > minDate!! || minDate == null) {
if (maxDate != null) {
if (minDate != null && maxDate!! > minDate!! || minDate == null) {
datePickerControl.maxDate = maxDate!!
}
}
Expand Down
Loading

0 comments on commit dc940d9

Please sign in to comment.