Latest 0.3.0
Homepage https://github.com/VArbiter/CCChainKit
License MIT
Platforms ios 8.0
Authors

Some categories in chain actions for iOS in Objective-C .

Version

License

Platform

中文说明请[点击这里]

Note

Current Version 0.2.1

pod ‘CCChainKit’ , ‘~> 0.2.1’ // default is CCCore

pod ‘CCChainKit/CCFull’ , ‘~> 0.2.1’ . if you wanna install the whole Kit .

Warning

All the actions within CCChainKit was started and ended in blocks .

That is , non of nil ( for return value) was allowed when chain is actived . otherwise , went crash .

Still working to find a proper solution on it.

How To Use

For now , when intial a chain , begin with a wrapper of macro CC(_value_) (in CCCommon.h) to avoid nil-crash .
in methods , functions or params , use

- (instancetype) cc : (id (^)(id sameObject)) sameObject; (in NSObject+CCProtocol.h)

to do some more adjustments , for force transfer with id type , use macro CC_TYPE(_type_ , _value_) (in CCCommon.h) deal with it .

Note

when install , default is CCCore , CCCore contains

CCCommon (Macros) , CCProtocol (Protocol) , CCData (NS Family), CCView (UI Family), CCRuntime (objc/ runtime associate)

when you wanna get to Full , install with "CCChainKit/CCFull" (note: CCFull had dependend on other vendors.)

Instructions

CCCore : Core chains . a abstract collection .

CCFull : Full chains . a abstract collection .

CCChainAssets : Assets collection , preserve for future needs . (not available for now).

CCCommon : Macros && Common tools .

CCProtocol : CCProtocol . for CC . make all the sub-class of NSObject conforms to it .

CCRuntime : Packaged for some runtime functions .

CCDataBase : For now , only for Realm (‘~> 2.10.0’).

CCRouter : a chain Package Router for MGJRouter (‘~> 0.9.3’) && perform actions .

CCData : a chain actions for NS family .

CCView : a chain actions for UI family .

CCCustom : Custom classes or functions , dependend or based on other vendors .

What’s New

2017-09-15 18:00:20

adjust a few , updated to ‘0.2.1’ .

2017-09-05 14:24:59

👏👏👏

finally , the first version of CCChainKit has finally completed .

👏👏👏

CCChainKit , first version : 2017-07-01 19:49:01 ~ 2017-09-05 14:24:59

2017-08-31 11:31:23

remove custom struct (CCRect , CCSize … etc)

make them as a typedef for system structs .

Why ? cause system will recognize a typedef value as its origin .

wanna go back , can’t go back . should I ask for it ?

2017-08-10 15:03:41

intial commit from CCLocalLibrary

CC , EE , EL . for now , just CC.

once get used to someone , forever changed for her .

Example

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

Requirements

Already done in pod spec.

Installation

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

pod "CCChainKit"

Author

ElwinFrederick, [email protected]

License

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

Latest podspec

{
    "name": "CCChainKit",
    "version": "0.3.0",
    "summary": "CCChainKit.",
    "description": "A development kit with chain reaction .",
    "homepage": "https://github.com/VArbiter/CCChainKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ElwinFrederick": "[email protected]"
    },
    "source": {
        "git": "https://github.com/VArbiter/CCChainKit.git",
        "tag": "0.3.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "default_subspecs": "CCCore",
    "subspecs": [
        {
            "name": "CCCore",
            "source_files": "CCChainKit/Classes/*.h",
            "dependencies": {
                "CCChainKit/CCData": [],
                "CCChainKit/CCView": [],
                "CCChainKit/CCRuntime": []
            }
        },
        {
            "name": "CCFull",
            "dependencies": {
                "CCChainKit/CCCore": [],
                "CCChainKit/CCDataBase": [],
                "CCChainKit/CCRouter": [],
                "CCChainKit/CCData": [],
                "CCChainKit/CCView": [],
                "CCChainKit/CCCustom": []
            }
        },
        {
            "name": "CCCommon",
            "source_files": "CCChainKit/Classes/CCChainOperate/CCCommon/**/*",
            "frameworks": [
                "Foundation",
                "UIKit",
                "AssetsLibrary",
                "Photos",
                "AVFoundation"
            ]
        },
        {
            "name": "CCProtocol",
            "source_files": "CCChainKit/Classes/CCChainOperate/CCProtocol/**/*",
            "dependencies": {
                "CCChainKit/CCCommon": []
            }
        },
        {
            "name": "CCRuntime",
            "source_files": "CCChainKit/Classes/CCChainOperate/CCRuntime/**/*"
        },
        {
            "name": "CCDataBase",
            "source_files": "CCChainKit/Classes/CCChainOperate/CCDataBase/**/*",
            "dependencies": {
                "Realm": [
                    "~> 2.10.0"
                ]
            },
            "frameworks": "Foundation"
        },
        {
            "name": "CCRouter",
            "source_files": "CCChainKit/Classes/CCChainOperate/CCRouter/**/*",
            "frameworks": "Foundation",
            "dependencies": {
                "MGJRouter": [
                    "~> 0.9.3"
                ]
            }
        },
        {
            "name": "CCData",
            "source_files": "CCChainKit/Classes/CCChainOperate/CCData/**/*",
            "dependencies": {
                "CCChainKit/CCProtocol": [],
                "CCChainKit/CCCommon": []
            },
            "frameworks": "MobileCoreServices"
        },
        {
            "name": "CCView",
            "source_files": "CCChainKit/Classes/CCChainOperate/CCView/**/*",
            "frameworks": [
                "CoreGraphics",
                "QuartzCore",
                "WebKit",
                "Accelerate",
                "CoreImage"
            ],
            "dependencies": {
                "CCChainKit/CCProtocol": [],
                "CCChainKit/CCCommon": []
            }
        },
        {
            "name": "CCCustom",
            "source_files": "CCChainKit/Classes/CCChainOperate/CCCustom/**/*",
            "dependencies": {
                "CCChainKit/CCCore": [],
                "AFNetworking/Reachability": [
                    "~> 3.1.0"
                ],
                "AFNetworking/UIKit": [
                    "~> 3.1.0"
                ],
                "SDWebImage": [
                    "~> 4.1.0"
                ],
                "MJRefresh": [
                    "~> 3.1.12"
                ],
                "MBProgressHUD": [
                    "~> 1.0.0"
                ]
            },
            "frameworks": [
                "SystemConfiguration",
                "CoreTelephony",
                "MobileCoreServices",
                "ImageIO"
            ]
        }
    ]
}

Pin It on Pinterest

Share This