-
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.
* [feature] 공유하기 util 함수 구현 * [chore] 준비중 토스트 제거 및 TODO 생성 * [chore] 로그 제거 * [chore] 함수 이름 수정 * [chore] 토스트 제거 및 shoreUrlLink 함수 적용 * [chore] 함수 들여쓰기 추가 * [chore] 카카오 공유 설정 추가 * [chore] 카카오 sdk maven 추가 * [chore] 카카오 공유하기 라이브러리 추가 * [feature] 카카오 SDK 초기화 구현 * [chore] 클래스 이름 수정 * [chore] 클래스 이름 수정 * [chore] 클래스 이름 수정 * [feature] 회원가입시 userId 저장 구현 * [feature] 포킷 카카오톡 공유 구현 * [chore] 코딩 컨벤션 반영
- Loading branch information
Showing
23 changed files
with
210 additions
and
66 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
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
16 changes: 16 additions & 0 deletions
16
core/feature/src/main/java/pokitmons/pokit/core/feature/utils/ShareUrlLink.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,16 @@ | ||
package pokitmons.pokit.core.feature.utils | ||
|
||
import android.content.Context | ||
import android.content.Intent | ||
|
||
fun ShareUrlLink( | ||
context: Context, | ||
url: String, | ||
chooserTitle: String = "Pokit", | ||
) { | ||
val intent = Intent(Intent.ACTION_SEND).apply { | ||
type = "text/plain" | ||
putExtra(Intent.EXTRA_TEXT, url) | ||
} | ||
context.startActivity(Intent.createChooser(intent, chooserTitle)) | ||
} |
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
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.