-
Notifications
You must be signed in to change notification settings - Fork 663
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
Get completion loop frame count from initialize client #5679
Get completion loop frame count from initialize client #5679
Conversation
val compressionRatio: Double, | ||
val imageSize: Size, | ||
val imageCount: Int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefer immutability
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since these configs won't be available immediately, where do you set default values?
imageSize = Size(width, height) | ||
} | ||
} | ||
val DEFAULT = ImageSettings(0.92, Size(1080, 1920), 3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jaimepark-stripe these are the default values
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh woops! didnt see this. ty!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯 / 10 🔥 🔥 ❇️ 🚢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice change! love that this change accounts for unknown fields 🚢
@awush-stripe do we want to merge this if we decide the lower compression ratio is good enough? |
discussed offline, we'll still merge this. |
@@ -4,8 +4,7 @@ import android.util.Size | |||
import androidx.test.filters.SmallTest | |||
import com.stripe.android.stripecardscan.framework.util.AcceptedImageConfigs | |||
import com.stripe.android.stripecardscan.framework.util.ImageFormat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary
Get the completion loop frame count for CIV from the call to initialize_client
Motivation
We've been seeing elevated 4xx errors due to verification payloads being too large. This reduces the number of images sent.
Testing