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

Commit

Permalink
Merge pull request #698 from NikitaShvadlenko/readme
Browse files Browse the repository at this point in the history
Changed the iOS version to 16.0 as per requirements
  • Loading branch information
sammyd authored Aug 18, 2023
2 parents 96a6f82 + 2e5284f commit 00a0722
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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

0 comments on commit 00a0722

Please sign in to comment.