Skip to content

Commit

Permalink
v8.2.4: Allow requests in an app extension
Browse files Browse the repository at this point in the history
  • Loading branch information
emma-k-alexandra committed Apr 5, 2020
1 parent 82bba88 commit 0ff24e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ I released a [GTFS and GTFS-RT](https://github.com/emma-k-alexandra/GTFS) packag

```swift
dependencies: [
.package(url: "https://github.com/emma-k-alexandra/WMATA.swift.git", from: "8.2.3")
.package(url: "https://github.com/emma-k-alexandra/WMATA.swift.git", from: "8.2.4")
]
```

Expand Down
6 changes: 5 additions & 1 deletion Sources/WMATA/URL.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@ extension URLRequest {
}

func generateURLSession(with delegate: WMATADelegate) -> URLSession {
let id = UUID()
let config = URLSessionConfiguration.background(withIdentifier: "com.WMATA.swift.\(id)")
config.sharedContainerIdentifier = "com.WMATA.swift.\(id)"

return URLSession(
configuration: URLSessionConfiguration.background(withIdentifier: "com.WMATA.swift.\(UUID())"),
configuration: config,
delegate: WMATAURLSessionDataDelegate(wmataDelegate: delegate),
delegateQueue: nil
)
Expand Down

0 comments on commit 0ff24e1

Please sign in to comment.