This file contains hidden or 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
| { | |
| "type": "micro_cashback", | |
| "detail_uuid": "fbdf6e14-bfea-4d4b-8504-842d203d6eba", | |
| "site_name": "Starbucks", | |
| "brand_image": "https://static.upside-services.com/assets/app/brands/restaurant/pwgc/starbucks_96x96.png", | |
| "total_spent": { | |
| "amount": 30.50, | |
| "currency": "USD" | |
| }, | |
| "transaction_timestamp": "2025-10-01T14:49:21+00:00", |
This file contains hidden or 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
| sealed class Intent { | |
| data object IntentA : Intent | |
| data object IntentB : Intent | |
| } | |
| init { | |
| onIntent(IntentA) | |
| } | |
| override suspend fun ExecuteIntentScope<Action>.executeIntent(mviIntent: Intent) { |
This file contains hidden or 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
| @Dao | |
| interface EventDao { | |
| @Query("SELECT count(*) FROM EventEntity") | |
| fun getCountAsFlow(): Flow<Int> | |
| } |
This file contains hidden or 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
| single<CoreAnalytics> { | |
| AndroidAnalytics( | |
| writeKey = AnalyticsBuildKonfig.segmentKey, | |
| context = get() | |
| ) { | |
| trackApplicationLifecycleEvents = true | |
| collectDeviceId = true | |
| flushInterval = 10 | |
| defaultSettings = run { | |
| val settings = <redacted code which decodes settings from secret json key> |
This file contains hidden or 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
| { | |
| "generation_status": "COMPLETED", | |
| "mapview_pins": [ | |
| { | |
| "offer_uuid": "4907a3d3-71e9-4ca4-9539-1be0238e814d", | |
| "offer_type": "INCREMENTAL", | |
| "offer_category": "GAS", | |
| "location": { | |
| "geo_location": { | |
| "longitude": -122.0319137, |
This file contains hidden or 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
| private val onboardingMapiRfaaDecisionMap = mapOf( | |
| "displayOnboardingPopup" to Decision( | |
| flag = FeatureFlag.Upside.OnboardingMapiRfaa, | |
| enabled = true, | |
| variables = OnboardingMapiVariables(true), | |
| ) | |
| "hideOnboardingPopup" to Decision( | |
| flag = FeatureFlag.Upside.OnboardingMapiRfaa, | |
| enabled = true, |
This file contains hidden or 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
| sealed interface FeatureFlagType { | |
| val value: Any? | |
| data class Boolean(override val value: kotlin.Boolean) : FeatureFlagType | |
| data class Int(override val value: kotlin.Int) : FeatureFlagType | |
| data class Double(override val value: kotlin.Double) : FeatureFlagType | |
| data class String(override val value: kotlin.String) : FeatureFlagType | |
| data class Map(override val value: kotlin.collections.Map<kotlin.String, FeatureFlagType>) : FeatureFlagType | |
| } |
This file contains hidden or 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
| @PerActivity | |
| class BottomSheetDialogCommunicator @Inject constructor() { | |
| val flow = MutableSharedFlow<BottomSheetDialogMessage>() | |
| } | |
| sealed interface BottomSheetDialogMessage | |
| sealed interface ReminderMessage : BottomSheetDialogMessage { | |
| data class Test(val text: String) : ReminderMessage | |
| } |