The KPCC iOS App for iPhone
Currently being targeted at iOS7 and up. Compiled and built with Xcode 6 for iOS8. And meet our new best friend, Swift.
In order for this app to hook up to the variety of third-party services we use, you're going to have to setup a file 'KPCC/Config.plist' - as seen in SCPR/KPCC-iPad.
Here's what that might look like for you:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>LinkedIn</key>
<dict>
<key>AppKey</key>
<string></string>
<key>ClientSecret</key>
<string></string>
</dict>
<key>Twitter</key>
<dict>
<key>ConsumerKey</key>
<string></string>
<key>ConsumerSecret</key>
<string></string>
</dict>
<key>Readability</key>
<dict>
<key>ApiKey</key>
<string></string>
</dict>
<key>Mixpanel</key>
<dict>
<key>SandboxToken</key>
<string>...</string>
<key>ProductionToken</key>
<string>...</string>
<key>BetaToken</key>
<string>...</string>
</dict>
<key>Desk</key>
<dict>
<key>AuthPassword</key>
<string>...</string>
<key>AuthUser</key>
<string>...</string>
</dict>
<key>AdSettings</key>
<dict>
<key>AdGtpId</key>
<string></string>
<key>VendorId</key>
<string></string>
</dict>
<key>Flurry</key>
<dict>
<key>ProductionKey</key>
<string>...</string>
<key>DebugKey</key>
<string>...</string>
</dict>
<key>TestFlight</key>
<dict>
<key>AppToken</key>
<string>...</string>
</dict>
<key>StreamMachine</key>
<dict>
<key>standard</key>
<string>...</string>
<key>xfs</key>
<string>...</string>
<key>test</key>
<string>...</string>
<key>external-test</key>
<string>...</string>
<key>xcast-mp3</key>
<string>...</string>
<key>xcast-aac</key>
<string>...</string>
</dict>
<key>SCPR</key>
<dict>
<key>staging</key>
<string>...</string>
<key>production</key>
<string>...</string>
</dict>
<key>NewRelic</key>
<dict>
<key>production</key>
<string>...</string>
</dict>
<key>GoogleAnalytics</key>
<dict>
<key>Sandbox</key>
<string>...</string>
<key>Production</key>
<string>...</string>
</dict>
<key>Parse</key>
<dict>
<key>ClientKey</key>
<string>...</string>
<key>ApplicationId</key>
<string>...</string>
</dict>
<key>Auth0</key>
<dict>
<key>POST</key>
<string>...</string>
</dict>
</dict>
</plist>
The app uses CocoaPods to manage third-party libraries within the project:
platform :ios, '7.0' pod 'AFNetworking', '~> 2.0' pod 'JDStatusBarNotification' pod 'pop', '~> 1.0' pod 'FXBlurView', '~> 1.6' link_with ['KPCC', 'KPCC-TestFlight']We also incorporate several libraries that are included in the repository as compilable sources:
Flurry (v5.3.0)
TestFlight (v3.0.0)
You're going to have to install CocoaPods. After doing so:
Run pod install
from terminal in the project root, open KPCC.xcworkspace
, and build to a device as you see fit. Ignore errors from TestFlight, Flurry, and other services that require the use of secret keys - the app should still run fine without them. You're going to have to use your own keys and set up a Config.plist to make use of these libraries.
As stated above, this app plays nice with Swift, so you're going to have to download Xcode 6 and build for simulator/devices running >= iOS7.