@@ -29,6 +29,7 @@ import au.com.shiftyjelly.pocketcasts.sharing.BuildConfig.META_APP_ID
29
29
import au.com.shiftyjelly.pocketcasts.sharing.BuildConfig.SERVER_SHORT_URL
30
30
import au.com.shiftyjelly.pocketcasts.sharing.BuildConfig.WEB_BASE_HOST
31
31
import au.com.shiftyjelly.pocketcasts.sharing.SocialPlatform.DayOne
32
+ import au.com.shiftyjelly.pocketcasts.sharing.SocialPlatform.DayOneDebug
32
33
import au.com.shiftyjelly.pocketcasts.sharing.SocialPlatform.Instagram
33
34
import au.com.shiftyjelly.pocketcasts.sharing.SocialPlatform.More
34
35
import au.com.shiftyjelly.pocketcasts.sharing.SocialPlatform.PocketCasts
@@ -112,12 +113,13 @@ class SharingClient(
112
113
)
113
114
}
114
115
115
- DayOne , WhatsApp , Telegram , X , Tumblr , More -> {
116
+ DayOne , DayOneDebug , WhatsApp , Telegram , X , Tumblr , More -> {
116
117
val intent = Intent ()
117
118
.setAction(Intent .ACTION_SEND )
118
119
.setType(" text/plain" )
119
120
.putExtra(EXTRA_TEXT , data.sharingUrl(hostUrl))
120
121
.putExtra(EXTRA_TITLE , data.sharingTitle())
122
+ .putExtra(" APP_CODE" , " PCASTS" )
121
123
.setPackage(platform.packageId)
122
124
.addFlags(FLAG_GRANT_READ_URI_PERMISSION )
123
125
data.podcast?.let {
@@ -185,7 +187,7 @@ class SharingClient(
185
187
)
186
188
}
187
189
188
- DayOne , Instagram , WhatsApp , Telegram , X , Tumblr , More -> {
190
+ DayOne , DayOneDebug , Instagram , WhatsApp , Telegram , X , Tumblr , More -> {
189
191
Intent ()
190
192
.setAction(Intent .ACTION_SEND )
191
193
.setType(" text/plain" )
@@ -236,7 +238,7 @@ class SharingClient(
236
238
)
237
239
}
238
240
239
- DayOne , WhatsApp , Telegram , X , Tumblr , PocketCasts , More -> {
241
+ DayOne , DayOneDebug , WhatsApp , Telegram , X , Tumblr , PocketCasts , More -> {
240
242
val backgroundImage = requireNotNull(backgroundImage) { " Sharing a video requires a background image" }
241
243
val cardType = requireNotNull(cardType as VisualCardType ) { " Video must be shared with a visual card" }
242
244
val file = mediaService.clipVideo(data.podcast, data.episode, data.range, cardType, backgroundImage).getOrThrow()
@@ -487,6 +489,7 @@ data class SharingRequest internal constructor(
487
489
488
490
private val SocialPlatform .analyticsValue get() = when (this ) {
489
491
DayOne -> " day_one"
492
+ DayOneDebug -> " day_one_debug"
490
493
Instagram -> " ig_story"
491
494
WhatsApp -> " whats_app"
492
495
Telegram -> " telegram"
0 commit comments