Latest1.0.0
Homepagehttps://github.com/ikesyo/ReactiveAccountStore
LicenseMIT
Platformsios 6.0, osx 10.8, requires ARC
DependenciesReactiveCocoa
FrameworksAccounts
Authors

ReactiveAccountStore License MIT

Build Status
Version
Platform
Analytics

ReactiveCocoa support for Accounts.framework.

Usage

Requests access and saves an account:

ACAccountStore *accountStore = [[ACAccountStore alloc] init];
ACAccountType *type = [accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter];

[[[accountStore
    rac_requestAccessToAccountsWithType:type options:nil]
    concat:[RACSignal defer:^{
        ACAccount *account = [accountStore accountsWithAccountType:type][0];
        account.accountDescription = @"description";
        return [accountStore rac_saveAccount:account];
    }]] subscribeError:^(NSError *error) {
        // Failed to save or access was not granted.
    } completed:^{
        // Succeeded to save.
    }];

Requirements

  • iOS 6.0+
  • OS X 10.8+

Installation

Let’s use CocoaPods.

Add the following line to your Podfile:

pod 'ReactiveAccountStore'

Then, run the following command in the project direcotry:

$ pod install

Contributors

Syo Ikeda, [email protected]

License

ReactiveAccountStore is licensed under the MIT license.

Latest podspec

{
    "name": "ReactiveAccountStore",
    "version": "1.0.0",
    "summary": "ReactiveCocoa support for Accounts.framework.",
    "description": "                            ReactiveCocoa support for Accounts.framework.n                            It wraps `ACAccountStore`'s asynchronous methods those take completion handler with `RACSignal`.n",
    "homepage": "https://github.com/ikesyo/ReactiveAccountStore",
    "social_media_url": "https://twitter.com/ikesyo",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Syo Ikeda": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ikesyo/ReactiveAccountStore.git",
        "tag": "v1.0.0"
    },
    "platforms": {
        "ios": "6.0",
        "osx": "10.8"
    },
    "requires_arc": true,
    "source_files": "ReactiveAccountStore/**/*.{h,m}",
    "frameworks": "Accounts",
    "dependencies": {
        "ReactiveCocoa": [
            "~> 2.3"
        ]
    }
}

Pin It on Pinterest

Share This