Latest 0.1.0
Homepage https://github.com/Oktana/OKTY-Salesforce-iOS
License MIT
Platforms ios , requires ARC
Frameworks UIKit, ImageIO, Foundation, CFNetwork, CoreData, CoreGraphics, MessageUI, MobileCoreServices, QuartzCore, Security, SystemConfiguration
Authors

OKTY-Salesforce-iOS

OKTY-Salesforce-iOS, a library manager to connect native iOS apps with Salesforce.

Features

  • Makes it easy to develop new apps.
  • Updates continuously the Salesforce libraries.
  • Automatically set-s up Objective-C and Swift projects.

Installation

CocoaPods is a dependency manager for Objective-C and Swift, which automates and simplifies the process of using 3rd-party libraries likeSalesforceMobileSDK in your projects.

  • Write on the Podfile:

        pod "OKTY-Salesforce-iOS" 

Getting Started

Download OKTY-Salesforce-iOS and try out the included iPhone example apps.

To get further information about Salesforce read the following content:

Communication

  • If you need help, [send us a message](mailto: [email protected]). Please include ‘OKTY-Salesforce-iOS’ in the subject .
  • If you found a bug, and can provide steps to reliably reproduce it, [open an issue](mailto: [email protected]).
  • If you have a feature request, [open an issue](mailto: [email protected]).
  • If you want to contribute, submit a pull request.

Libraries and Resources

Salesforce Mobile SDK:

  • openssl
  • sqlcipher
  • SalesforceCommonUtils
  • SalesforceRestApiSDK
  • SalesforceNetworkSDK
  • MKNetworkKit
  • SalesforceOAuth
  • SalesforceSDKCore
  • SalesforceSecurity

Dependency libraries:

  • libxml2.dylib
  • libz.dylib
  • UIKit.framework
  • ImageIO.framework
  • Foundation.framework
  • CFNetwork.framework
  • CoreData.framework
  • CoreGraphics.framework
  • MessageUI.framework
  • MobileCoreServices.framework
  • QuartzCore.framework
  • Security.framework
  • SystemConfiguration.framework

Resources bundle:

  • SalesforceSDKResources.bundle
  • Settings.bundle

Example

  • Import headers: SFUserAccountManager.h, SFAuthenticationManager.h

  • Set your Connected App Consumer Key.

    [SFUserAccountManager sharedInstance].oauthClientId = @"3MVG9Iu66FKeHhINkB1l7xt7kR8czFcCTUhgoA8Ol2Ltf1eYHOU4SqQRSEitYFDUpqRWcoQ2.dBv_a1Dyu5xa";

  • Set your Connected App’s Callback URL.

    [SFUserAccountManager sharedInstance].oauthCompletionUrl = @"testsfdc:///mobilesdk/detect/oauth/done";

  • Set the OAuth scopes that your Connected App will request.

    [SFUserAccountManager sharedInstance].scopes = [NSSet setWithObjects:@"web", @"api", nil];

  • Launch authentication.

    [[SFAuthenticationManager sharedManager]
    loginWithCompletion:(SFOAuthFlowSuccessCallbackBlock)^(SFOAuthInfo *info) {
        NSLog(@"Authentication Done");
    }
    failure:(SFOAuthFlowFailureCallbackBlock)^(SFOAuthInfo *info, NSError *error) {
        NSLog(@"Authentication Failed");
       [[SFAuthenticationManager sharedManager] logout];
    }
    ];`
  • Download another example.

License

Copyright (c) 2014 Oktana

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

SalesforceMobileSDK-iOS LICENSE

Latest podspec

{
    "name": "OKTY-Salesforce-iOS",
    "version": "0.1.0",
    "summary": "The easiest way to connect native iOS apps with Salesforce.",
    "description": "                            OKTY-Salesforce-iOS, a library manager to connect native iOS apps with Salesforce.nn                            Featuresn                             * Makes it easy to develop new apps.n                             * Ues the newest Salesforce libreries.n                             * Automatically sets-up a project.nn",
    "homepage": "https://github.com/Oktana/OKTY-Salesforce-iOS",
    "license": "MIT",
    "authors": {
        "Mathias": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Oktana/OKTY-Salesforce-iOS.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": null
    },
    "requires_arc": true,
    "screenshots": "http://www.oktana.io/drive/okty-salesforce-ios-sample.png",
    "vendored_libraries": [
        "SalesforceMobileSDK-iOS-Distribution/libSalesforceCommonUtils.a",
        "SalesforceMobileSDK-iOS-Distribution/libMKNetworkKit-iOS.a",
        "SalesforceMobileSDK-iOS-Distribution/libSalesforceNetworkSDK.a",
        "SalesforceMobileSDK-iOS-Distribution/libSalesforceOAuth.a",
        "SalesforceMobileSDK-iOS-Distribution/libSalesforceSDKCore.a",
        "SalesforceMobileSDK-iOS-Distribution/libSalesforceSecurity.a",
        "SalesforceMobileSDK-iOS-Distribution/libSalesforceRestAPI.a",
        "SalesforceMobileSDK-iOS-Distribution/libcrypto.a",
        "SalesforceMobileSDK-iOS-Distribution/libsqlcipher.a",
        "SalesforceMobileSDK-iOS-Distribution/libssl.a"
    ],
    "frameworks": [
        "UIKit",
        "ImageIO",
        "Foundation",
        "CFNetwork",
        "CoreData",
        "CoreGraphics",
        "MessageUI",
        "MobileCoreServices",
        "QuartzCore",
        "Security",
        "SystemConfiguration"
    ],
    "libraries": [
        "sqlite3",
        "xml2",
        "z"
    ],
    "resources": [
        "SalesforceMobileSDK-iOS-Distribution/SalesforceSDKResources.bundle",
        "SalesforceMobileSDK-iOS-Distribution/Settings.bundle"
    ],
    "xcconfig": {
        "OTHER_LDFLAGS": "-all_load",
        "HEADER_SEARCH_PATHS": "$(SDKROOT)/usr/include/libxml2"
    },
    "prepare_command": "./config",
    "subspecs": [
        {
            "name": "CommonUtils",
            "header_dir": "SalesforceCommonUtils",
            "source_files": "SalesforceMobileSDK-iOS-Distribution/Headers/SalesforceCommonUtils/*.h"
        },
        {
            "name": "MKNetworkKit",
            "header_dir": "MKNetworkKit-iOS",
            "source_files": "SalesforceMobileSDK-iOS-Distribution/Headers/MKNetworkKit-iOS/*.h"
        },
        {
            "name": "Network",
            "header_dir": "SalesforceNetworkSDK",
            "source_files": "SalesforceMobileSDK-iOS-Distribution/Headers/SalesforceNetworkSDK/*.h"
        },
        {
            "name": "OAuth",
            "header_dir": "SalesforceOAuth",
            "source_files": "SalesforceMobileSDK-iOS-Distribution/Headers/SalesforceOAuth/*.h"
        },
        {
            "name": "RestAPI",
            "header_dir": "SalesforceRestAPI",
            "source_files": "SalesforceMobileSDK-iOS-Distribution/Headers/SalesforceRestAPI/*.h"
        },
        {
            "name": "SDKCore",
            "header_dir": "SalesforceSDKCore",
            "source_files": "SalesforceMobileSDK-iOS-Distribution/Headers/SalesforceSDKCore/*.h"
        },
        {
            "name": "Security",
            "header_dir": "SalesforceSecurity",
            "source_files": "SalesforceMobileSDK-iOS-Distribution/Headers/SalesforceSecurity/*.h"
        },
        {
            "name": "openssl",
            "header_dir": "openssl",
            "source_files": "SalesforceMobileSDK-iOS-Distribution/openssl/*.h"
        }
    ]
}

Pin It on Pinterest

Share This