Searched refs:UpdatesStateEvent (Results 1 – 13 of 13) sorted by relevance
9 sealed class UpdatesStateEvent(val type: UpdatesStateEventType) { class10 class Check : UpdatesStateEvent(UpdatesStateEventType.Check)11 class Download : UpdatesStateEvent(UpdatesStateEventType.Download)12 …class CheckError(private val errorMessage: String) : UpdatesStateEvent(UpdatesStateEventType.Check…18 …class DownloadError(private val errorMessage: String) : UpdatesStateEvent(UpdatesStateEventType.Do…24 …class CheckCompleteUnavailable() : UpdatesStateEvent(UpdatesStateEventType.CheckCompleteUnavailabl…26 …class CheckCompleteWithRollback(val commitTime: Date) : UpdatesStateEvent(UpdatesStateEventType.Ch…27 class DownloadComplete : UpdatesStateEvent(UpdatesStateEventType.DownloadComplete)28 …class DownloadCompleteWithUpdate(val manifest: JSONObject) : UpdatesStateEvent(UpdatesStateEventTy…29 class DownloadCompleteWithRollback : UpdatesStateEvent(UpdatesStateEventType.DownloadComplete)[all …]
36 sendChangeEventToJS(UpdatesStateEvent.Restart()) in reset()43 fun processEvent(event: UpdatesStateEvent) { in processEvent()55 private fun transition(event: UpdatesStateEvent): Boolean { in transition()65 private fun sendChangeEventToJS(event: UpdatesStateEvent) { in sendChangeEventToJS()104 is UpdatesStateEvent.Check -> context.copy(isChecking = true) in reduceContext()105 is UpdatesStateEvent.CheckCompleteUnavailable -> context.copy( in reduceContext()121 is UpdatesStateEvent.CheckCompleteWithUpdate -> context.copy( in reduceContext()129 is UpdatesStateEvent.CheckError -> context.copy( in reduceContext()135 is UpdatesStateEvent.DownloadComplete -> context.copy( in reduceContext()154 is UpdatesStateEvent.DownloadError -> context.copy( in reduceContext()[all …]
49 internal protocol UpdatesStateEvent { protocol57 internal struct UpdatesStateEventCheck: UpdatesStateEvent {65 internal struct UpdatesStateEventDownload: UpdatesStateEvent {73 internal struct UpdatesStateEventRestart: UpdatesStateEvent {81 internal struct UpdatesStateEventCheckError: UpdatesStateEvent {91 internal struct UpdatesStateEventDownloadError: UpdatesStateEvent {117 internal struct UpdatesStateEventCheckComplete: UpdatesStateEvent {141 internal struct UpdatesStateEventDownloadComplete: UpdatesStateEvent {289 internal func processEvent(_ event: UpdatesStateEvent) { in processEvent()305 private func transition(_ event: UpdatesStateEvent) -> Bool { in transition()[all …]
242 internal static func sendStateEvent(_ event: UpdatesStateEvent) { in sendStateEvent()
355 var event: UpdatesStateEvent = UpdatesStateEventCheckComplete() in appController()
7 import expo.modules.updates.statemachine.UpdatesStateEvent44 machine.processEvent(UpdatesStateEvent.Check()) in test_handleCheckAndCheckCompleteAvailable()50 UpdatesStateEvent.CheckCompleteWithUpdate( in test_handleCheckAndCheckCompleteAvailable()67 machine.processEvent(UpdatesStateEvent.Check()) in test_handleCheckCompleteUnavailable()87 machine.processEvent(UpdatesStateEvent.Download()) in test_handleDownloadAndDownloadComplete()93 UpdatesStateEvent.DownloadCompleteWithUpdate( in test_handleDownloadAndDownloadComplete()112 machine.processEvent(UpdatesStateEvent.Check()) in test_handleRollback()131 machine.processEvent(UpdatesStateEvent.Check()) in test_checkError()151 machine.processEvent(UpdatesStateEvent.Check()) in test_invalidTransitions()154 machine.processEvent(UpdatesStateEvent.Download()) in test_invalidTransitions()[all …]
49 internal protocol UpdatesStateEvent { protocol57 internal struct UpdatesStateEventCheck: UpdatesStateEvent {65 internal struct UpdatesStateEventDownload: UpdatesStateEvent {73 internal struct UpdatesStateEventRestart: UpdatesStateEvent {81 internal struct UpdatesStateEventCheckError: UpdatesStateEvent {91 internal struct UpdatesStateEventDownloadError: UpdatesStateEvent {117 internal struct UpdatesStateEventCheckComplete: UpdatesStateEvent {143 internal struct UpdatesStateEventDownloadComplete: UpdatesStateEvent {328 internal func processEvent(_ event: UpdatesStateEvent) { in processEvent()344 private func transition(_ event: UpdatesStateEvent) -> Bool { in transition()[all …]
344 internal static func sendStateEvent(_ event: UpdatesStateEvent) { in sendStateEvent()
358 let event: UpdatesStateEvent in appController()
22 import expo.modules.updates.statemachine.UpdatesStateEvent in <lambda>()147 updatesServiceLocal.stateMachine?.processEvent(UpdatesStateEvent.Check()) in <lambda>()178 UpdatesStateEvent.CheckCompleteWithRollback(updateDirective.commitTime) in <lambda>()189 UpdatesStateEvent.CheckCompleteUnavailable() in <lambda>()203 UpdatesStateEvent.CheckCompleteWithUpdate( in <lambda>()221 UpdatesStateEvent.CheckCompleteWithUpdate( in <lambda>()230 UpdatesStateEvent.CheckCompleteUnavailable() in <lambda>()256 updatesServiceLocal.stateMachine?.processEvent(UpdatesStateEvent.Download()) in <lambda>()316 UpdatesStateEvent.DownloadCompleteWithRollback() in <lambda>()324 UpdatesStateEvent.DownloadComplete() in <lambda>()[all …]
39 import expo.modules.updates.statemachine.UpdatesStateEvent285 stateMachine.processEvent(UpdatesStateEvent.Check()) in start()290 … is LoaderTask.RemoteCheckResult.NoUpdateAvailable -> UpdatesStateEvent.CheckCompleteUnavailable() in start()310 stateMachine.processEvent(UpdatesStateEvent.Download()) in start()350 stateMachine.processEvent(UpdatesStateEvent.Download()) in start()352 UpdatesStateEvent.DownloadError(exception.message ?: "") in start()357 UpdatesStateEvent.CheckError(exception.message ?: "") in start()363 UpdatesStateEvent.DownloadError(exception.message ?: "") in start()378 UpdatesStateEvent.DownloadCompleteWithUpdate(update.manifest) in start()387 stateMachine.processEvent(UpdatesStateEvent.DownloadComplete()) in start()[all …]
23 import expo.modules.updates.statemachine.UpdatesStateEvent in <lambda>()172 updatesServiceLocal.stateMachine?.processEvent(UpdatesStateEvent.Check()) in <lambda>()346 … is CheckForUpdateAsyncResult.NoUpdateAvailable -> UpdatesStateEvent.CheckCompleteUnavailable() in <lambda>()347 …is CheckForUpdateAsyncResult.RollBackToEmbedded -> UpdatesStateEvent.CheckCompleteWithRollback(che… in <lambda>()348 is CheckForUpdateAsyncResult.UpdateAvailable -> UpdatesStateEvent.CheckCompleteWithUpdate( in <lambda>()366 updatesServiceLocal.stateMachine?.processEvent(UpdatesStateEvent.Download()) in <lambda>()384 UpdatesStateEvent.DownloadError("Failed to download new update: ${e.message}") in <lambda>()439 UpdatesStateEvent.DownloadCompleteWithRollback() in <lambda>()450 UpdatesStateEvent.DownloadComplete() in <lambda>()468 UpdatesStateEvent.DownloadCompleteWithUpdate(updateEntity.manifest) in <lambda>()
151 - [Android] Use sealed class for UpdatesStateEvent. ([#23038](https://github.com/expo/expo/pull/230…