Latest 0.16.0-sfr-6
Homepage https://github.com/dcoletto/SourceryForRetrofire
License MIT
Platforms osx , ios , tvos , watchos
Authors

Version
License
Platform

SourceryForRetrofire is a tool used to provide annotations similar to Java/Kotlin and is just a modified version of Sourcery from Krzysztof Zabłocki. Even if this library can be used on its own, this usage is HEAVILY DISCOURAGED! Use the official Sourcery if you need to generate some boilerplate! This library has been created with the only purpose of creating RetrofireSwift, a type-safe HTTP client for Swift, inspired by Retrofit.

Installation

Right now the only official way to install this library is by using CocoaPods; you can of course build the binary on your own or download the prebuilt one from GitHub (which should always be aligned) but I won’t be able to help you in case of any issue.

  • CocoaPods

    Add pod 'SourceryForRetrofire' to your Podfile and run pod update SourceryForRetrofire. This will download the latest release binary and will put it in your project’s CocoaPods path so you will run it with $PODS_ROOT/SourceryForRetrofire/bin/sourcery

Documentation

Since this project uses Sourcery plus a couple of lines you can refer to the official Sourcery documentation here.

Usage

Usage is the same of sourcery, so you can refer to its docs;

$ $PODS_ROOT/SourceryForRetrofire/sourcery --sources <sources path> --templates <templates path> --output <output path>

Build

Note for the future me:

  • Download the project
  • Edit whatever you need to edit
  • Set the version in the Xcode project and in the SourceryForRetrofire.podspec file
  • Run rake release:new_sfr and enjoy

License

SourceryForRetrofire is available under the MIT license. See LICENSE for more information.

Attributions

This tool is powered by

Latest podspec

{
    "name": "SourceryForRetrofire",
    "version": "0.16.0-sfr-6",
    "summary": "A slightly edited version of Sourcery used for RetrofireSwift",
    "description": "This tool is a fork of Sourcery (https://github.com/krzysztofzablocki/Sourcery) which has been modified to be more similar to nJava/Kotlin annotations. This fork is made specifically for RetrofireSwift (https://github.com/dcoletto/RetrofireSwift) nso SourceryForRetrofire will be only able to read RetrofireSwift annotations.nThe original Sourcery tools is from Krzysztof Zabu0142ocki, and all credit belongs to him and his wonderful project.",
    "homepage": "https://github.com/dcoletto/SourceryForRetrofire",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Coletto Dario": "[email protected]"
    },
    "social_media_url": "https://twitter.com/coletzLp",
    "source": {
        "git": "https://github.com/dcoletto/SourceryForRetrofire.git",
        "tag": "0.16.0-sfr-6"
    },
    "preserve_paths": "bin/**/*",
    "exclude_files": "**/file.zip",
    "platforms": {
        "osx": null,
        "ios": null,
        "tvos": null,
        "watchos": null
    }
}

Pin It on Pinterest

Share This