Skip to content

Commit

Permalink
feat(share): support old arch android
Browse files Browse the repository at this point in the history
  • Loading branch information
mym0404 committed Apr 27, 2024
1 parent d8f1467 commit 47e047f
Showing 1 changed file with 1 addition and 50 deletions.
51 changes: 1 addition & 50 deletions packages/share/android/src/oldarch/KakaoShareSpec.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,60 +3,11 @@ package net.mjstudio.rnkakao.share
import com.facebook.react.bridge.Promise
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactContextBaseJavaModule
import com.facebook.react.bridge.ReadableArray
import com.facebook.react.bridge.ReadableMap

abstract class KakaoShareSpec internal constructor(context: ReactApplicationContext) :
ReactContextBaseJavaModule(context) {
abstract fun shareCustom(
templateId: Double,
useWebBrowserIfKakaoTalkNotAvailable: Boolean,
templateArgs: ReadableMap?,
serverCallbackArgs: ReadableMap?,
promise: Promise,
)

abstract fun shareFeedTemplate(
value: ReadableMap,
useWebBrowserIfKakaoTalkNotAvailable: Boolean,
serverCallbackArgs: ReadableMap?,
promise: Promise,
)

abstract fun shareListTemplate(
value: ReadableMap,
useWebBrowserIfKakaoTalkNotAvailable: Boolean,
serverCallbackArgs: ReadableMap?,
promise: Promise,
)

abstract fun shareLocationTemplate(
value: ReadableMap,
useWebBrowserIfKakaoTalkNotAvailable: Boolean,
serverCallbackArgs: ReadableMap?,
promise: Promise,
)

abstract fun shareCommerceTemplate(
value: ReadableMap,
useWebBrowserIfKakaoTalkNotAvailable: Boolean,
serverCallbackArgs: ReadableMap?,
promise: Promise,
)

abstract fun shareTextTemplate(
value: ReadableMap,
useWebBrowserIfKakaoTalkNotAvailable: Boolean,
serverCallbackArgs: ReadableMap?,
promise: Promise,
)

abstract fun shareCalendarTemplate(
value: ReadableMap,
useWebBrowserIfKakaoTalkNotAvailable: Boolean,
serverCallbackArgs: ReadableMap?,
promise: Promise,
)

abstract fun shareOrSendMeOrSendFriendOrWhatever(
sendType: String,
templateType: String,
Expand Down

0 comments on commit 47e047f

Please sign in to comment.