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
!18
Update Bindings
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update Bindings
feature/update-bindings
into
development
Overview
3
Commits
164
Pipelines
0
Changes
1
Merged
Dariusz Rybicki
requested to merge
feature/update-bindings
into
development
2 years ago
Overview
3
Commits
164
Pipelines
0
Changes
1
Expand
Update Bindings.xcframework (release
https://git.xx.network/elixxir/client/-/pipelines/125767
)
Update Bindings.xcframework (release
https://git.xx.network/elixxir/client/-/pipelines/132481
)
Update Bindings.xcframework (release
https://git.xx.network/elixxir/client/-/pipelines/133113
)
Update Bindings.xcframework (release
https://git.xx.network/elixxir/client/-/pipelines/133582
)
Update Bindings.xcframework (release
https://git.xx.network/elixxir/client/-/pipelines/133688
)
Use models instead of raw data whenever possible
User Discovery
Backup
File Transfers
Channels
Edited
2 years ago
by
Dariusz Rybicki
0
0
Merge request reports
Viewing commit
6e28641e
Show latest version
1 file
+
34
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
6e28641e
Add LoadCmix functor
· 6e28641e
Dariusz Rybicki
authored
2 years ago
Sources/ElixxirDAppsSDK/LoadCmix.swift
0 → 100644
+
34
−
0
Options
import
Bindings
import
XCTestDynamicOverlay
public
struct
LoadCmix
{
public
var
run
:
(
String
,
Data
,
Data
)
throws
->
Cmix
public
func
callAsFunction
(
storageDir
:
String
,
password
:
Data
,
cmixParamsJSON
:
Data
)
throws
->
Cmix
{
try
run
(
storageDir
,
password
,
cmixParamsJSON
)
}
}
extension
LoadCmix
{
public
static
let
live
=
LoadCmix
{
storageDir
,
password
,
cmixParamsJSON
in
var
error
:
NSError
?
let
bindingsCmix
=
BindingsLoadCmix
(
storageDir
,
password
,
cmixParamsJSON
,
&
error
)
if
let
error
=
error
{
throw
error
}
guard
let
bindingsCmix
=
bindingsCmix
else
{
fatalError
(
"BindingsLoadCmix returned `nil` without providing error"
)
}
return
Cmix
.
live
(
bindingsCmix
)
}
}
extension
LoadCmix
{
public
static
let
unimplemented
=
LoadCmix
(
run
:
XCTUnimplemented
(
"
\(
Self
.
self
)
"
)
)
}
Loading