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
!89
Update Bindings
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update Bindings
dev/update-bindings
into
development
Overview
0
Commits
4
Pipelines
0
Changes
1
Merged
Dariusz Rybicki
requested to merge
dev/update-bindings
into
development
2 years ago
Overview
0
Commits
4
Pipelines
0
Changes
1
Expand
Update Bindings.xcframework
client@2deedc73
go version go1.17.13 darwin/arm64
Xcode 14.0 Build version 14A309
gomobile bind target: ios,iossimulator,macos
Remove
GroupGetTrackedId
function wrapper
Update
GroupChatJoinGroup
function wrapper
Add
DeserializeGroup
function wrapper
0
0
Merge request reports
Viewing commit
ccfd09c4
Prev
Next
Show latest version
1 file
+
32
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ccfd09c4
Add DeserializeGroup function wrapper
· ccfd09c4
Dariusz Rybicki
authored
2 years ago
Sources/XXClient/Functions/DeserializeGroup.swift
0 → 100644
+
32
−
0
Options
import
Bindings
import
XCTestDynamicOverlay
public
struct
DeserializeGroup
{
public
var
run
:
(
Data
)
throws
->
Group
public
func
callAsFunction
(
_
serializedGroupData
:
Data
)
throws
->
Group
{
try
run
(
serializedGroupData
)
}
}
extension
DeserializeGroup
{
public
static
func
live
()
->
DeserializeGroup
{
DeserializeGroup
{
serializedGroupData
in
var
error
:
NSError
?
let
bindingsGroup
=
BindingsDeserializeGroup
(
serializedGroupData
,
&
error
)
if
let
error
=
error
{
throw
error
}
guard
let
bindingsGroup
=
bindingsGroup
else
{
fatalError
(
"BindingsDeserializeGroup returned `nil` without providing error"
)
}
return
.
live
(
bindingsGroup
)
}
}
}
extension
DeserializeGroup
{
public
static
let
unimplemented
=
DeserializeGroup
(
run
:
XCTUnimplemented
(
"
\(
Self
.
self
)
"
)
)
}
Loading