Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Changed the iOS version to 16.0 as per requirements #698

Merged
merged 4 commits into from
Aug 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@
import struct Foundation.URL

struct ContentAdapter: EntityAdapter {
static func process(resource: JSONAPIResource, relationships: [EntityRelationship] = []) throws -> Content? {
static func process(resource: JSONAPIResource, relationships: [EntityRelationship] = []) throws -> Content {
guard resource.entityType == .content else { throw EntityAdapterError.invalidResourceTypeForAdapter }

guard let contentTypeString = resource.attributes["content_type"] as? String,
let contentType = ContentType(string: contentTypeString)
else { return nil }
else {
throw EntityAdapterError.invalidOrMissingAttributes
}

guard let uri = resource.attributes["uri"] as? String,
let name = resource.attributes["name"] as? String,
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ There is more info about contributing in [CONTRIBUTING.md](CONTRIBUTING.md).

## Development

__emitron__ runs on iOS 13.3 and greater. It uses SwiftUI and Combine extensively; and since these two technologies were very new at the time of creation, there are plenty of places in the code that could benefit from some refactoring.
__emitron__ runs on iOS 16.0 and greater. It uses SwiftUI and Combine extensively; and since these two technologies were very new at the time of creation, there are plenty of places in the code that could benefit from some refactoring.

Currently, only people that hold an active kodeco.com subscription may use emitron. Non-subscribers will be shown a "no access" page on login. Subscribers have access to streaming videos, and a subset of subscribers (ones with a "Professional" subscription) is allowed to download videos for offline playback.

Expand Down