Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ContinuousLearning/PokemonKit
Pokeapi wrapper, written in Swift
https://github.com/ContinuousLearning/PokemonKit
pokeapi pokemon
Last synced: 3 months ago
JSON representation
Pokeapi wrapper, written in Swift
- Host: GitHub
- URL: https://github.com/ContinuousLearning/PokemonKit
- Owner: ContinuousLearning
- License: mit
- Created: 2016-02-27T16:34:23.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-07-15T14:11:25.000Z (over 4 years ago)
- Last Synced: 2024-11-18T04:58:05.901Z (3 months ago)
- Topics: pokeapi, pokemon
- Language: Swift
- Homepage:
- Size: 21 MB
- Stars: 105
- Watchers: 8
- Forks: 25
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - PokemonKit - Pokeapi wrapper, written in Swift. (SDK / Unofficial)
- awesome-ios-star - PokemonKit - Pokeapi wrapper, written in Swift. (SDK / Unofficial)
README
# PokemonKit
[](https://travis-ci.org/ContinuousLearning/PokemonKit)
[](http://cocoapods.org/pods/PokemonKit)
[](http://cocoapods.org/pods/PokemonKit)
[](http://cocoapods.org/pods/PokemonKit)
[](https://github.com/Carthage/Carthage)
[](https://codebeat.co/projects/github-com-continuouslearning-pokemonkit)
[](https://ghit.me/repo/ContinuousLearning/PokemonKit)## What is this?
PokemonKit is a swift wrapper for Pokeapi.PokemonKit use Alamofire and PromiseKit for async web requests handling.
## Usage
```swift
import PokemonKitPokemonKit.fetchBerry("1")
.then { berryInfo in
self.testLabel.text = berryInfo.name;
}.onError {error in
print(error)
}
```## TODO
- [x] Wrap all API end points
- [x] Fully [Documented](http://continuouslearning.github.io/PokemonKit/)
- [ ] Fully tested
- [x] Carthage Support
- [ ] Unit test don't call server
- [x] Remove PromiseKit (So many build errors, not worth it)
- [ ] Porting back to Objective-C## Installation
PokemonKit is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'PokemonKit'
```If your using Carthage you can add a PokemonKit by adding it to your Cartfile:
```ruby
github "ContinuousLearning/PokemonKit" ~> 2.0
```In your Info.plist, add
```plist
NSAppTransportSecurityNSExceptionDomains
pokeapi.co
NSIncludesSubdomains
NSTemporaryExceptionAllowsInsecureHTTPLoads
NSTemporaryExceptionMinimumTLSVersion
TLSv1.1
```
## Author
Yeung Yiu Hung, [email protected]
## License
PokemonKit is available under the MIT license. See the LICENSE file for more info.