-
Notifications
You must be signed in to change notification settings - Fork 3
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
#91/feature/jsp/app enhancement3 #143
Merged
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
60a7aef
#91 λκΈ κΈ°λ₯ ꡬν μλ£
pknujsp 60c4638
#91 μΉ΄λ©λΌ μ€λ₯ μμ
pknujsp cf0bda5
#91 κ΄μ¬ μ½ μ²λ¦¬ λ°μ΄ν° λͺ¨λΈ μμ±
pknujsp e35e458
#91 κ΄μ¬ μ½ μ²λ¦¬ DataSource λ‘μ§μΆκ°
pknujsp 6924768
#91 μ½ κ΄μ¬ μΆκ°/λͺ©λ‘/μμ /νμΈ λ‘μ§ λ°μ΄ν° μμ λΆλΆ μμ
μ
pknujsp 1f57020
#91 μ½ κ΄μ¬ μ²λ¦¬ λ‘μ§ μ μ μλ£
pknujsp 9b97aee
#91 κ΄μ¬ μ½ κ΄λ ¨ λ°μ΄ν° λͺ¨λΈ ν¨ν€μ§ μ€λ₯ μμ
pknujsp 17b1b81
#91 λ€νΈμν¬ μ°κ²° νμΈ λ€μ΄μΌλ‘κ·Έ μΆκ°
pknujsp 7a89aaa
#91 λ€νΈμν¬ μ°κ²° νμΈ λ€μ΄μΌλ‘κ·Έ μμ
μλ£
pknujsp 5db9032
Merge branch 'android_develop' into #91/feature/jsp/app_enhancement3
pknujsp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
app/src/main/java/com/android/mediproject/NetworkStateDialogFragment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.android.mediproject | ||
|
||
import android.os.Bundle | ||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import com.android.mediproject.databinding.ViewNetworkStateBinding | ||
import com.google.android.material.bottomsheet.BottomSheetDialogFragment | ||
import dagger.hilt.android.AndroidEntryPoint | ||
|
||
@AndroidEntryPoint | ||
class NetworkStateDialogFragment : BottomSheetDialogFragment() { | ||
|
||
private var _binding: ViewNetworkStateBinding? = null | ||
|
||
private val binding get() = _binding!! | ||
|
||
override fun onCreateView( | ||
inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? | ||
): View = ViewNetworkStateBinding.inflate(layoutInflater, container, false).also { | ||
_binding = it | ||
}.root | ||
|
||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | ||
super.onViewCreated(view, savedInstanceState) | ||
binding.okButton.setOnClickListener { | ||
dismiss() | ||
requireActivity().finish() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
style="@style/ModalBottomSheetDialog" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:backgroundTint="@color/white" | ||
android:gravity="center" | ||
android:orientation="vertical" | ||
android:paddingHorizontal="24dp" | ||
android:paddingVertical="24dp" | ||
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"> | ||
|
||
<TextView | ||
android:id="@+id/messageTextView" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="16dp" | ||
android:gravity="center" | ||
android:text="@string/noInternetConnection" | ||
android:textSize="22sp" /> | ||
|
||
<Button | ||
android:id="@+id/okButton" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:backgroundTint="@color/main" | ||
android:text="@string/confirm" /> | ||
|
||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<style name="ModalBottomSheet" parent="Widget.Material3.BottomSheet.Modal"> | ||
<item name="android:backgroundTint">@color/white</item> | ||
<item name="behavior_hideable">false</item> | ||
<item name="behavior_draggable">false</item> | ||
</style> | ||
|
||
<style name="ModalBottomSheetDialog" parent="ThemeOverlay.Material3.BottomSheetDialog"> | ||
<item name="bottomSheetStyle">@style/ModalBottomSheet</item> | ||
</style> | ||
|
||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,4 +72,5 @@ | |
<string name="efficacyGroupDuplicationCaution">ν¨λ₯κ΅° μ€λ³΅</string> | ||
<string name="divisionCaution">λΆν μ£Όμ</string> | ||
<string name="additiveCaution">첨κ°μ μ£Όμ</string> | ||
<string name="noInternetConnection">μΈν°λ· μ°κ²°μ΄ νμν©λλ€.</string> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. μΈν°λ· μ°κ²° λ‘μ§λ νμ ¨λμ γ γ·γ· |
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 12 additions & 2 deletions
14
...m/android/mediproject/core/data/remote/interestedmedicine/InterestedMedicineRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
package com.android.mediproject.core.data.remote.interestedmedicine | ||
|
||
|
||
import com.android.mediproject.core.model.medicine.InterestedMedicine.InterestedMedicineListResponse | ||
import com.android.mediproject.core.model.interestedmedicine.DeleteInterestedMedicineResponse | ||
import com.android.mediproject.core.model.interestedmedicine.InterestedMedicineListResponse | ||
import com.android.mediproject.core.model.interestedmedicine.IsInterestedMedicineResponse | ||
import com.android.mediproject.core.model.interestedmedicine.NewInterestedMedicineResponse | ||
import com.android.mediproject.core.model.requestparameters.AddInterestedMedicineParameter | ||
import kotlinx.coroutines.flow.Flow | ||
|
||
interface InterestedMedicineRepository { | ||
suspend fun getInterestedMedicineList() : Flow<Result<List<InterestedMedicineListResponse.Medicine>>> | ||
suspend fun getInterestedMedicineList(): Flow<Result<List<InterestedMedicineListResponse.Medicine>>> | ||
|
||
fun addInterestedMedicine(addInterestedMedicineParameter: AddInterestedMedicineParameter): Flow<Result<NewInterestedMedicineResponse>> | ||
|
||
fun deleteInterestedMedicine(medicineId: Long): Flow<Result<DeleteInterestedMedicineResponse>> | ||
|
||
fun isInterestedMedicine(itemSeq: Long): Flow<Result<IsInterestedMedicineResponse>> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Edittext κ΄λ ¨ μ½λλ§μ£ ?!