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

[FEAT#18] 흔들 때 진동 구현 #19

Merged
merged 2 commits into from
Jan 2, 2024
Merged

[FEAT#18] 흔들 때 진동 구현 #19

merged 2 commits into from
Jan 2, 2024

Conversation

unam98
Copy link
Collaborator

@unam98 unam98 commented Jan 1, 2024

📌 개요

#17 브랜치 merge할 때 일부 코드가 누락되어 이 브랜치에서 추가해주었습니다. (쏘리)
이 브랜치 merge 후 main에서 새 브랜치 파주세요!

✨ 작업 내용

  • 흔들기 감지 코드 세팅
  • 커스텀 진동 패턴 생성
  • 흔들 때 진동 구현

✨ PR 포인트

📸 스크린샷/동영상

@unam98 unam98 added 우남 FEAT 새로운 기능 구현 labels Jan 1, 2024
@unam98 unam98 self-assigned this Jan 1, 2024
Copy link
Collaborator

@Mnseo Mnseo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️ 커밋내용 확인했습니다 머지 부탁드립니다

Copy link
Member

@blueme0 blueme0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니당

Copy link
Collaborator

@kkk5474096 kkk5474096 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다 👍

VibrationEffect.createWaveform(vibrationPattern, amplitudes, -1) // -1은 반복 없음을 의미
vibrator.vibrate(vibrationEffect)
} else {
// API 26 미만에서는 강도 조절이 불가능하므로 간단한 진동 사용
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이걸 캐치했군요 좋습니다~~

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

근데 저희 최소 SDK 28이라 이거 없어도 괜찮지 않나요??

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kkk5474096
그렇긴 하네요. api 26이면 안드로이드 8.0, 2017년 출시인데
지금 minSdk 28은 특별한 의미 없이 임의로 고른 거라 바꿔도 되긴 합니다.

VibrationEffect가 api 26이상부터 지원하니 minSdk를 26으로 맞춰서 낮출까요?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

최소 버전은 기획 부분관련이라 소통해봐도 될거같아요~

Copy link
Collaborator

@kkk5474096 kkk5474096 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

하나만 확인해주세여~

VibrationEffect.createWaveform(vibrationPattern, amplitudes, -1) // -1은 반복 없음을 의미
vibrator.vibrate(vibrationEffect)
} else {
// API 26 미만에서는 강도 조절이 불가능하므로 간단한 진동 사용
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

근데 저희 최소 SDK 28이라 이거 없어도 괜찮지 않나요??

@unam98 unam98 merged commit bda3927 into main Jan 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEAT 새로운 기능 구현 우남
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 친해지기 / 흔들 때 진동 구현
4 participants