mirror of
https://github.com/appium/appium.git
synced 2026-04-28 22:40:34 -05:00
Restore sample-code apps
This commit is contained in:
@@ -0,0 +1,325 @@
|
||||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 46;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
1B08D24C1844279400752049 /* cybervillainsCA.cer in Resources */ = {isa = PBXBuildFile; fileRef = 1B08D24B1844279400752049 /* cybervillainsCA.cer */; };
|
||||
1B316481183696AA00E66A8A /* MainStoryboard_iPad.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1B31647F183696AA00E66A8A /* MainStoryboard_iPad.storyboard */; };
|
||||
1BD41A8916C10EAB009D6B32 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1BD41A8816C10EAB009D6B32 /* UIKit.framework */; };
|
||||
1BD41A8B16C10EAB009D6B32 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1BD41A8A16C10EAB009D6B32 /* Foundation.framework */; };
|
||||
1BD41A8D16C10EAB009D6B32 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1BD41A8C16C10EAB009D6B32 /* CoreGraphics.framework */; };
|
||||
1BD41A9316C10EAB009D6B32 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 1BD41A9116C10EAB009D6B32 /* InfoPlist.strings */; };
|
||||
1BD41A9516C10EAB009D6B32 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 1BD41A9416C10EAB009D6B32 /* main.m */; };
|
||||
1BD41A9916C10EAB009D6B32 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1BD41A9816C10EAB009D6B32 /* AppDelegate.m */; };
|
||||
1BD41A9B16C10EAB009D6B32 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 1BD41A9A16C10EAB009D6B32 /* Default.png */; };
|
||||
1BD41A9D16C10EAB009D6B32 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 1BD41A9C16C10EAB009D6B32 /* Default@2x.png */; };
|
||||
1BD41A9F16C10EAB009D6B32 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 1BD41A9E16C10EAB009D6B32 /* Default-568h@2x.png */; };
|
||||
1BD41AA216C10EAB009D6B32 /* MainStoryboard_iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1BD41AA016C10EAB009D6B32 /* MainStoryboard_iPhone.storyboard */; };
|
||||
1BD41AA816C10EAB009D6B32 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1BD41AA716C10EAB009D6B32 /* ViewController.m */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
1B08D24B1844279400752049 /* cybervillainsCA.cer */ = {isa = PBXFileReference; lastKnownFileType = file; path = cybervillainsCA.cer; sourceTree = "<group>"; };
|
||||
1B316480183696AA00E66A8A /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard_iPad.storyboard; sourceTree = "<group>"; };
|
||||
1BD41A8516C10EAB009D6B32 /* WebViewApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WebViewApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
1BD41A8816C10EAB009D6B32 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
|
||||
1BD41A8A16C10EAB009D6B32 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
|
||||
1BD41A8C16C10EAB009D6B32 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
|
||||
1BD41A9016C10EAB009D6B32 /* WebViewApp-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "WebViewApp-Info.plist"; sourceTree = "<group>"; };
|
||||
1BD41A9216C10EAB009D6B32 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||
1BD41A9416C10EAB009D6B32 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
|
||||
1BD41A9616C10EAB009D6B32 /* WebViewApp-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "WebViewApp-Prefix.pch"; sourceTree = "<group>"; };
|
||||
1BD41A9716C10EAB009D6B32 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
|
||||
1BD41A9816C10EAB009D6B32 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
|
||||
1BD41A9A16C10EAB009D6B32 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
|
||||
1BD41A9C16C10EAB009D6B32 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = "<group>"; };
|
||||
1BD41A9E16C10EAB009D6B32 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; };
|
||||
1BD41AA116C10EAB009D6B32 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard_iPhone.storyboard; sourceTree = "<group>"; };
|
||||
1BD41AA616C10EAB009D6B32 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
|
||||
1BD41AA716C10EAB009D6B32 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
1BD41A8216C10EAB009D6B32 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
1BD41A8916C10EAB009D6B32 /* UIKit.framework in Frameworks */,
|
||||
1BD41A8B16C10EAB009D6B32 /* Foundation.framework in Frameworks */,
|
||||
1BD41A8D16C10EAB009D6B32 /* CoreGraphics.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
1BD41A7C16C10EAB009D6B32 = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
1BD41A8E16C10EAB009D6B32 /* WebViewApp */,
|
||||
1BD41A8716C10EAB009D6B32 /* Frameworks */,
|
||||
1BD41A8616C10EAB009D6B32 /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
1BD41A8616C10EAB009D6B32 /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
1BD41A8516C10EAB009D6B32 /* WebViewApp.app */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
1BD41A8716C10EAB009D6B32 /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
1BD41A8816C10EAB009D6B32 /* UIKit.framework */,
|
||||
1BD41A8A16C10EAB009D6B32 /* Foundation.framework */,
|
||||
1BD41A8C16C10EAB009D6B32 /* CoreGraphics.framework */,
|
||||
);
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
1BD41A8E16C10EAB009D6B32 /* WebViewApp */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
1BD41A9716C10EAB009D6B32 /* AppDelegate.h */,
|
||||
1BD41A9816C10EAB009D6B32 /* AppDelegate.m */,
|
||||
1BD41AA016C10EAB009D6B32 /* MainStoryboard_iPhone.storyboard */,
|
||||
1B31647F183696AA00E66A8A /* MainStoryboard_iPad.storyboard */,
|
||||
1BD41AA616C10EAB009D6B32 /* ViewController.h */,
|
||||
1BD41AA716C10EAB009D6B32 /* ViewController.m */,
|
||||
1BD41A8F16C10EAB009D6B32 /* Supporting Files */,
|
||||
);
|
||||
path = WebViewApp;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
1BD41A8F16C10EAB009D6B32 /* Supporting Files */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
1B08D24B1844279400752049 /* cybervillainsCA.cer */,
|
||||
1BD41A9016C10EAB009D6B32 /* WebViewApp-Info.plist */,
|
||||
1BD41A9116C10EAB009D6B32 /* InfoPlist.strings */,
|
||||
1BD41A9416C10EAB009D6B32 /* main.m */,
|
||||
1BD41A9616C10EAB009D6B32 /* WebViewApp-Prefix.pch */,
|
||||
1BD41A9A16C10EAB009D6B32 /* Default.png */,
|
||||
1BD41A9C16C10EAB009D6B32 /* Default@2x.png */,
|
||||
1BD41A9E16C10EAB009D6B32 /* Default-568h@2x.png */,
|
||||
);
|
||||
name = "Supporting Files";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
1BD41A8416C10EAB009D6B32 /* WebViewApp */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 1BD41AAB16C10EAB009D6B32 /* Build configuration list for PBXNativeTarget "WebViewApp" */;
|
||||
buildPhases = (
|
||||
1BD41A8116C10EAB009D6B32 /* Sources */,
|
||||
1BD41A8216C10EAB009D6B32 /* Frameworks */,
|
||||
1BD41A8316C10EAB009D6B32 /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = WebViewApp;
|
||||
productName = WebViewApp;
|
||||
productReference = 1BD41A8516C10EAB009D6B32 /* WebViewApp.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
1BD41A7D16C10EAB009D6B32 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastUpgradeCheck = 0500;
|
||||
ORGANIZATIONNAME = "Appium Committers";
|
||||
};
|
||||
buildConfigurationList = 1BD41A8016C10EAB009D6B32 /* Build configuration list for PBXProject "WebViewApp" */;
|
||||
compatibilityVersion = "Xcode 3.2";
|
||||
developmentRegion = English;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
);
|
||||
mainGroup = 1BD41A7C16C10EAB009D6B32;
|
||||
productRefGroup = 1BD41A8616C10EAB009D6B32 /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
1BD41A8416C10EAB009D6B32 /* WebViewApp */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
1BD41A8316C10EAB009D6B32 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
1B316481183696AA00E66A8A /* MainStoryboard_iPad.storyboard in Resources */,
|
||||
1BD41A9316C10EAB009D6B32 /* InfoPlist.strings in Resources */,
|
||||
1BD41A9B16C10EAB009D6B32 /* Default.png in Resources */,
|
||||
1BD41A9D16C10EAB009D6B32 /* Default@2x.png in Resources */,
|
||||
1BD41A9F16C10EAB009D6B32 /* Default-568h@2x.png in Resources */,
|
||||
1BD41AA216C10EAB009D6B32 /* MainStoryboard_iPhone.storyboard in Resources */,
|
||||
1B08D24C1844279400752049 /* cybervillainsCA.cer in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
1BD41A8116C10EAB009D6B32 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
1BD41A9516C10EAB009D6B32 /* main.m in Sources */,
|
||||
1BD41A9916C10EAB009D6B32 /* AppDelegate.m in Sources */,
|
||||
1BD41AA816C10EAB009D6B32 /* ViewController.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXVariantGroup section */
|
||||
1B31647F183696AA00E66A8A /* MainStoryboard_iPad.storyboard */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
1B316480183696AA00E66A8A /* en */,
|
||||
);
|
||||
name = MainStoryboard_iPad.storyboard;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
1BD41A9116C10EAB009D6B32 /* InfoPlist.strings */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
1BD41A9216C10EAB009D6B32 /* en */,
|
||||
);
|
||||
name = InfoPlist.strings;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
1BD41AA016C10EAB009D6B32 /* MainStoryboard_iPhone.storyboard */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
1BD41AA116C10EAB009D6B32 /* en */,
|
||||
);
|
||||
name = MainStoryboard_iPhone.storyboard;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXVariantGroup section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
1BD41AA916C10EAB009D6B32 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"DEBUG=1",
|
||||
"$(inherited)",
|
||||
);
|
||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = iphoneos;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
1BD41AAA16C10EAB009D6B32 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
|
||||
ONLY_ACTIVE_ARCH = NO;
|
||||
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
|
||||
SDKROOT = iphoneos;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
1BD41AAC16C10EAB009D6B32 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "WebViewApp/WebViewApp-Prefix.pch";
|
||||
INFOPLIST_FILE = "WebViewApp/WebViewApp-Info.plist";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
WRAPPER_EXTENSION = app;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
1BD41AAD16C10EAB009D6B32 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "WebViewApp/WebViewApp-Prefix.pch";
|
||||
INFOPLIST_FILE = "WebViewApp/WebViewApp-Info.plist";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
WRAPPER_EXTENSION = app;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
1BD41A8016C10EAB009D6B32 /* Build configuration list for PBXProject "WebViewApp" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
1BD41AA916C10EAB009D6B32 /* Debug */,
|
||||
1BD41AAA16C10EAB009D6B32 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
1BD41AAB16C10EAB009D6B32 /* Build configuration list for PBXNativeTarget "WebViewApp" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
1BD41AAC16C10EAB009D6B32 /* Debug */,
|
||||
1BD41AAD16C10EAB009D6B32 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 1BD41A7D16C10EAB009D6B32 /* Project object */;
|
||||
}
|
||||
Generated
+7
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:WebViewApp.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// AppDelegate.h
|
||||
// WebViewApp
|
||||
//
|
||||
// Created by Jonathan Lipps on 2/5/13.
|
||||
// Copyright (c) 2013 Appium Committers. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface AppDelegate : UIResponder <UIApplicationDelegate>
|
||||
|
||||
@property (strong, nonatomic) UIWindow *window;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,46 @@
|
||||
//
|
||||
// AppDelegate.m
|
||||
// WebViewApp
|
||||
//
|
||||
// Created by Jonathan Lipps on 2/5/13.
|
||||
// Copyright (c) 2013 Appium Committers. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AppDelegate.h"
|
||||
|
||||
@implementation AppDelegate
|
||||
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||
{
|
||||
// Override point for customization after application launch.
|
||||
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:.
|
||||
}
|
||||
|
||||
@end
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// ViewController.h
|
||||
// WebViewApp
|
||||
//
|
||||
// Created by Jonathan Lipps on 2/5/13.
|
||||
// Copyright (c) 2013 Appium Committers. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface ViewController : UIViewController <UITextFieldDelegate, UIWebViewDelegate, NSURLConnectionDataDelegate>
|
||||
@property (weak, nonatomic) IBOutlet UITextField *urlField;
|
||||
@property (weak, nonatomic) IBOutlet UIWebView *mainWebView;
|
||||
@property UIActivityIndicatorView *pageLoadingIndicator;
|
||||
- (IBAction)navBtnClicked:(id)sender;
|
||||
- (IBAction)urlEditBegin:(id)sender;
|
||||
- (BOOL)textFieldShouldReturn:(UITextField *)textField;
|
||||
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType;
|
||||
- (void)webViewDidFinishLoad:(UIWebView *)webView;
|
||||
- (void)webViewDidStartLoad:(UIWebView *)webView;
|
||||
@end
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
//
|
||||
// ViewController.m
|
||||
// WebViewApp
|
||||
//
|
||||
// Created by Jonathan Lipps on 2/5/13.
|
||||
// Copyright (c) 2013 Appium Committers. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ViewController.h"
|
||||
|
||||
|
||||
@implementation ViewController
|
||||
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
self.urlField.delegate = self;
|
||||
self.mainWebView.delegate = self;
|
||||
self.pageLoadingIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
|
||||
self.pageLoadingIndicator.hidesWhenStopped = YES;
|
||||
self.urlField.rightView = self.pageLoadingIndicator;
|
||||
self.urlField.rightViewMode = UITextFieldViewModeAlways;
|
||||
}
|
||||
|
||||
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning
|
||||
{
|
||||
[super didReceiveMemoryWarning];
|
||||
// Dispose of any resources that can be recreated.
|
||||
}
|
||||
|
||||
- (IBAction)navBtnClicked:(id)sender {
|
||||
NSLog(@"changing url to %@", self.urlField.text);
|
||||
[self.mainWebView
|
||||
loadRequest:[NSURLRequest
|
||||
requestWithURL: [NSURL
|
||||
URLWithString: self.urlField.text]]];
|
||||
}
|
||||
|
||||
- (IBAction)urlEditBegin:(id)sender {
|
||||
if ([self.urlField.text isEqualToString:@""]) {
|
||||
self.urlField.text = @"http://";
|
||||
}
|
||||
}
|
||||
|
||||
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
|
||||
[textField resignFirstResponder];
|
||||
[self navBtnClicked:nil];
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {
|
||||
NSString *url = [[request URL] absoluteString];
|
||||
NSLog(@"URL change request: %@", url);
|
||||
self.urlField.text = url;
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void)webViewDidFinishLoad:(UIWebView *)webView {
|
||||
NSLog(@"Webview finished loading %@", [[webView.request URL] absoluteString]);
|
||||
[self.pageLoadingIndicator stopAnimating];
|
||||
}
|
||||
|
||||
- (void)webViewDidStartLoad:(UIWebView *)webView {
|
||||
NSLog(@"Webview started loading");
|
||||
[self.pageLoadingIndicator startAnimating];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSURLRequest (NSURLRequestWithIgnoreSSL)
|
||||
|
||||
+ (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,48 @@
|
||||
<?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>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>${PRODUCT_NAME}</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>io.appium.${PRODUCT_NAME:rfc1034identifier}</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>${PRODUCT_NAME}</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>UIMainStoryboardFile</key>
|
||||
<string>MainStoryboard_iPhone</string>
|
||||
<key>UIMainStoryboardFile~ipad</key>
|
||||
<string>MainStoryboard_iPad</string>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
<array>
|
||||
<string>armv7</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// Prefix header for all source files of the 'WebViewApp' target in the 'WebViewApp' project
|
||||
//
|
||||
|
||||
#import <Availability.h>
|
||||
|
||||
#ifndef __IPHONE_5_0
|
||||
#warning "This project uses features only available in iOS SDK 5.0 and later."
|
||||
#endif
|
||||
|
||||
#ifdef __OBJC__
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
/* Localized versions of Info.plist keys */
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="4514" systemVersion="12F45" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" useAutolayout="YES" initialViewController="qCV-AS-rCm">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3747"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--View Controller-->
|
||||
<scene sceneID="3el-3z-hw1">
|
||||
<objects>
|
||||
<viewController id="qCV-AS-rCm" customClass="ViewController" sceneMemberID="viewController">
|
||||
<layoutGuides>
|
||||
<viewControllerLayoutGuide type="top" id="lWk-kq-shm"/>
|
||||
<viewControllerLayoutGuide type="bottom" id="OOK-Yz-V4s"/>
|
||||
</layoutGuides>
|
||||
<view key="view" contentMode="scaleToFill" id="Thv-qS-DhF">
|
||||
<rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<subviews>
|
||||
<webView contentMode="scaleToFill" ambiguous="YES" misplaced="YES" scalesPageToFit="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Fpx-YW-dI6" userLabel="mainWebView">
|
||||
<rect key="frame" x="0.0" y="64" width="768" height="960"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</webView>
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" ambiguous="YES" misplaced="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Enter URL" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="Kws-yb-sYg" userLabel="urlField">
|
||||
<rect key="frame" x="11" y="26" width="709" height="30"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<accessibility key="accessibilityConfiguration" label="Enter URL"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||
<textInputTraits key="textInputTraits" autocorrectionType="no" keyboardType="URL" keyboardAppearance="light" returnKeyType="go"/>
|
||||
<connections>
|
||||
<action selector="urlEditBegin:" destination="qCV-AS-rCm" eventType="editingDidBegin" id="W5P-bn-iUe"/>
|
||||
</connections>
|
||||
</textField>
|
||||
<button opaque="NO" contentMode="scaleToFill" ambiguous="YES" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dTg-is-ALT" userLabel="navBtn">
|
||||
<rect key="frame" x="728" y="26" width="30" height="30"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="30" id="bs7-ZR-9af"/>
|
||||
</constraints>
|
||||
<state key="normal" title="Go">
|
||||
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="navBtnClicked:" destination="qCV-AS-rCm" eventType="touchUpInside" id="7JJ-EB-9zd"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
<constraints>
|
||||
<constraint firstItem="Fpx-YW-dI6" firstAttribute="leading" secondItem="Thv-qS-DhF" secondAttribute="leading" id="CvG-PH-yL2"/>
|
||||
<constraint firstItem="Kws-yb-sYg" firstAttribute="leading" secondItem="Thv-qS-DhF" secondAttribute="leading" constant="11" id="UA1-ca-CCH"/>
|
||||
<constraint firstAttribute="trailing" secondItem="dTg-is-ALT" secondAttribute="trailing" constant="10" id="XFA-Zl-x8e"/>
|
||||
<constraint firstItem="Fpx-YW-dI6" firstAttribute="top" secondItem="dTg-is-ALT" secondAttribute="bottom" constant="8" id="Ym4-0D-Zxk"/>
|
||||
<constraint firstAttribute="bottom" secondItem="Fpx-YW-dI6" secondAttribute="bottom" id="bD7-wY-4P1"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Fpx-YW-dI6" secondAttribute="trailing" id="ull-XD-N0p"/>
|
||||
<constraint firstItem="dTg-is-ALT" firstAttribute="leading" secondItem="Kws-yb-sYg" secondAttribute="trailing" constant="8" id="zZM-rc-NQc"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<connections>
|
||||
<outlet property="mainWebView" destination="Fpx-YW-dI6" id="PAt-NE-eXC"/>
|
||||
<outlet property="urlField" destination="Kws-yb-sYg" id="G6v-4L-APc"/>
|
||||
</connections>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="nwG-iE-fZn" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="1" y="-148"/>
|
||||
</scene>
|
||||
</scenes>
|
||||
<simulatedMetricsContainer key="defaultSimulatedMetrics">
|
||||
<simulatedStatusBarMetrics key="statusBar" statusBarStyle="lightContent"/>
|
||||
<simulatedOrientationMetrics key="orientation"/>
|
||||
<simulatedScreenMetrics key="destination"/>
|
||||
</simulatedMetricsContainer>
|
||||
</document>
|
||||
@@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="4514" systemVersion="12F45" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="2">
|
||||
<dependencies>
|
||||
<deployment defaultVersion="1792" identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3747"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--View Controller-->
|
||||
<scene sceneID="5">
|
||||
<objects>
|
||||
<viewController id="2" customClass="ViewController" sceneMemberID="viewController">
|
||||
<layoutGuides>
|
||||
<viewControllerLayoutGuide type="top" id="ziN-bi-Hmk"/>
|
||||
<viewControllerLayoutGuide type="bottom" id="Yvd-56-AS5"/>
|
||||
</layoutGuides>
|
||||
<view key="view" contentMode="scaleToFill" id="3">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<subviews>
|
||||
<webView contentMode="scaleToFill" ambiguous="YES" misplaced="YES" scalesPageToFit="YES" translatesAutoresizingMaskIntoConstraints="NO" id="j6V-02-y3c" userLabel="mainWebView">
|
||||
<rect key="frame" x="0.0" y="52" width="320" height="516"/>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</webView>
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" ambiguous="YES" misplaced="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Enter URL" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="5jG-hg-xoz" userLabel="urlField">
|
||||
<rect key="frame" x="6" y="19" width="268" height="30"/>
|
||||
<accessibility key="accessibilityConfiguration" label="Enter URL"/>
|
||||
<nil key="textColor"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="12"/>
|
||||
<textInputTraits key="textInputTraits" autocorrectionType="no" keyboardType="URL" keyboardAppearance="light" returnKeyType="go"/>
|
||||
<connections>
|
||||
<action selector="urlEditBegin:" destination="2" eventType="editingDidBegin" id="dCi-yj-FXo"/>
|
||||
</connections>
|
||||
</textField>
|
||||
<button opaque="NO" contentMode="scaleToFill" ambiguous="YES" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="MWy-27-3UL" userLabel="navBtn">
|
||||
<rect key="frame" x="282" y="19" width="30" height="33"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="39" id="1cf-j3-mlo"/>
|
||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="30" id="vtn-Uz-5da"/>
|
||||
</constraints>
|
||||
<state key="normal" title="Go">
|
||||
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="navBtnClicked:" destination="2" eventType="touchUpInside" id="Rsc-0w-ITd"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
<constraints>
|
||||
<constraint firstItem="5jG-hg-xoz" firstAttribute="leading" secondItem="3" secondAttribute="leading" constant="6" id="2Ks-XM-D2v"/>
|
||||
<constraint firstAttribute="trailing" secondItem="MWy-27-3UL" secondAttribute="trailing" constant="8" id="Bh9-6N-JJN"/>
|
||||
<constraint firstItem="MWy-27-3UL" firstAttribute="leading" secondItem="5jG-hg-xoz" secondAttribute="trailing" constant="8" id="G3O-zu-CNw"/>
|
||||
<constraint firstAttribute="bottom" secondItem="j6V-02-y3c" secondAttribute="bottom" id="S24-Vd-TWc"/>
|
||||
<constraint firstItem="j6V-02-y3c" firstAttribute="leading" secondItem="3" secondAttribute="leading" id="YBh-Kb-lZg"/>
|
||||
<constraint firstAttribute="trailing" secondItem="j6V-02-y3c" secondAttribute="trailing" id="cd8-d2-3uT"/>
|
||||
<constraint firstItem="j6V-02-y3c" firstAttribute="top" secondItem="5jG-hg-xoz" secondAttribute="bottom" constant="3" id="yPl-Y8-0pO"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<connections>
|
||||
<outlet property="mainWebView" destination="j6V-02-y3c" id="E6z-uM-BZ9"/>
|
||||
<outlet property="urlField" destination="5jG-hg-xoz" id="xp2-AC-Iq9"/>
|
||||
</connections>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="4" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
</scene>
|
||||
</scenes>
|
||||
<simulatedMetricsContainer key="defaultSimulatedMetrics">
|
||||
<simulatedStatusBarMetrics key="statusBar"/>
|
||||
<simulatedOrientationMetrics key="orientation"/>
|
||||
<simulatedScreenMetrics key="destination" type="retina4"/>
|
||||
</simulatedMetricsContainer>
|
||||
</document>
|
||||
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// main.m
|
||||
// WebViewApp
|
||||
//
|
||||
// Created by Jonathan Lipps on 2/5/13.
|
||||
// Copyright (c) 2013 Appium Committers. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
#import "AppDelegate.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
@autoreleasepool {
|
||||
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user