Configuration icon indicating copy to clipboard operation
Configuration copied to clipboard

URLSession import fix

Open awadodeh opened this issue 5 years ago • 2 comments

Trying to fix URLSession move to FoundationNetworking

Description

Getting the flowing error on the latest version of Configuration, even though I am using Swift 5.1.1 version.

        [821/832] Compiling Configuration ConfigurationManager.swift
        /workspace/.build/checkouts/Configuration/Sources/Configuration/ConfigurationManager.swift:56:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            private let session = URLSession(configuration: URLSessionConfiguration.default)
                                  ^~~~~~~~~~
        Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
        public typealias URLSession = AnyObject

Motivation and Context

Trying to fix URLSession move to FoundationNetworking

awadodeh avatar Feb 18 '20 23:02 awadodeh

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Awad Owda seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Apr 05 '20 19:04 CLAassistant

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Nov 07 '22 07:11 sonarqubecloud[bot]