Repository navigation
SDKS-5267 Build the ping_davinci bridge package - #144
Open
rodrigoareis wants to merge 2 commits into
Open
rodrigoareis wants to merge 2 commits into
rodrigoareis wants to merge 2 commits into
Conversation
rodrigoareis
requested review from
george-bafaloukas-forgerock,
spetrov and
vahancouver
October 27, 2026 18:28
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
5 of 7 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
ping_davinci, a new Flutter bridge plugin package exposing the native Ping DaVinci SDK (Android/iOS, pinned to 2.2.0) to Dart, on the same Pigeon-generated, handle-registry architecture asping_journey(#124) andping_oidc(#131). Theflutter-davincisample app follows in SDKS-5268.pigeons/messages.dart) and generated Dart/Kotlin/Swift bindings, including the package's first@EventChannelApistreamconfigureDaVincibuilds the native workflow, configuring OIDC from either hoisted fields or an existingping_oidcclient handle (oidcClientId); both-or-neither is a typedargumenterrorstart/nextover a sealed DartDaVinciNode(ContinueNode/SuccessNode/ErrorNode/FailureNode). Values go back by{type, index}and are re-resolved natively against the cached node, with strict type checksCollectorhierarchy, plus anAddOnCollectorbranch so Plan 3 modules (IdP, FIDO, Protect, mobile pairing) can register their own types. Form fields the native factory drops arrive asContinueNode.unsupportedFields, each with a reasonvalidateruns the native local validation and returns a structuredValidationErrorper failure (not iOS's hardcoded English strings).ErrorNodecarriesstatus, typederrorDetails, a flat per-fieldfieldErrorsmap, and thecontinueNodeto retry fromgetSession(the authorization code, not tokens),getToken,getUserInfo({cache}),signOff,dispose. Tokens stay in native secure storage, and no host method takes a tokenpoll(PollingCollector)streams a sealedPollingStatusover one shared event channel, tagged per poll.next/start/signOff/disposeend running polls.QRCodeCollectorcarries its data URI plusimageBytes; device collectors takeselectDevice;MetadataCollectortakessetResult/setErrorDaVinciErrorMapper/DaVinciErrorCodes) kept 1:1 between Kotlin and SwiftCoreRuntime.davinciRegistry(Kotlin/Swift)ping_coreSPM path is now../ping_core, the path Flutter's generated package uses; it was a "Conflicting identity" warning or a resolution error. The example hosts reference their plugin the same way. No behaviour change.ping_davinciand its example to the workspacePlatform differences the bridge handles
Task {}increateDaVinci, racingstart()ErrorNode.details()on the tenant's wrong-password bodyuser()aftersignOff()Continueafter an attempt comes back incomplete.continuebefore the attempt's requesttimedOutresponseErrorNodeFailureNodefirstMatch, required checkbox, length units)Test plan
flutter analyzeclean (workspace root)ping_davinci):ping_davinci:testDebugUnitTest)RunnerTestsin the example host)flutter build apk --debugandflutter build ios --debug --no-codesignfromping_davinci/exampleDEVICE_AUTHENTICATIONis verified hermetically only: the tenant offers it only to a signed-in user with an enrolled device