40
White Label iOS Application Installation and Customization Guide

White Label iOS Application Installation and Customization Guide

  • Upload
    vandat

  • View
    227

  • Download
    3

Embed Size (px)

Citation preview

Page 1: White Label iOS Application Installation and Customization Guide

White Label iOS Application Installation and Customization Guide

Page 2: White Label iOS Application Installation and Customization Guide

Background

Page 3: White Label iOS Application Installation and Customization Guide

Background

§  Application built for civic agencies to bring voting information to the public

§  Code written to make deployment easy, without extensive iOS development experience

Page 4: White Label iOS Application Installation and Customization Guide

Background

https://developers.google.com/civic-information/

Page 5: White Label iOS Application Installation and Customization Guide

Background

This is your data that Google is serving!

Page 6: White Label iOS Application Installation and Customization Guide

Background - API

Page 7: White Label iOS Application Installation and Customization Guide

Background - API

Response includes: §  Contest and Referendum §  Candidate information §  Polling locations §  Local voting information

Page 8: White Label iOS Application Installation and Customization Guide

Background – White Label

§  App not in the App Store, but ready to deploy

§  Customizable text and images §  Feature complete and ready to go

Page 9: White Label iOS Application Installation and Customization Guide

Background – Open Source

§  BSD 3-Clause License §  https://github.com/votinginfoproject/ ios7-white-label-app

Page 10: White Label iOS Application Installation and Customization Guide

Basic Requirements

§  Macintosh computer with a recent version of OSX

§  Xcode 5+ (for iOS 7 apps) §  Xcode command line tools installed §  Technical proficiency on a Mac

Page 11: White Label iOS Application Installation and Customization Guide

Setup – before you start

First, get your API keys: §  Google Civic Information API Key §  Google Maps iOS SDK API Key §  Google Directions API Key §  Google Analytics Tracking ID

Page 12: White Label iOS Application Installation and Customization Guide

Setup – before you start

Google makes this really easy: https://console.developers.google.com

Page 13: White Label iOS Application Installation and Customization Guide

Setup – before you start

Google makes this really easy: https://console.developers.google.com

Page 14: White Label iOS Application Installation and Customization Guide

Setup – before you start

Google makes this really easy: https://console.developers.google.com

Page 15: White Label iOS Application Installation and Customization Guide

Setup – before you start

Google makes this really easy: https://www.google.com/analytics/web

Page 16: White Label iOS Application Installation and Customization Guide

Setup – Dependencies

Xcode – required for iOS development, in the App Store Git – should be installed on the Mac with Xcode $ git --help

CocoaPods – a dependency manager for Objective C projects $ sudo gem install cocoapods

Page 17: White Label iOS Application Installation and Customization Guide

Setup – get the code

Go to https://github.com/votinginfoproject/ios7-white-label-app

Copy the HTTPS clone URL In Terminal, clone the repo:

$ git clone https://github.com/votinginfoproject/ios7-white-label-app.git

Page 18: White Label iOS Application Installation and Customization Guide

Setup – install dependencies

Navigate to the app’s working directory:

$ cd ios7-white-label-app/objc/VotingInformationProject/

Install dependencies with CocoaPods $ pod install

Page 19: White Label iOS Application Installation and Customization Guide

Setup – Settings

Navigate one more level in: $ cd VotingInformationProject

Copy the settings template files $ cp CivicAPIKey.plist.template CivicAPIKey.plist$ cp settings.plist.template settings.plist

Page 20: White Label iOS Application Installation and Customization Guide

Setup – Settings

Open the VotingInformationProject.xcworkspace file…

Page 21: White Label iOS Application Installation and Customization Guide

Setup – Settings

In Xcode, in the left sidebar, find and click on VotingInformationProject/ Resources/ settings.plist

Page 22: White Label iOS Application Installation and Customization Guide

Setup – Settings Get your API keys together and update the .plist file. You can also do this with a plain text editor. Update the GoogleMapsAPIKey, GoogleAnalyticsTrackingID, and GoogleDirectionsAPIKey Also, update the BrandNameText with what you want the app to be called.

Page 23: White Label iOS Application Installation and Customization Guide

Setup – Settings

In Xcode, in the left sidebar, find and click on VotingInformationProject/ Resources/ CivicAPIKey.plist

Page 24: White Label iOS Application Installation and Customization Guide

Setup – Settings

Update your GoogleCivicInfoAPIKey

Page 25: White Label iOS Application Installation and Customization Guide

Setup – Build the project

Click the “Play” button in the top left of the Xcode window: If everything works, you should get a success message:

Page 26: White Label iOS Application Installation and Customization Guide

Run – Build the project

And the app should start in the Simulator

Page 27: White Label iOS Application Installation and Customization Guide

Run – Additional Configurations

There are a few more things to consider before packaging the app for submittal to the App Store §  About, Terms, and Privacy Policy content §  Customized images §  Additional language support

Page 28: White Label iOS Application Installation and Customization Guide

Run – Additional Configurations

About, Terms, and Privacy Policy content are in Resources/Localizable.strings

Page 29: White Label iOS Application Installation and Customization Guide

Run – Additional Configurations

Edit, save, and rebuild You can change any of the text in Xcode or a plain text editor that supports UTF-16 character encoding.

Page 30: White Label iOS Application Installation and Customization Guide

Run – Additional Configurations

Translations are also in Resources/Localizable.strings

Spanish translations are not available yet, but are in progress

Page 31: White Label iOS Application Installation and Customization Guide

Run – Additional Configurations

Additional languages can be added by navigating to the project settings… and adding a new language. A new strings file will be created automatically

Page 32: White Label iOS Application Installation and Customization Guide

Run – Additional Configurations

Customize the app’s images by updating files in the Resources/Images directory Tips: §  Use the same name §  Keep the same pixel

dimensions

Page 33: White Label iOS Application Installation and Customization Guide

Run – Additional Configurations

Customize the AppIcons, Background, and LaunchScreen images for a complete visual rebranding. You don’t need to change these, though.

Page 34: White Label iOS Application Installation and Customization Guide

Publish

That’s everything for setup and configuration! The next step is to package the app and submit it to the App Store. Apple has lots of documentation on this process.

Page 35: White Label iOS Application Installation and Customization Guide

Publish

The publishing process requires completing several steps.

Page 36: White Label iOS Application Installation and Customization Guide

Publish

The documentation is extensive, but comprehensive. There’s a quick start guide…

Page 37: White Label iOS Application Installation and Customization Guide

Publish

As well as the complete distribution guide…

Page 38: White Label iOS Application Installation and Customization Guide

Publish

The process takes some time to work through, but isn’t particularly difficult. Many of the issues you may encounter are not new, and resolutions can likely be found with a quick Google search. If additional technical support is needed, contact: Jared Marcotte at [email protected]

Page 39: White Label iOS Application Installation and Customization Guide

Good luck!

Page 40: White Label iOS Application Installation and Customization Guide

White Label iOS Application Installation and Customization Guide