Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: jobsubmission abstraction #504

Open
wants to merge 76 commits into
base: main
Choose a base branch
from

Conversation

JNdhlovu
Copy link
Contributor

@JNdhlovu JNdhlovu commented Dec 4, 2024

Story: https://app.shortcut.com/smileid/story/13730/improve-error-handling-on-android-and-ios-sdk
Improve Error Handling on android and ios sdk.

Summary

Better abstraction for

  1. Smartselfie enrollment
  2. Smartselfie authentication
  3. Document verification
  4. Enhanced document verification
  5. Biometric KYC

Known Issues

n/a

Test Instructions

  1. Test the jobs from the orchestrated screens paths
  2. Test offline mode
  3. Capture jobs and then use the submitJob method to make sure everything is working fine

Screenshot

n/a

jumaallan and others added 30 commits October 4, 2024 16:18
* setting up paparazzi

* setting up v3 instruction screen

* added selfie capture screen ui and tests

* add v2 UI

* bump up VERSION (#455)

* Bump the androidx group with 5 updates (#454)

* Bump the agp group with 2 updates (#453)

* add instruction screen to new ui

* duplicate theme and cleaning up

* updated selfie capture flow

* updated tests

---------

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix unsecure object serialization

* updated CHANGELOG.md

* updated CHANGELOG.md
* feat: scale document bitmaps based on available memory

* chore: fix docv tests

* feat: refactor on capture get memory first

* chore: undo test crashlytics

* fix: throw oom error when encountered

* chore: update changelog

* Update CHANGELOG.md

Co-authored-by: Ed Fricker <888909+beastawakens@users.noreply.github.com>

---------

Co-authored-by: Ed Fricker <888909+beastawakens@users.noreply.github.com>
* feat:sdk-navigation

* feat: type safe nav wip

* fix: undo tests renaming

* feat: custom nav types

* feat: working nav

* feat:replace composables for enrollment with graph nav

* feat: main graph and reusable composble for nav

* feat: bump compose nav versions

* feat: refactor with seperation between orchestrated and indvidual screens

* fix: tests

* chore: bump compose navigation version

* feat: docs

* feat: main nav fixes

* feat: nav complete

* feat: nav complete

* feat: nav complete

* fix: unit tests for doc v and enhanced doc v

* feat: callbacks fixes

* feat: compose stack fixes and retries

* feat: pr feedback fixes

* feat: merge main

* feat: fix transition issue delay

* fix: nav cancelled actions

* feat: pop transitions

* feat: pop transitions on orch nav

---------

Co-authored-by: Juma Allan <allanjuma@gmail.com>
* feat: bump version to 10.3.3

* feat: changelog format
Copy link

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Dec 24, 2024
Copy link

This PR was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this Dec 31, 2024
@JNdhlovu JNdhlovu reopened this Jan 2, 2025
@JNdhlovu
Copy link
Contributor Author

JNdhlovu commented Jan 2, 2025

Reopening as it was marked stale

@prfectionist
Copy link

prfectionist bot commented Jan 2, 2025

Persistent review updated to latest commit f4bce0e

@github-actions github-actions bot removed the Stale label Jan 2, 2025
Copy link

@robin-ankele robin-ankele left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few small comments and clean up. Otherwise it looks good to me.

}
}

fun onFinished(onResult: SmileIDCallback<BiometricKycResult>) = onResult(result!!)
override fun handleSubmissionFiles(jobId: String) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this something we need to fix in this PR or you want to do in a follow up PR?

@@ -113,7 +98,7 @@ class SelfieViewModel(
SharingStarted.WhileSubscribed(),
SelfieUiState(),
)
var result: SmileIDResult<SmartSelfieResult>? = null
// var result: SmileIDResult<SmartSelfieResult>? = null

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we remove it if we don't need it?

Comment on lines +71 to +73
// var result: SmileIDResult<T> = SmileIDResult.Error(
// IllegalStateException("Document Capture incomplete"),
// )

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we remove this?

}
}

override fun handleSubmissionFiles(jobId: String) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to implement this or should we add a comment that it's not needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants