generated from GO-SOPT-ANDROID/android-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MERGE/#3] merge develop into seminar2
- Loading branch information
Showing
10 changed files
with
101 additions
and
31 deletions.
There are no files selected for viewing
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,16 +1,39 @@ | ||
### 리드미는 주로 블로그, 노션 제출 과제의 링크를 첨부하는데 써주시면 됩니다. 그 외엔 자유롭게 이용해주세요 ! | ||
|
||
## 과제 링크 제출란 | ||
|
||
## 템플릿 설명 | ||
## Template Description | ||
``` | ||
레포지터리에는 총 2개의 브랜치가 있습니다. | ||
### main | ||
가장 기본이 되는 브랜치입니다. 새로운 연습 환경을 만들고자 할때 이 브랜치에서 새로운 브랜치를 파셔서 만드시면 됩니다. | ||
### develop | ||
여러분의 대부분의 과제는 이 브랜치에서 이뤄지게 될 것입니다. | ||
main : 가장 기본이 되는 브랜치입니다. 새로운 연습 환경을 만들고자 할때 이 브랜치에서 새로운 브랜치를 파셔서 만드시면 됩니다. | ||
develop : 여러분의 대부분의 과제는 이 브랜치에서 이뤄지게 될 것입니다. | ||
develop/view 브랜치에서 새로운 feature 브랜치(seminar1, week1, feature/1 등 자유)를 파고 작업을 진행하면서 | ||
|
||
과제를 완료하면 해당 과제를 develop PR을 올려주시고 금잔디조원들에게 코드리뷰를 받으시면 됩니다 ! | ||
|
||
머지까지 완료하시면 과제 완료로 인정하겠습니다 ! | ||
``` | ||
<br> | ||
|
||
## Summary | ||
| Week | Topic | Link | | ||
| :--: | :---: | :--: | | ||
| 1 | Activity Life Cycle | [🔗](https://github.com/GO-SOPT-ANDROID/chaeyeon-jeon/blob/seminar1/summary/Activity%20Life%20Cycle.md) | | ||
| | EditText inputType | [🔗](https://github.com/GO-SOPT-ANDROID/chaeyeon-jeon/blob/seminar1/summary/EditText%20inputType.md) | | ||
| | Task & Back Stack | [🔗](https://github.com/GO-SOPT-ANDROID/chaeyeon-jeon/blob/seminar1/summary/Task%20%26%20Back%20Stack.md) | | ||
<br> | ||
|
||
<!-- | ||
| | | [🔗]() | | ||
--> | ||
|
||
|
||
## Commit Convention | ||
- ✨ **[FEAT]** : 새로운 기능 구현 | ||
- ✅ **[MOD]** : 코드 수정 및 내부 파일 수정 | ||
- ➕ **[ADD]** : 부수적인 코드 추가 및 라이브러리 추가, 새로운 파일 생성 | ||
- 🎀 **[CHORE]** : 버전 코드 수정, 패키지 구조 변경, 타입 및 변수명 변경 등의 작은 작업 | ||
- ⚰️ **[DEL]** : 쓸모없는 코드나 파일 삭제 | ||
- 💄 **[UI]** : UI 작업 | ||
- 🔨 **[FIX]** : 버그 및 오류 해결 | ||
- 🚑️ **[HOTFIX]** : issue나 QA에서 문의된 급한 버그 및 오류 해결 | ||
- 🔀 **[MERGE]** : 다른 브랜치와의 MERGE | ||
- 🚚 **[MOVE]** : 프로젝트 내 파일이나 코드의 이동 | ||
- ⏪️ **[RENAME]** : 파일 이름 변경 | ||
- ♻️ **[REFACTOR]** : 전면 수정 | ||
- 📝 **[DOCS]** : README나 WIKI 등의 문서 개정 |
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
25 changes: 25 additions & 0 deletions
25
app/src/main/java/org/android/go/sopt/presentation/main/MainViewModel.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,25 @@ | ||
package org.android.go.sopt.presentation.main | ||
|
||
import androidx.lifecycle.MutableLiveData | ||
import androidx.lifecycle.ViewModel | ||
import dagger.hilt.android.lifecycle.HiltViewModel | ||
import org.android.go.sopt.data.entity.User | ||
import org.android.go.sopt.domain.AuthRepository | ||
import javax.inject.Inject | ||
|
||
@HiltViewModel | ||
class MainViewModel @Inject constructor( | ||
private val authRepository: AuthRepository, | ||
) : ViewModel() { | ||
val signedUpUser = MutableLiveData<User>() | ||
|
||
init { | ||
signedUpUser.value = getSignedUpUser() | ||
} | ||
|
||
private fun getSignedUpUser(): User = authRepository.getSignedUpUser() ?: User() | ||
|
||
fun clearLocalPref() { | ||
authRepository.clearLocalPref() | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package org.android.go.sopt.util.type | ||
|
||
enum class MBTI { | ||
ISTJ, ISFJ, INFJ, INTJ, ISTP, ISFP, INFP, INTP, ESTP, ESFP, ENFP, ENTP, ESTJ, ESFJ, ENFJ, ENTJ | ||
NONE, ISTJ, ISFJ, INFJ, INTJ, ISTP, ISFP, INFP, INTP, ESTP, ESFP, ENFP, ENTP, ESTJ, ESFJ, ENFJ, ENTJ | ||
} |
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