Skip to content

Commit

Permalink
Initial Version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauricio Cousillas committed Feb 3, 2017
1 parent 3778f1d commit d271910
Show file tree
Hide file tree
Showing 23 changed files with 1,299 additions and 117 deletions.
64 changes: 40 additions & 24 deletions Example/Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,24 @@
objects = {

/* Begin PBXBuildFile section */
1A2365BE1E44C2650066A987 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1A2365BD1E44C2650066A987 /* Main.storyboard */; };
1A2365C21E44C2770066A987 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A2365C11E44C2770066A987 /* AppDelegate.swift */; };
1A2365DE1E44CCDE0066A987 /* Xniffer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8F9CAB221D89C756006E1824 /* Xniffer.framework */; };
1A2365DF1E44CCDE0066A987 /* Xniffer.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 8F9CAB221D89C756006E1824 /* Xniffer.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1AEAFDE81E44C21800F04EC0 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1AEAFDE71E44C21800F04EC0 /* ViewController.swift */; };
287D0A721C4B7877004566D6 /* ExampleUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 287D0A711C4B7877004566D6 /* ExampleUITests.swift */; };
28F828D01C4B714D00330CF4 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28F828CF1C4B714D00330CF4 /* AppDelegate.swift */; };
28F828D21C4B714D00330CF4 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28F828D11C4B714D00330CF4 /* ViewController.swift */; };
28F828D51C4B714D00330CF4 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 28F828D31C4B714D00330CF4 /* Main.storyboard */; };
28F828D71C4B714D00330CF4 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 28F828D61C4B714D00330CF4 /* Assets.xcassets */; };
28F828DA1C4B714D00330CF4 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 28F828D81C4B714D00330CF4 /* LaunchScreen.storyboard */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
1A2365E01E44CCDE0066A987 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 287D0A741C4B7B26004566D6 /* Xniffer.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = 28F8287C1C494B2C00330CF4;
remoteInfo = Xniffer;
};
28F828E11C4B714D00330CF4 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 28F828C41C4B714D00330CF4 /* Project object */;
Expand All @@ -40,25 +49,26 @@
/* End PBXContainerItemProxy section */

/* Begin PBXCopyFilesBuildPhase section */
287D0A811C4B7B55004566D6 /* Embed Frameworks */ = {
1A2365E21E44CCDE0066A987 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
1A2365DF1E44CCDE0066A987 /* Xniffer.framework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
1A2365BD1E44C2650066A987 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = "<group>"; };
1A2365C11E44C2770066A987 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = Example/AppDelegate.swift; sourceTree = "<group>"; };
1AEAFDE71E44C21800F04EC0 /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
287D0A711C4B7877004566D6 /* ExampleUITests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ExampleUITests.swift; sourceTree = "<group>"; };
287D0A741C4B7B26004566D6 /* Xniffer.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Xniffer.xcodeproj; path = ../Xniffer.xcodeproj; sourceTree = "<group>"; };
28F828CC1C4B714D00330CF4 /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
28F828CF1C4B714D00330CF4 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = Example/AppDelegate.swift; sourceTree = "<group>"; };
28F828D11C4B714D00330CF4 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ViewController.swift; path = Example/ViewController.swift; sourceTree = "<group>"; };
28F828D41C4B714D00330CF4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
28F828D61C4B714D00330CF4 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Example/Assets.xcassets; sourceTree = "<group>"; };
28F828D91C4B714D00330CF4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
28F828DB1C4B714D00330CF4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Example/Info.plist; sourceTree = "<group>"; };
Expand All @@ -71,6 +81,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
1A2365DE1E44CCDE0066A987 /* Xniffer.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -106,9 +117,9 @@
28F828CE1C4B714D00330CF4 /* Example */ = {
isa = PBXGroup;
children = (
28F828CF1C4B714D00330CF4 /* AppDelegate.swift */,
28F828D11C4B714D00330CF4 /* ViewController.swift */,
28F828D31C4B714D00330CF4 /* Main.storyboard */,
1A2365C11E44C2770066A987 /* AppDelegate.swift */,
1A2365BD1E44C2650066A987 /* Main.storyboard */,
1AEAFDE71E44C21800F04EC0 /* ViewController.swift */,
28F828D61C4B714D00330CF4 /* Assets.xcassets */,
28F828D81C4B714D00330CF4 /* LaunchScreen.storyboard */,
28F828DB1C4B714D00330CF4 /* Info.plist */,
Expand Down Expand Up @@ -144,11 +155,12 @@
28F828C81C4B714D00330CF4 /* Sources */,
28F828C91C4B714D00330CF4 /* Frameworks */,
28F828CA1C4B714D00330CF4 /* Resources */,
287D0A811C4B7B55004566D6 /* Embed Frameworks */,
1A2365E21E44CCDE0066A987 /* Embed Frameworks */,
);
buildRules = (
);
dependencies = (
1A2365E11E44CCDE0066A987 /* PBXTargetDependency */,
);
name = Example;
productName = Example;
Expand Down Expand Up @@ -184,7 +196,8 @@
TargetAttributes = {
28F828CB1C4B714D00330CF4 = {
CreatedOnToolsVersion = 7.2;
LastSwiftMigration = 0800;
DevelopmentTeam = 6F2G55XL63;
LastSwiftMigration = 0820;
};
28F828DF1C4B714D00330CF4 = {
CreatedOnToolsVersion = 7.2;
Expand Down Expand Up @@ -240,9 +253,9 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
1A2365BE1E44C2650066A987 /* Main.storyboard in Resources */,
28F828DA1C4B714D00330CF4 /* LaunchScreen.storyboard in Resources */,
28F828D71C4B714D00330CF4 /* Assets.xcassets in Resources */,
28F828D51C4B714D00330CF4 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -260,8 +273,8 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
28F828D21C4B714D00330CF4 /* ViewController.swift in Sources */,
28F828D01C4B714D00330CF4 /* AppDelegate.swift in Sources */,
1A2365C21E44C2770066A987 /* AppDelegate.swift in Sources */,
1AEAFDE81E44C21800F04EC0 /* ViewController.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -276,6 +289,11 @@
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
1A2365E11E44CCDE0066A987 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = Xniffer;
targetProxy = 1A2365E01E44CCDE0066A987 /* PBXContainerItemProxy */;
};
28F828E21C4B714D00330CF4 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 28F828CB1C4B714D00330CF4 /* Example */;
Expand All @@ -284,15 +302,6 @@
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
28F828D31C4B714D00330CF4 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
28F828D41C4B714D00330CF4 /* Base */,
);
name = Main.storyboard;
path = Example;
sourceTree = "<group>";
};
28F828D81C4B714D00330CF4 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
Expand Down Expand Up @@ -396,10 +405,13 @@
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
DEVELOPMENT_TEAM = 6F2G55XL63;
INFOPLIST_FILE = "$(SRCROOT)/Example/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.xmartlabs.Example;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
};
name = Debug;
Expand All @@ -409,6 +421,8 @@
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
DEVELOPMENT_TEAM = 6F2G55XL63;
INFOPLIST_FILE = "$(SRCROOT)/Example/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.xmartlabs.Example;
Expand All @@ -420,6 +434,7 @@
28F828ED1C4B714D00330CF4 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CLANG_ENABLE_MODULES = YES;
INFOPLIST_FILE = Example/ExampleUITests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
Expand All @@ -435,6 +450,7 @@
28F828EE1C4B714D00330CF4 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CLANG_ENABLE_MODULES = YES;
INFOPLIST_FILE = Example/ExampleUITests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
Expand Down
30 changes: 27 additions & 3 deletions Example/Example/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,17 +1,41 @@
//
// AppDelegate.swift
// Example
// Xniffer ( https://github.com/xmartlabs/Xniffer)
//
// Copyright © 2016 Xmartlabs SRL. All rights reserved.
// Copyright (c) 2017 Xmartlabs ( http://xmartlabs.com )
//
//
// 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.
//

import UIKit
import Xniffer

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?

static let session: URLSession = {
let config = URLSessionConfiguration.default
Xniffer.setup(with: config)
return URLSession(configuration: config)
}()

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
Expand Down
10 changes: 10 additions & 0 deletions Example/Example/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "29x29",
Expand Down
26 changes: 0 additions & 26 deletions Example/Example/Base.lproj/Main.storyboard

This file was deleted.

25 changes: 0 additions & 25 deletions Example/Example/ViewController.swift

This file was deleted.

Loading

0 comments on commit d271910

Please sign in to comment.