Skip to content

Commit

Permalink
Save Project
Browse files Browse the repository at this point in the history
  • Loading branch information
FernandoCCNunes committed Sep 28, 2020
1 parent 1c96ed7 commit 2c7c722
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion arlocalizerview/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ext {
okHttpVersion = '4.0.1'
retrofitVersion = '2.6.1'
lifecycleVersion = "2.1.0"
camerax_version = "1.0.0-alpha04"
camerax_version = "1.0.0-beta10"

libs = [
kotlin : "org.jetbrains.kotlin:kotlin-stdlib:$versions.kotlin",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import android.util.AttributeSet
import android.util.Size
import android.view.View
import android.widget.FrameLayout
import androidx.camera.camera2.Camera2Config
import androidx.camera.core.CameraX
import androidx.camera.core.Preview
import androidx.camera.core.PreviewConfig
Expand Down Expand Up @@ -103,14 +104,7 @@ class ARLocalizerView : FrameLayout, LifecycleObserver {
}

private fun startCameraPreview() {
val preview = AutoFitPreviewBuilder.build(
PreviewConfig.Builder().build(),
texture_view
)
CameraX.bindToLifecycle(
arLocalizerComponent.arLocalizerDependencyProvider().getARViewLifecycleOwner(),
preview
)

}

private fun showErrorDialog(message: String) {
Expand Down
2 changes: 1 addition & 1 deletion buildsystem/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ext {
okHttpVersion = '4.0.1'
retrofitVersion = '2.6.1'
lifecycleVersion = "2.1.0"
camerax_version = "1.0.0-alpha04"
camerax_version = "1.0.0-beta10"

libs = [
kotlin : "org.jetbrains.kotlin:kotlin-stdlib:$versions.kotlin",
Expand Down

0 comments on commit 2c7c722

Please sign in to comment.