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
!56
Update Bindings
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update Bindings
dev/update-bindings
into
development
Overview
0
Commits
5
Pipelines
0
Changes
1
Merged
Dariusz Rybicki
requested to merge
dev/update-bindings
into
development
2 years ago
Overview
0
Commits
5
Pipelines
0
Changes
1
Expand
Update Bindings.xcframework
client@57b7e3b8
go version go1.17.13 darwin/arm64
Xcode 13.4.1 Build version 13F100
gomobile bind target: ios,iossimulator,macos
Add
TrackServicesCallback
Add
NotificationReport
model
Add
CMixTrackServices
function wrapper
Add
GetNotificationsReport
function wrapper
0
0
Merge request reports
Viewing commit
a0cd9910
Prev
Next
Show latest version
1 file
+
42
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
a0cd9910
Add TrackServicesCallback
· a0cd9910
Dariusz Rybicki
authored
2 years ago
Sources/XXClient/Callbacks/TrackServicesCallback.swift
0 → 100644
+
42
−
0
Options
import
Bindings
import
XCTestDynamicOverlay
public
struct
TrackServicesCallback
{
public
init
(
handle
:
@escaping
(
Result
<
Data
,
Error
>
)
->
Void
)
{
self
.
handle
=
handle
}
public
var
handle
:
(
Result
<
Data
,
Error
>
)
->
Void
}
extension
TrackServicesCallback
{
public
static
let
unimplemented
=
HealthCallback
(
handle
:
XCTUnimplemented
(
"
\(
Self
.
self
)
"
)
)
}
extension
TrackServicesCallback
{
func
makeBindingsHealthCallback
()
->
BindingsTrackServicesCallbackProtocol
{
class
CallbackObject
:
NSObject
,
BindingsTrackServicesCallbackProtocol
{
init
(
_
callback
:
TrackServicesCallback
)
{
self
.
callback
=
callback
}
let
callback
:
TrackServicesCallback
func
callback
(
_
marshalData
:
Data
?,
err
:
Error
?)
{
if
let
err
=
err
{
callback
.
handle
(
.
failure
(
err
))
return
}
if
let
marshalData
=
marshalData
{
callback
.
handle
(
.
success
(
marshalData
))
return
}
fatalError
(
"BindingsTrackServicesCallback received nil marshalData and err"
)
}
}
return
CallbackObject
(
self
)
}
}
Loading