Latest 0.3.0
Homepage https://github.com/games-neox/GNPreconditions
License MIT
Platforms ios 8.0
Dependencies GNExceptions, GNLog
Authors

CI Status
Version
License
Platform

Defenensive-code tool for Objective-C/Swift (enabled for DEBUG builds only)

@interface GNPreconditions : NSObject
+ (void)checkNotNil:(nullable id)testObject :(nonnull NSString*)errorMessage;
+ (void)checkCondition:(BOOL)testCondition :(nonnull Class)exceptionClass :(nonnull NSString*)errorMessage;
@end

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Minimum supported iOS version: 8.x
Dependencies: GNExceptions & GNLog

Installation

GNPreconditions is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "GNPreconditions"

Author

Games Neox, [email protected]

License

GNPreconditions is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "GNPreconditions",
    "version": "0.3.0",
    "summary": "Defenensive-code tool for Objective-C",
    "homepage": "https://github.com/games-neox/GNPreconditions",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Games Neox": "[email protected]"
    },
    "source": {
        "git": "https://github.com/games-neox/GNPreconditions.git",
        "tag": "0.3.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "dependencies": {
        "GNExceptions": [],
        "GNLog": []
    },
    "source_files": "GNPreconditions/Classes/*",
    "public_header_files": "GNPreconditions/Classes/*.h"
}

Pin It on Pinterest

Share This