Skip to content

Commit

Permalink
Enabled bitcode
Browse files Browse the repository at this point in the history
  • Loading branch information
arminbauer committed Feb 12, 2016
1 parent f757af0 commit 1ec74d7
Show file tree
Hide file tree
Showing 268 changed files with 8,534 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
@@ -1 +1,4 @@
*.a filter=lfs diff=lfs merge=lfs -text
Sample-Bitcode/OpenTok.framework/OpenTok filter=lfs diff=lfs merge=lfs -text
OpenTok filter=lfs diff=lfs merge=lfs -text
*OpenTok filter=lfs diff=lfs merge=lfs -text
28 changes: 27 additions & 1 deletion README.md
Expand Up @@ -19,11 +19,37 @@ pod 'OpenTok', '~> 2.6.1'
- Download the current release from and copy the idnow-sdk folder to your project directory
- Or add the repo as a git submodule (git lfs required. For the initial checkout do git lfs pull)
- Drag idnow-sdk folder into your Xcode project
- Add "Webkit.framework" and "Accelerate.framework" to your "Link binary with libraries" section
- Add "Webkit.framework", "Accelerate.framework" and "libz.dylib" to your "Link binary with libraries" section
- Import 'IDnowSDK.h'

Note: To get the sample project work, you have to call "pod install" to install dependencies.

## Bitcode Support (Beta)
To enable bitcode support you have to use beta version of OpenTok.
- Remove OpenTok from the Pods file and run pods install
- Download the OpenTok Beta from https://tokbox.com/downloads/opentok-ios-sdk-2.7.2-beta.1 and include as framework
- Add the following libraries:
```
AudioToolbox.framework
AVFoundation.framework
CoreGraphics.framework
CoreMedia.framework
CoreTelephony.framework
CoreVideo.framework
Foundation.framework
GLKit.framework
libc++.dylib
libsqlite3.dylyp
OpenGLES.framework
QuartzCore.framework
SystemConfiguration.framework
UIKit.framework
VideoToolbox.framework
libz.dylib
```
- Enable bitcode support in your project

A sample bitcode project is under Sample-Bitcode/

## Settings (IDnowSettings)
The settings that should be used for the identification process provided by IDnow.
Expand Down
651 changes: 651 additions & 0 deletions Sample-Bitcode/IDnow SDK Demo.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -0,0 +1,41 @@
<?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>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>1C8B75EB-B8CE-4C90-AA68-54D18F4DD84B</string>
<key>IDESourceControlProjectName</key>
<string>IDnow SDK Demo</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>B1830C30418EEDC9CF21FEA23654709095E3E00D</key>
<string>https://github.com/idnow/de.idnow.ios</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>Sample/IDnow SDK Demo.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>B1830C30418EEDC9CF21FEA23654709095E3E00D</key>
<string>../../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/idnow/de.idnow.ios</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>B1830C30418EEDC9CF21FEA23654709095E3E00D</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>B1830C30418EEDC9CF21FEA23654709095E3E00D</string>
<key>IDESourceControlWCCName</key>
<string>IDnow-IOS-SDK-Github</string>
</dict>
</array>
</dict>
</plist>
10 changes: 10 additions & 0 deletions Sample-Bitcode/IDnow SDK Demo.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -0,0 +1,41 @@
<?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>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>81EA196D-0397-48D5-8E21-3903CBFECD13</string>
<key>IDESourceControlProjectName</key>
<string>IDnow SDK Demo</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>B77DD729AA6ABF1EB44CDA6940FCBF7D59AB2BDB</key>
<string>https://github.com/idnow/de.idnow.ios</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>Sample/IDnow SDK Demo.xcworkspace</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>B77DD729AA6ABF1EB44CDA6940FCBF7D59AB2BDB</key>
<string>../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/idnow/de.idnow.ios</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>B77DD729AA6ABF1EB44CDA6940FCBF7D59AB2BDB</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>B77DD729AA6ABF1EB44CDA6940FCBF7D59AB2BDB</string>
<key>IDESourceControlWCCName</key>
<string>IDnow-IOS-SDK-Github</string>
</dict>
</array>
</dict>
</plist>
15 changes: 15 additions & 0 deletions Sample-Bitcode/IDnow SDK Demo/AppDelegate.h
@@ -0,0 +1,15 @@
//
// AppDelegate.h
// IDnow SDK Demo
//
// Created by Matthias Redlin on 24.03.15.
// Copyright (c) 2015 IDnow GmbH. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@end
61 changes: 61 additions & 0 deletions Sample-Bitcode/IDnow SDK Demo/AppDelegate.m
@@ -0,0 +1,61 @@
//
// AppDelegate.m
// IDnow SDK Demo
//
// Created by Matthias Redlin on 24.03.15.
// Copyright (c) 2015 IDnow GmbH. All rights reserved.
//

#import "AppDelegate.h"

@interface AppDelegate ()

@end


@implementation AppDelegate


- (BOOL) application: (UIApplication *) application didFinishLaunchingWithOptions: (NSDictionary *) launchOptions
{
// Override point for customization after application launch.
self.window.tintColor = [UIColor colorWithRed:249.0f/255.0f green:86.0f/255.0f blue:2.0f/255.0f alpha:1.0f];

return YES;
}


- (void) applicationWillResignActive: (UIApplication *) application
{
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}


- (void) applicationDidEnterBackground: (UIApplication *) application
{
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}


- (void) applicationWillEnterForeground: (UIApplication *) application
{
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}


- (void) applicationDidBecomeActive: (UIApplication *) application
{
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}


- (void) applicationWillTerminate: (UIApplication *) application
{
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
// Saves changes in the application's managed object context before the application terminates.
}


@end
41 changes: 41 additions & 0 deletions Sample-Bitcode/IDnow SDK Demo/Base.lproj/LaunchScreen.xib
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6751" systemVersion="14C1514" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6736"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB">
<rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright (c) 2015 IDnow GmbH. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
<rect key="frame" x="20" y="439" width="441" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="IDnow SDK Demo" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
<rect key="frame" x="20" y="140" width="441" height="43"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
<constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
<constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
<constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
<constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
</constraints>
<nil key="simulatedStatusBarMetrics"/>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="548" y="455"/>
</view>
</objects>
</document>
69 changes: 69 additions & 0 deletions Sample-Bitcode/IDnow SDK Demo/Base.lproj/Main.storyboard
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6751" systemVersion="14C1514" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="Ege-ct-1LP">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6736"/>
</dependencies>
<scenes>
<!--Navigation Controller-->
<scene sceneID="5Fi-QW-ODq">
<objects>
<navigationController id="Ege-ct-1LP" sceneMemberID="viewController">
<navigationBar key="navigationBar" contentMode="scaleToFill" id="oWg-Ot-Vjy">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<connections>
<segue destination="vXZ-lx-hvc" kind="relationship" relationship="rootViewController" id="MPM-Ab-mhH"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="EQB-vY-6eg" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-256" y="328"/>
</scene>
<!--View Controller-->
<scene sceneID="ufC-wZ-h7g">
<objects>
<viewController id="vXZ-lx-hvc" customClass="ViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="jyV-Pf-zRb"/>
<viewControllerLayoutGuide type="bottom" id="2fi-mo-0CV"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5WW-s9-DIQ">
<rect key="frame" x="243" y="113" width="115" height="30"/>
<state key="normal" title="Start Video Ident">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="startVideoIdent:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="XXw-v2-ZUA"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="8vN-fo-t0n">
<rect key="frame" x="242" y="183" width="118" height="30"/>
<state key="normal" title="Start Photo Ident">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="startPhotoIdent:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="GXm-rW-99E"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="8vN-fo-t0n" firstAttribute="top" secondItem="5WW-s9-DIQ" secondAttribute="bottom" constant="40" id="1Pt-g3-zkI"/>
<constraint firstItem="5WW-s9-DIQ" firstAttribute="top" secondItem="jyV-Pf-zRb" secondAttribute="bottom" constant="49" id="Z1t-18-yL5"/>
<constraint firstItem="8vN-fo-t0n" firstAttribute="centerX" secondItem="5WW-s9-DIQ" secondAttribute="centerX" id="vbC-LU-g1S"/>
<constraint firstAttribute="centerX" secondItem="5WW-s9-DIQ" secondAttribute="centerX" constant="-0.5" id="yB0-hl-Y5Y"/>
</constraints>
</view>
<navigationItem key="navigationItem" id="XqJ-sS-wvl"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="518" y="328"/>
</scene>
</scenes>
</document>
@@ -0,0 +1,40 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon iPhone 2x.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon iPhone 3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1ec74d7

Please sign in to comment.