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
Project 'elixxir/elixxir-dapps-sdk-swift' was moved to 'mobile/ios/elixxir-dapps-sdk-swift'. Please update any links and bookmarks that may still have the old path.
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
2
Merged
Dariusz Rybicki
requested to merge
feature/update-bindings
into
development
2 years ago
Overview
3
Commits
164
Pipelines
0
Changes
2
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
cdeb2d24
Prev
Next
Show latest version
2 files
+
22
−
40
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
cdeb2d24
Add RegisterLogWriter functor
· cdeb2d24
Dariusz Rybicki
authored
2 years ago
Sources/ElixxirDAppsSDK/Legacy/LogsListener.swift deleted
100644 → 0
+
0
−
40
Options
import
Bindings
public
struct
LogsListener
{
public
var
listen
:
(
@escaping
(
String
)
->
Void
)
->
Void
public
func
callAsFunction
(
callback
:
@escaping
(
String
)
->
Void
)
{
listen
(
callback
)
}
}
extension
LogsListener
{
public
static
let
live
=
LogsListener
{
callback
in
let
listener
=
Listener
(
onLog
:
callback
)
BindingsRegisterLogWriter
(
listener
)
}
}
private
final
class
Listener
:
NSObject
,
BindingsLogWriterProtocol
{
init
(
onLog
:
@escaping
(
String
)
->
Void
)
{
self
.
onLog
=
onLog
super
.
init
()
}
let
onLog
:
(
String
)
->
Void
func
log
(
_
p0
:
String
?)
{
guard
let
p0
=
p0
else
{
fatalError
(
"BindingsLogWriter.log received `nil`"
)
}
onLog
(
p0
)
}
}
#if DEBUG
extension
LogsListener
{
public
static
let
failing
=
LogsListener
{
_
in
fatalError
(
"Not implemented"
)
}
}
#endif
Loading