Skip to content
This repository was archived by the owner on Mar 23, 2020. It is now read-only.

Commit 11e4f99

Browse files
author
Sathish Gogineni
committed
Merge remote-tracking branch 'upstream/master'
Conflicts: sample-code/examples/ruby/cucumber_ios/features/support/appium.txt
2 parents 1e14859 + 1cb1ee5 commit 11e4f99

File tree

204 files changed

+2233
-1089
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+2233
-1089
lines changed

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,27 @@ build/
3434
.rvmrc
3535

3636
*.xcuserdatad
37+
38+
# Eclipse
39+
.classpath
40+
.project
41+
.settings/
42+
43+
# Intellij
44+
.idea/
45+
*.iml
46+
*.iws
47+
48+
# Mac
49+
.DS_Store
50+
51+
# Maven
52+
log/
53+
target/
54+
55+
# npm
56+
node_modules
57+
58+
# Python
59+
__pycache__
60+
*.pyc

package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "appium-sample-code",
3+
"version": "1.0.0",
4+
"description": "Code examples for Appium",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/appium/sample-code.git"
12+
},
13+
"keywords": [
14+
"appium",
15+
"testcode"
16+
],
17+
"author": "appium",
18+
"license": "apache-2.0",
19+
"bugs": {
20+
"url": "https://github.com/appium/sample-code/issues"
21+
},
22+
"homepage": "https://github.com/appium/sample-code"
23+
}
2.94 MB
Binary file not shown.

sample-code/apps/TestApp/Test App 2/MyViewControllerViewController.m

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ - (void)viewDidLoad
5757
secondArg.returnKeyType = UIReturnKeyDone;
5858
firstArg.delegate = self;
5959
secondArg.delegate = self;
60-
[NSTimer scheduledTimerWithTimeInterval:0.1
60+
[NSTimer scheduledTimerWithTimeInterval:0.2
6161
target:self
6262
selector:@selector(logLocationAuthFromTimer:)
6363
userInfo:nil
@@ -69,9 +69,20 @@ - (void)viewDidLoad
6969
[answerLabel setAccessibilityIdentifier:@"Answer"];
7070
[locationStatus setAccessibilityIdentifier:@"locationStatus"];
7171

72+
UISwipeGestureRecognizer * swipe =[[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(swipeUp:)];
73+
swipe.direction = UISwipeGestureRecognizerDirectionUp;
74+
[self.view addGestureRecognizer:swipe];
75+
[swipe release];
76+
7277
computeSumButton.titleLabel.text = NSLocalizedString(@"main.button.computeSum", @"Compute Sum button");
7378
}
7479

80+
-(void)swipeUp:(UISwipeGestureRecognizer*)gestureRecognizer
81+
{
82+
[secondArg resignFirstResponder];
83+
}
84+
85+
7586
- (void)logLocationAuthFromTimer:(NSTimer *)timer
7687
{
7788
[self logLocationAuth];
@@ -80,7 +91,7 @@ - (void)logLocationAuthFromTimer:(NSTimer *)timer
8091
- (void)logLocationAuth
8192
{
8293
CLAuthorizationStatus status = [CLLocationManager authorizationStatus];
83-
if (status == kCLAuthorizationStatusAuthorized) {
94+
if (status != kCLAuthorizationStatusRestricted && status != kCLAuthorizationStatusDenied) {
8495
locationStatus.on = YES;
8596
} else {
8697
locationStatus.on = NO;
@@ -170,7 +181,7 @@ - (IBAction)accessContactsAlert:(id)sender {
170181

171182
- (IBAction)accessLocationAlert:(id)sender {
172183
CLLocationManager *locationManager = [[CLLocationManager alloc] init];
173-
184+
174185
[locationManager startUpdatingLocation];
175186
[locationManager stopUpdatingLocation];
176187
}

sample-code/apps/TestApp/Test App 2/en.lproj/MyViewControllerViewController.xib

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="5056" systemVersion="12F45" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6250" systemVersion="13F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none">
33
<dependencies>
4-
<deployment defaultVersion="1552" identifier="iOS"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3733"/>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6244"/>
65
</dependencies>
76
<objects>
87
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="MyViewControllerViewController">
@@ -114,19 +113,6 @@
114113
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
115114
<nil key="highlightedColor"/>
116115
</label>
117-
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="A test label" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="c5c-gA-adh">
118-
<rect key="frame" x="82" y="439" width="86" height="21"/>
119-
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
120-
<accessibility key="accessibilityConfiguration" label="">
121-
<bool key="isElement" value="NO"/>
122-
</accessibility>
123-
<fontDescription key="fontDescription" type="system" pointSize="17"/>
124-
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
125-
<nil key="highlightedColor"/>
126-
<userDefinedRuntimeAttributes>
127-
<userDefinedRuntimeAttribute type="string" keyPath="accessibilityIdentifier" value="Access'ibility"/>
128-
</userDefinedRuntimeAttributes>
129-
</label>
130116
<switch opaque="NO" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" enabled="NO" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" id="bMw-Gn-PAX">
131117
<rect key="frame" x="170" y="378" width="51" height="31"/>
132118
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
@@ -163,9 +149,27 @@
163149
<action selector="crashApp:" destination="-1" eventType="touchUpInside" id="YRC-14-Xer"/>
164150
</connections>
165151
</button>
152+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="test" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="c5c-gA-adh">
153+
<rect key="frame" x="234" y="291" width="29" height="21"/>
154+
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
155+
<accessibility key="accessibilityConfiguration" label="">
156+
<bool key="isElement" value="NO"/>
157+
</accessibility>
158+
<fontDescription key="fontDescription" type="system" pointSize="17"/>
159+
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
160+
<nil key="highlightedColor"/>
161+
<userDefinedRuntimeAttributes>
162+
<userDefinedRuntimeAttribute type="string" keyPath="accessibilityIdentifier" value="Access'ibility"/>
163+
</userDefinedRuntimeAttributes>
164+
</label>
166165
</subviews>
167166
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
168-
<simulatedStatusBarMetrics key="simulatedStatusBarMetrics"/>
167+
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
169168
</view>
170169
</objects>
170+
<simulatedMetricsContainer key="defaultSimulatedMetrics">
171+
<simulatedStatusBarMetrics key="statusBar"/>
172+
<simulatedOrientationMetrics key="orientation"/>
173+
<simulatedScreenMetrics key="destination" type="retina4"/>
174+
</simulatedMetricsContainer>
171175
</document>

sample-code/apps/TestApp/TestApp.xcodeproj/xcuserdata/danc.xcuserdatad/xcschemes/TestApp.xcscheme

Lines changed: 0 additions & 86 deletions
This file was deleted.

sample-code/apps/TestApp/TestApp.xcodeproj/xcuserdata/danc.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 0 additions & 22 deletions
This file was deleted.
6 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)