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: about 1 month 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 (about 2 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
[![Build Status](https://travis-ci.org/ContinuousLearning/PokemonKit.svg?branch=master)](https://travis-ci.org/ContinuousLearning/PokemonKit)
[![Version](https://img.shields.io/cocoapods/v/PokemonKit.svg?style=flat)](http://cocoapods.org/pods/PokemonKit)
[![License](https://img.shields.io/cocoapods/l/PokemonKit.svg?style=flat)](http://cocoapods.org/pods/PokemonKit)
[![Platform](https://img.shields.io/cocoapods/p/PokemonKit.svg?style=flat)](http://cocoapods.org/pods/PokemonKit)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![codebeat badge](https://codebeat.co/badges/8394f59e-c142-4477-b535-3d0b58007f78)](https://codebeat.co/projects/github-com-continuouslearning-pokemonkit)
[![ghit.me](https://ghit.me/badge.svg?repo=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.