Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 22, 2021. It is now read-only.

Commit 120e88f

Browse files
committed
Add calabash configuration.
1 parent 8674371 commit 120e88f

32 files changed

+790
-5
lines changed

‎Contacts.xcodeproj/project.pbxproj

Lines changed: 137 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
145E8E5A1BFC022100307881 /* ContactCell.m in Sources */ = {isa = PBXBuildFile; fileRef = CDE68D081BF0DC6F00A388DF /* ContactCell.m */; };
11+
145E8E5B1BFC022100307881 /* UIColor+Utils.m in Sources */ = {isa = PBXBuildFile; fileRef = CDE68D031BF0D64100A388DF /* UIColor+Utils.m */; };
12+
145E8E5C1BFC022100307881 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = CDE68CDC1BF0CF3E00A388DF /* AppDelegate.m */; };
13+
145E8E5D1BFC022100307881 /* ContactsListViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CDE68CDF1BF0CF3E00A388DF /* ContactsListViewController.m */; };
14+
145E8E5E1BFC022100307881 /* EditContactDetailsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CDAF42051BF1EB09008D6FC4 /* EditContactDetailsViewController.m */; };
15+
145E8E5F1BFC022100307881 /* Contact.m in Sources */ = {isa = PBXBuildFile; fileRef = CDE68D0D1BF0E1A200A388DF /* Contact.m */; };
16+
145E8E601BFC022100307881 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = CDE68CD91BF0CF3E00A388DF /* main.m */; };
17+
145E8E611BFC022100307881 /* ContactDetailsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CDE68CE21BF0CF3E00A388DF /* ContactDetailsViewController.m */; };
18+
145E8E641BFC022100307881 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CDE68CE41BF0CF3E00A388DF /* Main.storyboard */; };
19+
145E8E651BFC022100307881 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = CDE68CE91BF0CF3E00A388DF /* LaunchScreen.xib */; };
20+
145E8E661BFC022100307881 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CDE68CE71BF0CF3E00A388DF /* Images.xcassets */; };
21+
145E8E6D1BFC03FF00307881 /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 145E8E6C1BFC03FF00307881 /* CFNetwork.framework */; };
22+
145E8E701BFC047100307881 /* calabash.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 145E8E6E1BFC046500307881 /* calabash.framework */; };
1023
CDAF42061BF1EB09008D6FC4 /* EditContactDetailsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CDAF42051BF1EB09008D6FC4 /* EditContactDetailsViewController.m */; };
1124
CDE68CDA1BF0CF3E00A388DF /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = CDE68CD91BF0CF3E00A388DF /* main.m */; };
1225
CDE68CDD1BF0CF3E00A388DF /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = CDE68CDC1BF0CF3E00A388DF /* AppDelegate.m */; };
@@ -32,9 +45,12 @@
3245
/* End PBXContainerItemProxy section */
3346

3447
/* Begin PBXFileReference section */
48+
145E8E6A1BFC022100307881 /* Contacts-cal.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Contacts-cal.app"; sourceTree = BUILT_PRODUCTS_DIR; };
49+
145E8E6C1BFC03FF00307881 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; };
50+
145E8E6E1BFC046500307881 /* calabash.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = calabash.framework; path = ../calabash/calabash.framework; sourceTree = "<group>"; };
3551
CDAF42041BF1EB09008D6FC4 /* EditContactDetailsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EditContactDetailsViewController.h; sourceTree = "<group>"; };
3652
CDAF42051BF1EB09008D6FC4 /* EditContactDetailsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EditContactDetailsViewController.m; sourceTree = "<group>"; };
37-
CDE68CD41BF0CF3E00A388DF /* Contacts.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Contacts.app; sourceTree = BUILT_PRODUCTS_DIR; };
53+
CDE68CD41BF0CF3E00A388DF /* Contacts-test.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Contacts-test.app"; sourceTree = BUILT_PRODUCTS_DIR; };
3854
CDE68CD81BF0CF3E00A388DF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3955
CDE68CD91BF0CF3E00A388DF /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
4056
CDE68CDB1BF0CF3E00A388DF /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
@@ -58,6 +74,15 @@
5874
/* End PBXFileReference section */
5975

6076
/* Begin PBXFrameworksBuildPhase section */
77+
145E8E621BFC022100307881 /* Frameworks */ = {
78+
isa = PBXFrameworksBuildPhase;
79+
buildActionMask = 2147483647;
80+
files = (
81+
145E8E6D1BFC03FF00307881 /* CFNetwork.framework in Frameworks */,
82+
145E8E701BFC047100307881 /* calabash.framework in Frameworks */,
83+
);
84+
runOnlyForDeploymentPostprocessing = 0;
85+
};
6186
CDE68CD11BF0CF3E00A388DF /* Frameworks */ = {
6287
isa = PBXFrameworksBuildPhase;
6388
buildActionMask = 2147483647;
@@ -87,8 +112,9 @@
87112
CDE68CD51BF0CF3E00A388DF /* Products */ = {
88113
isa = PBXGroup;
89114
children = (
90-
CDE68CD41BF0CF3E00A388DF /* Contacts.app */,
115+
CDE68CD41BF0CF3E00A388DF /* Contacts-test.app */,
91116
CDE68CF01BF0CF3E00A388DF /* ContactsTests.xctest */,
117+
145E8E6A1BFC022100307881 /* Contacts-cal.app */,
92118
);
93119
name = Products;
94120
sourceTree = "<group>";
@@ -109,6 +135,8 @@
109135
CDE68CD71BF0CF3E00A388DF /* Supporting Files */ = {
110136
isa = PBXGroup;
111137
children = (
138+
145E8E6E1BFC046500307881 /* calabash.framework */,
139+
145E8E6C1BFC03FF00307881 /* CFNetwork.framework */,
112140
CDE68CD81BF0CF3E00A388DF /* Info.plist */,
113141
CDE68CD91BF0CF3E00A388DF /* main.m */,
114142
);
@@ -187,6 +215,23 @@
187215
/* End PBXGroup section */
188216

189217
/* Begin PBXNativeTarget section */
218+
145E8E581BFC022100307881 /* Contacts-cal */ = {
219+
isa = PBXNativeTarget;
220+
buildConfigurationList = 145E8E671BFC022100307881 /* Build configuration list for PBXNativeTarget "Contacts-cal" */;
221+
buildPhases = (
222+
145E8E591BFC022100307881 /* Sources */,
223+
145E8E621BFC022100307881 /* Frameworks */,
224+
145E8E631BFC022100307881 /* Resources */,
225+
);
226+
buildRules = (
227+
);
228+
dependencies = (
229+
);
230+
name = "Contacts-cal";
231+
productName = Contacts;
232+
productReference = 145E8E6A1BFC022100307881 /* Contacts-cal.app */;
233+
productType = "com.apple.product-type.application";
234+
};
190235
CDE68CD31BF0CF3E00A388DF /* Contacts */ = {
191236
isa = PBXNativeTarget;
192237
buildConfigurationList = CDE68CFA1BF0CF3E00A388DF /* Build configuration list for PBXNativeTarget "Contacts" */;
@@ -201,7 +246,7 @@
201246
);
202247
name = Contacts;
203248
productName = Contacts;
204-
productReference = CDE68CD41BF0CF3E00A388DF /* Contacts.app */;
249+
productReference = CDE68CD41BF0CF3E00A388DF /* Contacts-test.app */;
205250
productType = "com.apple.product-type.application";
206251
};
207252
CDE68CEF1BF0CF3E00A388DF /* ContactsTests */ = {
@@ -254,12 +299,23 @@
254299
projectRoot = "";
255300
targets = (
256301
CDE68CD31BF0CF3E00A388DF /* Contacts */,
302+
145E8E581BFC022100307881 /* Contacts-cal */,
257303
CDE68CEF1BF0CF3E00A388DF /* ContactsTests */,
258304
);
259305
};
260306
/* End PBXProject section */
261307

262308
/* Begin PBXResourcesBuildPhase section */
309+
145E8E631BFC022100307881 /* Resources */ = {
310+
isa = PBXResourcesBuildPhase;
311+
buildActionMask = 2147483647;
312+
files = (
313+
145E8E641BFC022100307881 /* Main.storyboard in Resources */,
314+
145E8E651BFC022100307881 /* LaunchScreen.xib in Resources */,
315+
145E8E661BFC022100307881 /* Images.xcassets in Resources */,
316+
);
317+
runOnlyForDeploymentPostprocessing = 0;
318+
};
263319
CDE68CD21BF0CF3E00A388DF /* Resources */ = {
264320
isa = PBXResourcesBuildPhase;
265321
buildActionMask = 2147483647;
@@ -280,6 +336,21 @@
280336
/* End PBXResourcesBuildPhase section */
281337

282338
/* Begin PBXSourcesBuildPhase section */
339+
145E8E591BFC022100307881 /* Sources */ = {
340+
isa = PBXSourcesBuildPhase;
341+
buildActionMask = 2147483647;
342+
files = (
343+
145E8E5A1BFC022100307881 /* ContactCell.m in Sources */,
344+
145E8E5B1BFC022100307881 /* UIColor+Utils.m in Sources */,
345+
145E8E5C1BFC022100307881 /* AppDelegate.m in Sources */,
346+
145E8E5D1BFC022100307881 /* ContactsListViewController.m in Sources */,
347+
145E8E5E1BFC022100307881 /* EditContactDetailsViewController.m in Sources */,
348+
145E8E5F1BFC022100307881 /* Contact.m in Sources */,
349+
145E8E601BFC022100307881 /* main.m in Sources */,
350+
145E8E611BFC022100307881 /* ContactDetailsViewController.m in Sources */,
351+
);
352+
runOnlyForDeploymentPostprocessing = 0;
353+
};
283354
CDE68CD01BF0CF3E00A388DF /* Sources */ = {
284355
isa = PBXSourcesBuildPhase;
285356
buildActionMask = 2147483647;
@@ -333,6 +404,50 @@
333404
/* End PBXVariantGroup section */
334405

335406
/* Begin XCBuildConfiguration section */
407+
145E8E681BFC022100307881 /* Debug */ = {
408+
isa = XCBuildConfiguration;
409+
buildSettings = {
410+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
411+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
412+
FRAMEWORK_SEARCH_PATHS = (
413+
"$(inherited)",
414+
"$(PROJECT_DIR)/calabash",
415+
);
416+
INFOPLIST_FILE = Contacts/Info.plist;
417+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
418+
OTHER_LDFLAGS = (
419+
"$(inherited)",
420+
"-ObjC",
421+
"-force_load",
422+
"\"$(SOURCE_ROOT)/calabash/calabash.framework/calabash\"",
423+
);
424+
PRODUCT_BUNDLE_IDENTIFIER = "com.alexmx.$(PRODUCT_NAME:rfc1034identifier)";
425+
PRODUCT_NAME = "$(TARGET_NAME)";
426+
};
427+
name = Debug;
428+
};
429+
145E8E691BFC022100307881 /* Release */ = {
430+
isa = XCBuildConfiguration;
431+
buildSettings = {
432+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
433+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
434+
FRAMEWORK_SEARCH_PATHS = (
435+
"$(inherited)",
436+
"$(PROJECT_DIR)/calabash",
437+
);
438+
INFOPLIST_FILE = Contacts/Info.plist;
439+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
440+
OTHER_LDFLAGS = (
441+
"$(inherited)",
442+
"-ObjC",
443+
"-force_load",
444+
"\"$(SOURCE_ROOT)/calabash/calabash.framework/calabash\"",
445+
);
446+
PRODUCT_BUNDLE_IDENTIFIER = "com.alexmx.$(PRODUCT_NAME:rfc1034identifier)";
447+
PRODUCT_NAME = "$(TARGET_NAME)";
448+
};
449+
name = Release;
450+
};
336451
CDE68CF81BF0CF3E00A388DF /* Debug */ = {
337452
isa = XCBuildConfiguration;
338453
buildSettings = {
@@ -419,10 +534,14 @@
419534
buildSettings = {
420535
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
421536
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
537+
FRAMEWORK_SEARCH_PATHS = (
538+
"$(inherited)",
539+
"$(PROJECT_DIR)/calabash",
540+
);
422541
INFOPLIST_FILE = Contacts/Info.plist;
423542
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
424543
PRODUCT_BUNDLE_IDENTIFIER = "com.alexmx.$(PRODUCT_NAME:rfc1034identifier)";
425-
PRODUCT_NAME = "$(TARGET_NAME)";
544+
PRODUCT_NAME = "$(TARGET_NAME)-test";
426545
};
427546
name = Debug;
428547
};
@@ -431,10 +550,14 @@
431550
buildSettings = {
432551
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
433552
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
553+
FRAMEWORK_SEARCH_PATHS = (
554+
"$(inherited)",
555+
"$(PROJECT_DIR)/calabash",
556+
);
434557
INFOPLIST_FILE = Contacts/Info.plist;
435558
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
436559
PRODUCT_BUNDLE_IDENTIFIER = "com.alexmx.$(PRODUCT_NAME:rfc1034identifier)";
437-
PRODUCT_NAME = "$(TARGET_NAME)";
560+
PRODUCT_NAME = "$(TARGET_NAME)-test";
438561
};
439562
name = Release;
440563
};
@@ -471,6 +594,15 @@
471594
/* End XCBuildConfiguration section */
472595

473596
/* Begin XCConfigurationList section */
597+
145E8E671BFC022100307881 /* Build configuration list for PBXNativeTarget "Contacts-cal" */ = {
598+
isa = XCConfigurationList;
599+
buildConfigurations = (
600+
145E8E681BFC022100307881 /* Debug */,
601+
145E8E691BFC022100307881 /* Release */,
602+
);
603+
defaultConfigurationIsVisible = 0;
604+
defaultConfigurationName = Release;
605+
};
474606
CDE68CCF1BF0CF3E00A388DF /* Build configuration list for PBXProject "Contacts" */ = {
475607
isa = XCConfigurationList;
476608
buildConfigurations = (

‎Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source "https://www.rubygems.org"
2+
3+
gem 'calabash-cucumber', '>= 0.16.4', '< 1.0'
4+
gem 'run_loop', '>= 1.5.5', '< 2.0'

‎Gemfile.lock

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
GEM
2+
remote: https://www.rubygems.org/
3+
specs:
4+
CFPropertyList (2.3.2)
5+
awesome_print (1.6.1)
6+
builder (3.2.2)
7+
calabash-common (0.0.2)
8+
calabash-cucumber (0.16.4)
9+
CFPropertyList
10+
awesome_print
11+
bundler (~> 1.3)
12+
calabash-common (~> 0.0.2)
13+
cucumber (~> 1.3.17)
14+
edn (>= 1.0.6, < 2.0)
15+
geocoder (>= 1.1.8, < 2.0)
16+
httpclient (>= 2.3.2, < 3.0)
17+
json
18+
run_loop (>= 1.5.5, < 2.0)
19+
sim_launcher (~> 0.4.13)
20+
slowhandcuke (~> 0.0.3)
21+
command_runner_ng (0.1.0)
22+
cucumber (1.3.20)
23+
builder (>= 2.1.2)
24+
diff-lcs (>= 1.1.3)
25+
gherkin (~> 2.12)
26+
multi_json (>= 1.7.5, < 2.0)
27+
multi_test (>= 0.1.2)
28+
diff-lcs (1.2.5)
29+
edn (1.1.0)
30+
geocoder (1.2.12)
31+
gherkin (2.12.2)
32+
multi_json (~> 1.3)
33+
httpclient (2.7.0.1)
34+
json (1.8.3)
35+
multi_json (1.11.2)
36+
multi_test (0.1.2)
37+
rack (1.6.4)
38+
rack-protection (1.5.3)
39+
rack
40+
retriable (2.0.2)
41+
run_loop (1.5.6)
42+
CFPropertyList (~> 2.2)
43+
awesome_print (~> 1.2)
44+
command_runner_ng (>= 0.0.2)
45+
json (~> 1.8)
46+
retriable (>= 1.3.3.1, < 2.1)
47+
thor (>= 0.18.1, < 1.0)
48+
sim_launcher (0.4.13)
49+
sinatra
50+
sinatra (1.4.6)
51+
rack (~> 1.4)
52+
rack-protection (~> 1.4)
53+
tilt (>= 1.3, < 3)
54+
slowhandcuke (0.0.3)
55+
cucumber
56+
thor (0.19.1)
57+
tilt (2.0.1)
58+
59+
PLATFORMS
60+
ruby
61+
62+
DEPENDENCIES
63+
calabash-cucumber (>= 0.16.4, < 1.0)
64+
run_loop (>= 1.5.5, < 2.0)
65+
66+
BUNDLED WITH
67+
1.10.6

‎appium/appium.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[caps]
2+
platformName = "ios"
3+
app = "../Build/Products/Debug-iphonesimulator/Contacts-test.app"
4+
platformVersion = "9.1"
5+
deviceName = "iPhone 5s"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Given(/^I see the contact list screen$/) do
2+
pending # Write code here that turns the phrase above into concrete actions
3+
end
4+
5+
When(/^I press on "([^"]*)" button$/) do |arg1|
6+
pending # Write code here that turns the phrase above into concrete actions
7+
end
8+
9+
Then(/^The screen "([^"]*)" appears$/) do |arg1|
10+
pending # Write code here that turns the phrase above into concrete actions
11+
end
12+
13+
Then(/^I enter "([^"]*)" in the "([^"]*)" textfield$/) do |arg1, arg2|
14+
pending # Write code here that turns the phrase above into concrete actions
15+
end
16+
17+
Then(/^I see the "([^"]*)" contact in the contact list$/) do |arg1|
18+
pending # Write code here that turns the phrase above into concrete actions
19+
end
20+
21+
Given(/^I see at least one contact in the list$/) do
22+
pending # Write code here that turns the phrase above into concrete actions
23+
end
24+
25+
When(/^I press on first contact$/) do
26+
pending # Write code here that turns the phrase above into concrete actions
27+
end
28+
29+
Then(/^I see the "([^"]*)" contact in the contact details$/) do |arg1|
30+
pending # Write code here that turns the phrase above into concrete actions
31+
end

‎calabash/calabash.framework/Headers

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/Headers

‎calabash/calabash.framework/Resources

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/Resources
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
A
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Created by Karl Krukow on 11/08/11.
2+
// Copyright 2011 LessPainful. All rights reserved.
3+
4+
#import <Foundation/Foundation.h>
5+
6+
@class LPHTTPServer;
7+
8+
@interface CalabashServer : NSObject {
9+
LPHTTPServer *_httpServer;
10+
}
11+
12+
+ (void) start;
13+
14+
@end

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /