Skip to content

Commit

Permalink
remove unused class
Browse files Browse the repository at this point in the history
  • Loading branch information
ccen-stripe committed Nov 1, 2023
1 parent 00397b5 commit b64dff3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.stripe.android.identity.ui

import androidx.annotation.StringRes
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
Expand Down Expand Up @@ -62,17 +61,6 @@ internal const val SCAN_MESSAGE_TAG = "Message"
internal const val CHECK_MARK_TAG = "CheckMark"
internal const val VIEW_FINDER_ASPECT_RATIO = 1.5f

internal data class DocumentScanMessageRes(
@StringRes
val frontTitleStringRes: Int,
@StringRes
val backTitleStringRes: Int,
@StringRes
val frontMessageStringRes: Int,
@StringRes
val backMessageStringRes: Int
)

@Composable
internal fun DocumentScanScreen(
navController: NavController,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.stripe.android.identity.ui

import androidx.annotation.StringRes
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
Expand Down Expand Up @@ -55,7 +54,6 @@ import com.stripe.android.identity.navigation.navigateToFinalErrorScreen
import com.stripe.android.identity.networking.Resource
import com.stripe.android.identity.networking.Status
import com.stripe.android.identity.networking.models.Requirement
import com.stripe.android.identity.states.IdentityScanState
import com.stripe.android.identity.viewmodel.IdentityViewModel
import com.stripe.android.uicore.text.dimensionResourceSp
import kotlinx.coroutines.launch
Expand All @@ -71,14 +69,6 @@ internal enum class UploadMethod {
TAKE_PHOTO, CHOOSE_PHOTO
}

internal data class DocumentUploadSideInfo(
@StringRes
val descriptionRes: Int,
@StringRes
val checkmarkContentDescriptionRes: Int,
val scanType: IdentityScanState.ScanType
)

@Composable
internal fun UploadScreen(
navController: NavController,
Expand Down Expand Up @@ -184,6 +174,7 @@ internal fun UploadScreen(
UploadMethod.TAKE_PHOTO -> {
identityViewModel.imageHandler.takePhotoFront(localContext)
}

UploadMethod.CHOOSE_PHOTO -> {
identityViewModel.imageHandler.chooseImageFront()
}
Expand Down Expand Up @@ -250,6 +241,7 @@ internal fun UploadScreen(
UploadMethod.TAKE_PHOTO -> {
identityViewModel.imageHandler.takePhotoBack(localContext)
}

UploadMethod.CHOOSE_PHOTO -> {
identityViewModel.imageHandler.chooseImageBack()
}
Expand Down Expand Up @@ -408,6 +400,7 @@ private fun SingleSideUploadRow(
Text(text = stringResource(id = R.string.stripe_select).uppercase())
}
}

DocumentUploadUIState.Loading -> {
CircularProgressIndicator(
modifier = Modifier
Expand All @@ -416,6 +409,7 @@ private fun SingleSideUploadRow(
strokeWidth = 3.dp
)
}

DocumentUploadUIState.Done -> {
Image(
painter = painterResource(id = R.drawable.stripe_check_mark),
Expand Down

0 comments on commit b64dff3

Please sign in to comment.