Important
Deprecated. Since version 19.0.0 the Gleap iOS SDK logs every URLSession request by itself, including Alamofire and therefore Moya, with request and response headers and bodies, timing and errors. Remove GleapMoyaPlugin from your MoyaProvider when you update: while it is still in place, the SDK leaves out the requests it attaches that the SDK logged itself, so nothing is listed twice. Network logs start with the Network logs switch in the dashboard or Gleap.startNetworkRecording().
The Gleap Moya plugin captures network request logs for the Gleap iOS SDK. Attach technical context to customer feedback and in-app bug reports from your Swift app.
To get started, open your Xcode project and select File > Add packages...
Now you need to paste the following package URL to the search bar in the top right corner. Hit enter to confirm the search.
Package URL:
https://github.com/GleapSDK/Gleap-iOS-Moya-Plugin
Now select the Gleap package and hit Add package to add the Gleap SDK to your project.
Simply copy the GleapMoyaPlugin.swift (Sources/GleapMoyaPlugin) from this repository into your project. In addition to that make sure to install Gleap & Moya.
After installing the plugin, you can use it by simply declaring it during the initialization of your Moya provider:
let provider = MoyaProvider<SampleType>(plugins: [GleapMoyaPlugin()])
Find more information on Gleap here: