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

Update Fotoapparat dependency to 2.2.0 #178

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chirayudesai
Copy link

This needed some code changes as Fotoapparat was re-written in Kotlin

@@ -11,6 +11,7 @@ buildscript {

allprojects {
repositories {
google()
Copy link
Author

Choose a reason for hiding this comment

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

Unrelated, but I couldn't compile without this, it tried to include "com.android.support" by default and couldn't find it.

@@ -136,11 +137,10 @@ protected void onCreate(Bundle savedInstanceState) {
fotoapparat = Fotoapparat
.with(this)
.into(cameraView)
.previewScaleType(ScaleType.CENTER_CROP)
.photoSize(biggestSize())
Copy link
Author

Choose a reason for hiding this comment

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

Need to see what this can be, we have photoResolution and previewResolution available separately now, and values taken is highestResolution

@chirayudesai
Copy link
Author

I used this code while working on our Attestation app 1, thought I might as well push the changes here.

One thing I noticed (before and after the update) is that preview is laggy on debug app builds, for more details see: RedApparat/Fotoapparat#205

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.

1 participant