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

WIP: Add ktx library module #74

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

mdocevski-infinum
Copy link

Added analog of GoldfingerRx that supports kotlin flows, named GoldfingerKtx in new module ktx.

@mdocevski-infinum mdocevski-infinum marked this pull request as draft May 12, 2021 12:16
@mdocevski-infinum mdocevski-infinum requested a review from Aksi0m May 12, 2021 12:16
@mdocevski-infinum
Copy link
Author

mdocevski-infinum commented May 12, 2021

@Aksi0m the PR is not completely ready, but I wanted some early feedback from you, if you can manage.
I am currently using it on a project, but it's not been battle tested yet.

Comment on lines 22 to 36
suspend fun authenticate(
params: PromptParams,
): Flow<Goldfinger.Result>

suspend fun encrypt(
params: PromptParams,
key: String,
value: String,
): Flow<Goldfinger.Result>

suspend fun decrypt(
params: PromptParams,
key: String,
value: String,
): Flow<Goldfinger.Result>

Choose a reason for hiding this comment

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

The functions returning Flow should not be suspending, which you can do easily since in the implementation inGoldfingerFlow is not suspending

Copy link
Author

Choose a reason for hiding this comment

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

Indeed, will correct

@mdocevski-infinum
Copy link
Author

Updated kotlint to 1.5.10 and coroutines to 1.5.0
Removed redundant suspend modifiers.
Limited Flows' capacity to 1.

@RahulSDeshpande
Copy link

RahulSDeshpande commented Jun 29, 2022

@mdocevski-infinum & @davidvinf

Guys, can we fix the conflicts & merge this PR?
Having a Kotlin support is so much necessary.

Copy link

sonarqubecloud bot commented Apr 8, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

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

Successfully merging this pull request may close these issues.

5 participants