Skip to content

Commit

Permalink
fix: server connection
Browse files Browse the repository at this point in the history
  • Loading branch information
jakehsj committed Dec 10, 2023
1 parent 31b6eb5 commit 4bb2e3b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ fun HomeScreen(
CustomMarkerRenderer(context, map, clusterManager)
val defaultClusterRenderer =
clusterManager.renderer as DefaultClusterRenderer<MyItem>
defaultClusterRenderer.minClusterSize = 3
defaultClusterRenderer.minClusterSize = 10
clusterManager.cluster()

defaultClusterRenderer.setOnClusterItemClickListener {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fun LogInScreen(
val color = if (isPressed) CRed else Color.DarkGray//CDarkGreen
val coroutineScope = rememberCoroutineScope()
val retrofit = Retrofit.Builder()
.baseUrl("http://ec2-54-180-101-207.ap-northeast-2.compute.amazonaws.com")
.baseUrl("http://ec2-13-125-245-104.ap-northeast-2.compute.amazonaws.com")
.addConverterFactory(GsonConverterFactory.create())
.build()

Expand Down Expand Up @@ -162,6 +162,7 @@ fun LogInScreen(
try{
response = apiService.login(LoginBody(id, password))
} catch(e: Exception){
Log.d("LogInScreen", "error: $e")
Toast.makeText(context, "아이디 또는 비밀번호가 일치하지 않습니다.", Toast.LENGTH_SHORT).show()
return@launch
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fun SignUpScreen(

// val (phoneNumber, phoneNumberValue) = remember { mutableStateOf("") }
val retrofit = Retrofit.Builder()
.baseUrl("http://ec2-54-180-101-207.ap-northeast-2.compute.amazonaws.com")
.baseUrl("http://ec2-13-125-245-104.ap-northeast-2.compute.amazonaws.com")
.addConverterFactory(GsonConverterFactory.create())
.build()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fun createRetrofit(context: Context): Retrofit {
.build()

return Retrofit.Builder()
.baseUrl("http://ec2-54-180-101-207.ap-northeast-2.compute.amazonaws.com")
.baseUrl("http://ec2-13-125-245-104.ap-northeast-2.compute.amazonaws.com")
.addConverterFactory(GsonConverterFactory.create())
.client(okHttpClient)
.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fun LoginSuccess(context: Context, navController: NavHostController = rememberNa
"restaurant/{restaurantId}" -> false
"reviewDetail/{reviewId}" -> false
"fooriend/{userId}" -> false
"writeReview/{restaurantPlaceId}" -> false
"writeReview/{restaurantPlaceId}/{restaurantName}" -> false
"logout" -> false
"myInfo" -> false
else -> true // in all other cases show the bottom bar
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/src/main/res/xml/network_security_config.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">ec2-54-180-101-207.ap-northeast-2.compute.amazonaws.com</domain>
<domain includeSubdomains="true">ec2-13-125-245-104.ap-northeast-2.compute.amazonaws.com</domain>
</domain-config>
</network-security-config>

0 comments on commit 4bb2e3b

Please sign in to comment.