Skip to content
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
28 changes: 15 additions & 13 deletions IGDB-SWIFT-API.podspec
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
Pod::Spec.new do |s|
s.name = 'IGDB-SWIFT-API'
s.version = ENV['LIB_VERSION'] || '0.4.4'
s.version = ENV['LIB_VERSION'] || '0.5.0'
s.summary = 'Wrapper for IGDBs API written in Swift.'
s.description = "A Swift wrapper for the IGDB.com Free Video Game Database API."
s.documentation_url = "https://api-docs.igdb.com"
s.homepage = 'https://github.com/husnjak/IGDB-API-SWIFT'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Filip Husnjak' => 'filip@igdb.com' }
s.source = { :git => 'https://github.com/husnjak/IGDB-API-SWIFT.git', :tag => s.version.to_s }
s.platforms = { :ios => "12.2", :osx => "10.15", :watchos => "7" }
s.ios.deployment_target = '12.0'
s.description = 'A Swift wrapper for the IGDB.com Free Video Game Database API.'
s.documentation_url = 'https://api-docs.igdb.com'
s.homepage = 'https://github.com/husnjak/IGDB-API-SWIFT'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Filip Husnjak' => 'filip@igdb.com' }
s.source = { :git => 'https://github.com/husnjak/IGDB-API-SWIFT.git', :tag => s.version.to_s }

# Align platform versions with deployment targets
s.ios.deployment_target = '13.0'
s.osx.deployment_target = '10.15'
s.watchos.deployment_target = '7.0'
s.swift_version = '5.0'
s.source_files = 'Sources/IGDB-SWIFT-API/**/*.swift'

s.swift_version = '5.0'
s.source_files = 'Sources/IGDB-SWIFT-API/**/*.swift'

s.dependency 'SwiftProtobuf', '~> 1.29.0'

s.dependency 'SwiftProtobuf', '~> 1.25.1'
s.dependency 'Just', '~> 0.8.0'
end
13 changes: 2 additions & 11 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let package = Package(
name: "IGDB-SWIFT-API",
platforms: [
.macOS(.v10_15),
.iOS(.v12),
.iOS(.v13),
.watchOS(.v6)
],
products: [
Expand All @@ -16,13 +16,12 @@ let package = Package(
targets: ["IGDB-SWIFT-API"]),
],
dependencies: [
.package(url: "https://github.com/dduan/Just.git", from: "0.8.0"),
.package(url: "https://github.com/apple/swift-protobuf.git", from: "1.25.1")
],
targets: [
.target(
name: "IGDB-SWIFT-API",
dependencies: ["Just", "SwiftProtobuf"]),
dependencies: ["SwiftProtobuf"]),
.testTarget(
name: "IGDB-SWIFT-APITests",
dependencies: ["IGDB-SWIFT-API"]),
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ You can either import this library using Xcode by simply pasting this repository
Or if you have a `Package.swift` file you can add this:
```swift
dependencies: [
.package(url: "https://github.com/husnjak/IGDB-SWIFT-API.git", from: "0.4.5"),
.package(url: "https://github.com/husnjak/IGDB-SWIFT-API.git", from: "0.5.0"),
],
targets: [
.target(name: "MyTarget", dependencies: ["IGDB-SWIFT-API"]),
Expand Down Expand Up @@ -82,7 +82,7 @@ The class `APICalypse` handles the new querying language, so that you don't need
This method handles IGDB generated proto classes which returns Data to be used to fill the appropriate class.
```swift
wrapper.apiProtoRequest(endpoint: .GAMES, apicalypseQuery: "fields *;", dataResponse: { bytes in
let games: [Proto_Game] = try! Proto_GameResult(serializedData: bytes) // This converts Binary to a struct
let games: [Proto_Game] = try! Proto_GameResult(serializedBytes: bytes) // This converts Binary to a struct
}, errorResponse: { error in
// Do Something
})
Expand Down
Loading