Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Elixxir dApps SDK Swift
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile
iOS
Elixxir dApps SDK Swift
Merge requests
!19
Update example app
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update example app
feature/example-app-landing
into
development
Overview
0
Commits
9
Pipelines
0
Changes
1
Merged
Dariusz Rybicki
requested to merge
feature/example-app-landing
into
development
2 years ago
Overview
0
Commits
9
Pipelines
0
Changes
1
Expand
This MR updates the example app so it uses the new Bindings wrapper.
Present landing page with options to create or load cMix.
Allow removing cMix if stored.
Start/stop network follower.
Show network follower status.
Observe and display network health status.
Edited
2 years ago
by
Dariusz Rybicki
0
0
Merge request reports
Viewing commit
19487205
Prev
Next
Show latest version
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
19487205
Merge branch 'development' into feature/example-app-landing
· 19487205
Dariusz Rybicki
authored
2 years ago
Sources/ElixxirDAppsSDK/E2E/Functors/E2ERegisterListener.swift
+
3
−
3
Options
@@ -2,10 +2,10 @@ import Bindings
import
XCTestDynamicOverlay
public
struct
E2ERegisterListener
{
public
var
run
:
(
Data
,
Int
,
Listener
)
throws
->
Void
public
var
run
:
(
Data
?
,
Int
,
Listener
)
throws
->
Void
public
func
callAsFunction
(
senderId
:
Data
,
senderId
:
Data
?
,
messageType
:
Int
,
callback
:
Listener
)
throws
{
@@ -17,7 +17,7 @@ extension E2ERegisterListener {
public
static
func
live
(
_
bindingsE2E
:
BindingsE2e
)
->
E2ERegisterListener
{
E2ERegisterListener
{
senderId
,
messageType
,
callback
in
try
bindingsE2E
.
registerListener
(
senderId
,
senderId
??
Data
([
UInt8
](
repeating
:
0
,
count
:
32
))
,
messageType
:
messageType
,
newListener
:
callback
.
makeBindingsListener
()
)
Loading