Skip to content

Commit

Permalink
release 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jaehan4707 committed Dec 7, 2023
1 parent b3361f1 commit 846df84
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 16 deletions.
4 changes: 2 additions & 2 deletions AOS/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ android {
applicationId = "boostcamp.and07.mindsync"
minSdk = 26
targetSdk = 34
versionCode = 1
versionName = "0.3.0"
versionCode = 2
versionName = "0.3.1"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
buildConfigField("String", "BASE_URL", "$url")
buildConfigField("String", "GOOGLE_SERVER_CLIENT_ID", "$googleServerClientId")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class BoardListViewModel
}

fun addBoard(
part: MultipartBody.Part,
part: MultipartBody.Part?,
name: String,
) {
viewModelScope.launch(coroutineExceptionHandler) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class CreateBoardDialog : DialogFragment() {

private val createBoardViewModel: CreateBoardViewModel by viewModels()

private var completeListener: ((MultipartBody.Part, String) -> (Unit))? = null
private var completeListener: ((MultipartBody.Part?, String) -> (Unit))? = null

private val pickMedia =
registerForActivityResult(ActivityResultContracts.PickVisualMedia()) { url ->
Expand All @@ -59,7 +59,6 @@ class CreateBoardDialog : DialogFragment() {
registerForActivityResult(
ActivityResultContracts.StartActivityForResult(),
) { result ->
Log.d("CreateBoardDialog", "result: ${result.resultCode}")
if (result.resultCode == RESULT_OK) {
result.data?.data?.let { uri ->
createImage(uri)
Expand Down Expand Up @@ -96,7 +95,7 @@ class CreateBoardDialog : DialogFragment() {
resizeDialog()
}

fun setCompleteListener(listener: (MultipartBody.Part, String) -> (Unit)) {
fun setCompleteListener(listener: (MultipartBody.Part?, String) -> (Unit)) {
this.completeListener = listener
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@ class CreateBoardViewModel
}
}

fun changeImageToFile(imageName: String): Pair<MultipartBody.Part, String>? {
fun changeImageToFile(imageName: String): Pair<MultipartBody.Part?, String> {
val name = _uiState.value.boardName
imageFile?.let { imageFile ->
val icon = fileToMultiPart(imageFile, imageName)
val name = _uiState.value.boardName
return Pair(icon, name)
} ?: run {
return Pair(null, name)
}
return null
}

fun setImageFile(file: File) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import boostcamp.and07.mindsync.ui.base.BaseActivity
import boostcamp.and07.mindsync.ui.base.BaseActivityViewModel
import boostcamp.and07.mindsync.ui.space.SpaceEvent
import boostcamp.and07.mindsync.ui.util.ImagePickerHandler
import boostcamp.and07.mindsync.ui.util.SpaceExceptionMessage
import boostcamp.and07.mindsync.ui.util.toAbsolutePath
import com.google.android.material.snackbar.Snackbar
import dagger.hilt.android.AndroidEntryPoint
Expand Down Expand Up @@ -56,10 +55,10 @@ class AddSpaceActivity : BaseActivity<ActivityAddSpaceBinding>(R.layout.activity
finish()
}

is Error -> {
is SpaceEvent.Error -> {
Snackbar.make(
binding.root,
SpaceExceptionMessage.ERROR_MESSAGE_SPACE_ADD.message,
spaceEvent.message,
Snackbar.LENGTH_SHORT,
)
.show()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package boostcamp.and07.mindsync.ui.space.generate

import android.util.Log
import android.widget.Space
import androidx.lifecycle.viewModelScope
import boostcamp.and07.mindsync.data.repository.login.LogoutEventRepository
import boostcamp.and07.mindsync.data.repository.space.SpaceRepository
Expand Down Expand Up @@ -68,6 +70,10 @@ class AddSpaceViewModel
_event.emit(SpaceEvent.Success)
}
}
} ?: run{
viewModelScope.launch(coroutineExceptionHandler){
_event.emit(SpaceEvent.Error("์‚ฌ์ง„์„ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”"))
}
}
}
}
2 changes: 1 addition & 1 deletion AOS/app/src/main/res/layout/navigation_drawer_side_bar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rcv_side_bar_users"
android:layout_width="wrap_content"
android:layout_width="0dp"
app:users="@{vm.uiState.users}"
android:layout_height="wrap_content"
app:flexBoxLayoutManager="@{FlexDirection.ROW}"
Expand Down
7 changes: 4 additions & 3 deletions AOS/release_note.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
2023.12.08
version: 0.3.0
version: 0.3.1
๐Ÿ’ป Feature Updates
- ์นด์นด์˜ค ๋กœ๊ทธ์ธ
- ๋งˆ์ธ๋“œ ๋งต
Expand All @@ -18,8 +18,9 @@ version: 0.3.0
- ์ด๋ฏธ์ง€ ํŽธ์ง‘
- ๋‹‰๋„ค์ž„ ํŽธ์ง‘
๐ŸžBug Fix
- ํŠธ๋ฆฌ ์ €์žฅ ๋ฒ„๊ทธ ํ•ด๊ฒฐ
- ํ”„๋กœํ•„ ๋‹ค์ด์–ผ๋กœ๊ทธ ํšŒ์ „ ๋ฒ„๊ทธ ํ•ด๊ฒฐ
- ์‚ฌ์šฉ์ž๊ฐ€ ๋งŽ์„ ๊ฒฝ์šฐ ํ™”๋ฉด์„ ๋ฒ—์–ด๋‚˜๋Š” ๋ฒ„๊ทธ ํ•ด๊ฒฐ
- ๋ณด๋“œ ์ถ”๊ฐ€ ์ด๋ฏธ์ง€ ์„ ํƒ ์•ˆํ•  ๊ฒฝ์šฐ ๋Œ€์‘
- ์ŠคํŽ˜์ด์Šค ์ถ”๊ฐ€ ์‚ฌ์ง„ ์„ ํƒ ์•ˆํ•  ๊ฒฝ์šฐ ๋Œ€์‘
๐Ÿ’ก Information
- ๋™์‹œ์— ๊ฐ™์€ ๊ณต๊ฐ„(์ŠคํŽ˜์ด์Šค/๋ณด๋“œ)์— ์ ‘์†ํ•ด์žˆ๋Š” ์‚ฌ์šฉ์ž๋ผ๋ฆฌ ์„œ๋กœ์˜ ํŽธ์ง‘ ๋‚ด์šฉ์„ ์‹ค์‹œ๊ฐ„์œผ๋กœ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
- ๋‹ค๋ฅธ์‚ฌ๋žŒ์„ ์ž์‹ ์˜ ์ŠคํŽ˜์ด์Šค์— ์ดˆ๋Œ€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Expand Down

0 comments on commit 846df84

Please sign in to comment.