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

feature/signup: 번호 인증시 reCapcha가 나오지 않도록 수정 #162

Merged
merged 8 commits into from
May 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ core/model/build/kotlin/compileDebugKotlin/cacheable/
core/designsystem/build/kotlin/compileDebugKotlin/cacheable/
core/designsystem/build/outputs/aar/
core/model/build/outputs/aar/
core/designsystem/build/tmp/kotlin-classes/debug/META-INF
core/designsystem/build/tmp/kotlin-classes/debug/META-INF
core/designsystem/build/tmp
21 changes: 20 additions & 1 deletion app/google-services.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:260494595521:android:4082b77d97edb83f428b40",
"mobilesdk_app_id": "1:260494595521:android:43c64ea8b41b8833428b40",
"android_client_info": {
"package_name": "com.kusitms.connectdog"
}
Expand All @@ -23,6 +23,25 @@
"other_platform_oauth_client": []
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:260494595521:android:a5be6ee857dccfc3428b40",
"android_client_info": {
"package_name": "com.kusitms.connectdog.feature.main"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyDqQ5mEJVaoopO1yxSahoDXJ4D6EvUf15U"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ fun ReviewDetailResponse.toData(): Review {
location = "$departureLoc → $arrivalLoc",
organization = intermediaryName,
content = content,
intermediaryId = intermediaryId
intermediaryId = intermediaryId,
postMainImage = postMainImage
)
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
12
11
0
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ data class Review(
val organization: String,
val content: String,
val contentImages: List<String>?,
val intermediaryId: Long? = null
val intermediaryId: Long? = null,
val postMainImage: String = ""
)

This file was deleted.

19 changes: 19 additions & 0 deletions feature/main/google-services.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@
"storage_bucket": "connectdog-8ace1.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:260494595521:android:ddc97a53f6eb3fae428b40",
"android_client_info": {
"package_name": "com.kusitms.connectdog"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyDqQ5mEJVaoopO1yxSahoDXJ4D6EvUf15U"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:260494595521:android:a5be6ee857dccfc3428b40",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import androidx.navigation.NavType
import androidx.navigation.compose.composable
import androidx.navigation.navArgument
import com.kusitms.connectdog.core.util.UserType
import com.kusitms.connectdog.signup.screen.common.CertificationScreen
import com.kusitms.connectdog.signup.screen.common.CompleteSignUpScreen
import com.kusitms.connectdog.signup.screen.common.RegisterEmailScreen
import com.kusitms.connectdog.signup.screen.common.RegisterPasswordScreen
import com.kusitms.connectdog.signup.screen.common.SignUpRoute
import com.kusitms.connectdog.signup.screen.intermediator.IntermediatorInformationScreen
import com.kusitms.connectdog.signup.screen.intermediator.IntermediatorProfileScreen
import com.kusitms.connectdog.signup.screen.volunteer.CertificationScreen
import com.kusitms.connectdog.signup.screen.volunteer.SelectProfileImageScreen
import com.kusitms.connectdog.signup.screen.volunteer.VolunteerProfileScreen
import com.kusitms.connectdog.signup.viewmodel.SignUpViewModel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.kusitms.connectdog.signup.screen.volunteer
package com.kusitms.connectdog.signup.screen.common

import android.annotation.SuppressLint
import android.util.Log
import android.widget.Toast
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
Expand Down Expand Up @@ -93,7 +92,6 @@ private fun Content(
val context = LocalContext.current
val isSendNumber by remember { viewModel.isSendNumber }.collectAsState()
val isCertified by remember { viewModel.isCertified }.collectAsState()
// val isDuplicatePhoneNumber = signUpViewModel.isDuplicatePhoneNumber.collectAsState()

LaunchedEffect(key1 = signUpViewModel) {
signUpViewModel.isDuplicatePhoneNumber.collect {
Expand Down Expand Up @@ -139,13 +137,15 @@ private fun Content(
buttonLabel = "인증 요청",
keyboardType = KeyboardType.Number,
padding = 5,
onTextChanged = { viewModel.updatePhoneNumber(it) },
onTextChanged = { if (it.length <= 11) viewModel.updatePhoneNumber(it) },
onClick = {
if (viewModel.phoneNumber.isEmpty()) {
Toast.makeText(context, "휴대폰 번호를 입력해주세요", Toast.LENGTH_SHORT).show()
} else {
} else if (viewModel.phoneNumber.length == 11) {
signUpViewModel.checkIsDuplicatePhoneNumber(userType, viewModel.phoneNumber)
viewModel.updateIsSendNumber(true)
} else {
Toast.makeText(context, "올바른 휴대폰 번호를 입력해주세요", Toast.LENGTH_SHORT).show()
}
}
)
Expand All @@ -159,22 +159,19 @@ private fun Content(
buttonLabel = "인증 확인",
keyboardType = KeyboardType.Number,
padding = 5,
onTextChanged = { viewModel.updateCertificationNumber(it) },
onTextChanged = { if (it.length <= 6) viewModel.updateCertificationNumber(it) },
onClick = {
Log.d("send", isSendNumber.toString())
viewModel.updateIsCertified(true)
// if (!isSendNumber) {
// Toast.makeText(context, "먼저 인증번호를 전송해주세요", Toast.LENGTH_SHORT).show()
// } else {
// if (viewModel.certificationNumber.isEmpty()) {
// Toast.makeText(context, "인증 번호를 입력해주세요", Toast.LENGTH_SHORT).show()
// } else {
// onVerifyCodeClick(it) {
// viewModel.updateIsCertified(it)
// Log.d("casz", isCertified.toString())
// }
// }
// }
if (!isSendNumber) {
Toast.makeText(context, "먼저 인증번호를 전송해주세요", Toast.LENGTH_SHORT).show()
} else {
if (viewModel.certificationNumber.isEmpty()) {
Toast.makeText(context, "인증 번호를 입력해주세요", Toast.LENGTH_SHORT).show()
} else if (viewModel.certificationNumber.length == 6) {
onVerifyCodeClick(it) { viewModel.updateIsCertified(it) }
} else {
Toast.makeText(context, "인증 번호는 6자리로 입력해주세요", Toast.LENGTH_SHORT).show()
}
}
}
)
Spacer(modifier = Modifier.weight(1f))
Expand Down
Loading