Latest 1.0.8
Homepage https://github.com/LifePics/iOS-SDK
License MIT
Platforms ios 7.0, requires ARC
Frameworks Accelerate, AssetsLibrary, CFNetwork, CoreGraphics, CoreLocation, ImageIO, MapKit, MobileCoreServices, QuartzCore, Security, SystemConfiguration, UIKit, LifePics
Authors ,

LifePics iOS SDK Version 1.0.8

Overview

LifePics is the market leader in providing retail photofinishers with the latest online imaging services and technologies to conduct business on the Web.

The LifePics OPEN (Open Photo Ecommerce Network) program allows app developers to drive consumer photo orders through the LifePics Network. We will allow you to link your app into our network, and we will pay you a revenue share percentage for every order your app generates.

To learn more about developer revenue share please read the enclosed LifePics Developer Agreement
and review Schedule 1.

To request developer keys from LifePics please email a complete signed copy of the LifePics Developer Agreement to [email protected]. LifePics will generate a set of developer keys and email them back to you. Please see Schedule 1 in the LifePics Developer Agreement on documents to send to LifePics to be eligible for developer revenue share payments.

Please email any questions about the OPEN program to [email protected].


The LifePics iOS SDK

The LifePics SDK allows your iPhone users to select images and have them printed locally at nearby photofinishers.

Users can select images from their photo library, images provided by your application, or, optionally, images from their Facebook, Instagram, Google, or Flickr accounts.




Prerequisites

You will need a free LifePics developer key. Details are in the Overview section above.

The SDK supports iOS 7.0 and later.


Installation

CocoaPods

The easiest way to install the LifePics SDK is using CocoaPods.

platform :ios, '7.0'
pod 'LifePics'

Manual Installation

Put a copy of the LifePics.framework and LifePics.bundle files anywhere in your project folder.

In Xcode, select your project in the Project Navigator.
Select your app target.
Select the Build Phases tab.
Expand Link Binary With Libraries.
Click the + button, then Add Other, to select and add the LifePics.framework file.

Next, add the following system frameworks (if they’re not already linked to your project:

  • Accelerate
  • AddressBook
  • AssetsLibrary
  • AVFoundation
  • CFNetwork
  • CoreGraphics
  • ImageIO
  • MapKit
  • MobileCoreServices
  • PassKit
  • QuartzCore
  • Security
  • SystemConfiguration

And these libraries:

  • libsqlite3.dylib
  • libxml2.dylib
  • libz.dylib

Now switch to the Build Settings tab and find the Other Linker Flags setting. Add "-ObjC" here, for both Debug and Release.

Add the LifePics.bundle to your target, by selecting Add Files in the Project Navigator.


Import the LifePics headers:

#import <LifePics/LifePics.h>

Connect to the LifePics network by providing your Partner ID, Source ID, and password:

[[LPFSessionManager sharedManager] beginPartnerSessionWithID:@"partnerID"
                                                    sourceID:@"sourceID"
                                                    password:@"password"
                                                  completion:^(NSError *error) {
                                                      if ([error code] != 0) {
                                                          // Handle error here.
                                                      }
                                                  }];

Finally, present the LifePics Order View controller:

LPFOrderViewController *vc = [[LPFOrderViewController alloc] initWithImageDataSource:nil];
[self presentViewController:vc animated:YES completion:NULL];

Customization

You can customize the colors used by the LifePics Order View Controller by setting the primary and secondary colors before presenting it:

LPFOrderViewController *vc = [[LPFOrderViewController alloc] initWithImageDataSource:nil];
vc.primaryColor = [UIColor blueColor];
vc.secondaryColor = [UIColor purpleColor];
[self presentViewController:vc animated:YES completion:NULL];

Further interface customizations can be made using the UIAppearance protocol.

You can also enable Facebook, Instagram, Google, and Flickr access in the Sources view. See the Configure Photo Sources document for details.


Revision History

Version 1.0.8

Features

  • Added a required email address to the Confirm Order view.

  • Added Terms of Service and Privacy Policy links to the Confirm Order view.

  • Improved the error message if access to device photos has been denied.

Version 1.0.7

Features

  • Photo sources are now dimmed until you log into them.

  • You can now log out of a photo source (use the Edit button).

  • The staging server will be used when building in DEBUG mode. Otherwise the production server will be used.

  • When starting a session, a message will be displayed in the Xcode console to let you know if you’re connected to the staging or production server.

  • The Submit Order button will now say “Submit Fake Order” when logged into the staging server.

Bug Fixes

  • The list of photo sources no longer contains unwanted white space at the top when retuning from a photo source.

  • The dialog offering to submit a fake order has been removed.

Version 1.0.6

Features

  • We’ve removed a merchant that no longer wishes to participate in the mobile SDK program.

Version 1.0.5

Features

  • Show detailed image upload progress when ordering.
  • Added the LPFOrderViewControllerDelgate to keep updated on current order status.

Bug Fixes

  • Facebook required permissions minimized to photos only.

Version 1.0.4

Bug Fixes

  • Fixed instructions for configuring Flickr.
  • Fixed permissions request for Facebook so your FB app doesn’t need to be in an approved/reviewed state to test it.
  • Flickr now supports https only.
  • Serialized image uploads to support larger orders.

Version 1.0.3

Features

  • Improved the animation when previewing photos.

Bug Fixes

  • Fixed a bug in the 1.0.2 release that prevented compiling.
  • Removed CoreImage from the documentation as a system framework requirement.

Version 1.0.2

Features

  • Instagram will now show paged results.

Bug Fixes

  • Fixed Facebook permissions error.

Version 1.0.1

Features

  • We’ve added a CocoaPods spec file.
  • Added SmugMug as an image source.
  • Improved store finding when the user’s current location can’t be determined.
  • Now animates from thumbnail view to the single-image preview.
  • Updated the activity indicator.
  • Enabled the status bar network activity indicator.

Bug Fixes

  • Fixed text wrap in the floating navigation buttons.
  • Fixed a photo rotation bug.
  • Fixed a photo source thumbnail aspect ratio bug.
  • Fixed the two crashing bugs.
  • Fixed an image upload bug.

Latest podspec

{
    "name": "LifePics",
    "version": "1.0.8",
    "homepage": "https://github.com/LifePics/iOS-SDK",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "summary": "The LifePics SDK allows your iPhone users to select images and have them printed locally at nearby photofinishers.",
    "authors": {
        "Dave Batton": "[email protected]",
        "John Blanco": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/LifePics/iOS-SDK.git",
        "tag": "1.0.8"
    },
    "description": "                   The LifePics SDK allows your iPhone users to select images and have them printed locally at nearby photofinishers.nnttttUsers can select images from their photo library, images provided by your application, or, optionally, images from their Facebook, Instagram, Google, or Flickr accounts.n",
    "screenshots": [
        "https://camo.githubusercontent.com/a83d51b3ab1e8acb721110a3f82298706866d1c0/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f4c696665506963732d694f532d53444b2f53637265656e73686f74732f73637265656e312e706e67",
        "https://camo.githubusercontent.com/b3bc28a8a850b690265aad9ceec0f11c8476aca9/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f4c696665506963732d694f532d53444b2f53637265656e73686f74732f73637265656e322e706e67",
        "https://camo.githubusercontent.com/06dd4dd45b047c9df385387931d38bf93474a888/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f4c696665506963732d694f532d53444b2f53637265656e73686f74732f73637265656e332e706e67",
        "https://camo.githubusercontent.com/7ae8ede5d7ae017ddc768a52a88cb910f537569d/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f4c696665506963732d694f532d53444b2f53637265656e73686f74732f73637265656e342e706e67",
        "https://camo.githubusercontent.com/7f4706a0b9335276c6e42e32c9d8da35fb161a4e/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f4c696665506963732d694f532d53444b2f53637265656e73686f74732f73637265656e352e706e67",
        "https://camo.githubusercontent.com/f5128d66bfc92851d4c243b815e196cb7a40be5d/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f4c696665506963732d694f532d53444b2f53637265656e73686f74732f73637265656e362e706e67",
        "https://camo.githubusercontent.com/4a91f615423ace7927cbff7273d820267a18fd09/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f4c696665506963732d694f532d53444b2f53637265656e73686f74732f73637265656e372e706e67",
        "https://camo.githubusercontent.com/f456199c1012eeb9a29106f1d8edde129e0f21df/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f4c696665506963732d694f532d53444b2f53637265656e73686f74732f73637265656e382e706e67"
    ],
    "source_files": "LifePics.framework/**/*.h",
    "preserve_paths": [
        "LifePics.framework",
        "LifePics.bundle"
    ],
    "resources": "LifePics.bundle",
    "frameworks": [
        "Accelerate",
        "AssetsLibrary",
        "CFNetwork",
        "CoreGraphics",
        "CoreLocation",
        "ImageIO",
        "MapKit",
        "MobileCoreServices",
        "QuartzCore",
        "Security",
        "SystemConfiguration",
        "UIKit",
        "LifePics"
    ],
    "libraries": [
        "sqlite3",
        "xml2",
        "z"
    ],
    "requires_arc": true,
    "xcconfig": {
        "HEADER_SEARCH_PATHS": "$(SDKROOT)/usr/include/libxml2",
        "FRAMEWORK_SEARCH_PATHS": ""${PODS_ROOT}/LifePics""
    }
}

Pin It on Pinterest

Share This