Skip to content

Commit a081480

Browse files
committed
Added sample app
1 parent 1f92322 commit a081480

25 files changed

+811
-0
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#CocoaPods
2+
Pods/
3+
Podfile.lock
4+
5+
#Xcode
6+
Build/
7+
xcuserdata/
8+
*.xcworkspace
9+
10+
#OSX
11+
.DS_Store

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ Add the Intercom pod into your Podfile and run a `pod install` or `pod update`.
2121

2222
If you get errors, check out our [Troubleshooting section here](http://docs.intercom.io/Install-on-your-mobile-product/installing-intercom-for-ios#troubleshooting-tips).
2323

24+
##Sample app
25+
26+
To use the sample app:
27+
28+
1. Go to the `Sample` directory and run `pod install`.
29+
2. Set your iOS API key and App ID at the top of `ITCAppDelegate.m`, here:
30+
```
31+
#define INTERCOM_APP_ID @"YOUR_APP_ID"
32+
#define INTERCOM_API_KEY @"YOUR_API_KEY"
33+
```
34+
3. Build and run.
2435

2536
##How should I use Intercom for iOS in my app?
2637
Broadly speaking, there are three types of apps that Intercom for iOS will work in.

Sample/Podfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://github.com/CocoaPods/Specs.git'
2+
3+
pod 'Intercom'
Lines changed: 357 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,357 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
1A0F1E0E1B034B7100DA78D2 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 1A0F1E0D1B034B7100DA78D2 /* main.m */; };
11+
1A0F1E111B034B7100DA78D2 /* ITCAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1A0F1E101B034B7100DA78D2 /* ITCAppDelegate.m */; };
12+
1A0F1E141B034B7100DA78D2 /* ITCViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1A0F1E131B034B7100DA78D2 /* ITCViewController.m */; };
13+
1A0F1E171B034B7100DA78D2 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1A0F1E151B034B7100DA78D2 /* Main.storyboard */; };
14+
1A0F1E191B034B7100DA78D2 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1A0F1E181B034B7100DA78D2 /* Images.xcassets */; };
15+
41B7C7F5B6A2B7BBFB150C42 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 98C43708C680E2477FAD146C /* libPods.a */; };
16+
/* End PBXBuildFile section */
17+
18+
/* Begin PBXFileReference section */
19+
1A0F1E081B034B7100DA78D2 /* Sample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Sample.app; sourceTree = BUILT_PRODUCTS_DIR; };
20+
1A0F1E0C1B034B7100DA78D2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
21+
1A0F1E0D1B034B7100DA78D2 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
22+
1A0F1E0F1B034B7100DA78D2 /* ITCAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ITCAppDelegate.h; sourceTree = "<group>"; };
23+
1A0F1E101B034B7100DA78D2 /* ITCAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ITCAppDelegate.m; sourceTree = "<group>"; };
24+
1A0F1E121B034B7100DA78D2 /* ITCViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ITCViewController.h; sourceTree = "<group>"; };
25+
1A0F1E131B034B7100DA78D2 /* ITCViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ITCViewController.m; sourceTree = "<group>"; };
26+
1A0F1E161B034B7100DA78D2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
27+
1A0F1E181B034B7100DA78D2 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
28+
85430A3E591C9A403636B060 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
29+
8C6C505514D1683341C821E8 /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; };
30+
98C43708C680E2477FAD146C /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
31+
/* End PBXFileReference section */
32+
33+
/* Begin PBXFrameworksBuildPhase section */
34+
1A0F1E051B034B7100DA78D2 /* Frameworks */ = {
35+
isa = PBXFrameworksBuildPhase;
36+
buildActionMask = 2147483647;
37+
files = (
38+
41B7C7F5B6A2B7BBFB150C42 /* libPods.a in Frameworks */,
39+
);
40+
runOnlyForDeploymentPostprocessing = 0;
41+
};
42+
/* End PBXFrameworksBuildPhase section */
43+
44+
/* Begin PBXGroup section */
45+
1A0F1DFF1B034B7100DA78D2 = {
46+
isa = PBXGroup;
47+
children = (
48+
1A0F1E0A1B034B7100DA78D2 /* Sample */,
49+
1A0F1E091B034B7100DA78D2 /* Products */,
50+
99A634D8FD9561D82582548A /* Pods */,
51+
D34511F59F27AF5F3DE9174F /* Frameworks */,
52+
);
53+
sourceTree = "<group>";
54+
};
55+
1A0F1E091B034B7100DA78D2 /* Products */ = {
56+
isa = PBXGroup;
57+
children = (
58+
1A0F1E081B034B7100DA78D2 /* Sample.app */,
59+
);
60+
name = Products;
61+
sourceTree = "<group>";
62+
};
63+
1A0F1E0A1B034B7100DA78D2 /* Sample */ = {
64+
isa = PBXGroup;
65+
children = (
66+
1A0F1E0F1B034B7100DA78D2 /* ITCAppDelegate.h */,
67+
1A0F1E101B034B7100DA78D2 /* ITCAppDelegate.m */,
68+
1A0F1E121B034B7100DA78D2 /* ITCViewController.h */,
69+
1A0F1E131B034B7100DA78D2 /* ITCViewController.m */,
70+
1A0F1E151B034B7100DA78D2 /* Main.storyboard */,
71+
1A0F1E181B034B7100DA78D2 /* Images.xcassets */,
72+
1A0F1E0B1B034B7100DA78D2 /* Supporting Files */,
73+
);
74+
path = Sample;
75+
sourceTree = "<group>";
76+
};
77+
1A0F1E0B1B034B7100DA78D2 /* Supporting Files */ = {
78+
isa = PBXGroup;
79+
children = (
80+
1A0F1E0C1B034B7100DA78D2 /* Info.plist */,
81+
1A0F1E0D1B034B7100DA78D2 /* main.m */,
82+
);
83+
name = "Supporting Files";
84+
sourceTree = "<group>";
85+
};
86+
99A634D8FD9561D82582548A /* Pods */ = {
87+
isa = PBXGroup;
88+
children = (
89+
85430A3E591C9A403636B060 /* Pods.debug.xcconfig */,
90+
8C6C505514D1683341C821E8 /* Pods.release.xcconfig */,
91+
);
92+
name = Pods;
93+
sourceTree = "<group>";
94+
};
95+
D34511F59F27AF5F3DE9174F /* Frameworks */ = {
96+
isa = PBXGroup;
97+
children = (
98+
98C43708C680E2477FAD146C /* libPods.a */,
99+
);
100+
name = Frameworks;
101+
sourceTree = "<group>";
102+
};
103+
/* End PBXGroup section */
104+
105+
/* Begin PBXNativeTarget section */
106+
1A0F1E071B034B7100DA78D2 /* Sample */ = {
107+
isa = PBXNativeTarget;
108+
buildConfigurationList = 1A0F1E2B1B034B7100DA78D2 /* Build configuration list for PBXNativeTarget "Sample" */;
109+
buildPhases = (
110+
9EFCFC36D71F6292341B4961 /* Check Pods Manifest.lock */,
111+
1A0F1E041B034B7100DA78D2 /* Sources */,
112+
1A0F1E051B034B7100DA78D2 /* Frameworks */,
113+
1A0F1E061B034B7100DA78D2 /* Resources */,
114+
C013679E94F860BABB90640E /* Copy Pods Resources */,
115+
);
116+
buildRules = (
117+
);
118+
dependencies = (
119+
);
120+
name = Sample;
121+
productName = Sample;
122+
productReference = 1A0F1E081B034B7100DA78D2 /* Sample.app */;
123+
productType = "com.apple.product-type.application";
124+
};
125+
/* End PBXNativeTarget section */
126+
127+
/* Begin PBXProject section */
128+
1A0F1E001B034B7100DA78D2 /* Project object */ = {
129+
isa = PBXProject;
130+
attributes = {
131+
LastUpgradeCheck = 0630;
132+
ORGANIZATIONNAME = Intercom;
133+
TargetAttributes = {
134+
1A0F1E071B034B7100DA78D2 = {
135+
CreatedOnToolsVersion = 6.3.1;
136+
};
137+
};
138+
};
139+
buildConfigurationList = 1A0F1E031B034B7100DA78D2 /* Build configuration list for PBXProject "Sample" */;
140+
compatibilityVersion = "Xcode 3.2";
141+
developmentRegion = English;
142+
hasScannedForEncodings = 0;
143+
knownRegions = (
144+
en,
145+
Base,
146+
);
147+
mainGroup = 1A0F1DFF1B034B7100DA78D2;
148+
productRefGroup = 1A0F1E091B034B7100DA78D2 /* Products */;
149+
projectDirPath = "";
150+
projectRoot = "";
151+
targets = (
152+
1A0F1E071B034B7100DA78D2 /* Sample */,
153+
);
154+
};
155+
/* End PBXProject section */
156+
157+
/* Begin PBXResourcesBuildPhase section */
158+
1A0F1E061B034B7100DA78D2 /* Resources */ = {
159+
isa = PBXResourcesBuildPhase;
160+
buildActionMask = 2147483647;
161+
files = (
162+
1A0F1E171B034B7100DA78D2 /* Main.storyboard in Resources */,
163+
1A0F1E191B034B7100DA78D2 /* Images.xcassets in Resources */,
164+
);
165+
runOnlyForDeploymentPostprocessing = 0;
166+
};
167+
/* End PBXResourcesBuildPhase section */
168+
169+
/* Begin PBXShellScriptBuildPhase section */
170+
9EFCFC36D71F6292341B4961 /* Check Pods Manifest.lock */ = {
171+
isa = PBXShellScriptBuildPhase;
172+
buildActionMask = 2147483647;
173+
files = (
174+
);
175+
inputPaths = (
176+
);
177+
name = "Check Pods Manifest.lock";
178+
outputPaths = (
179+
);
180+
runOnlyForDeploymentPostprocessing = 0;
181+
shellPath = /bin/sh;
182+
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
183+
showEnvVarsInLog = 0;
184+
};
185+
C013679E94F860BABB90640E /* Copy Pods Resources */ = {
186+
isa = PBXShellScriptBuildPhase;
187+
buildActionMask = 2147483647;
188+
files = (
189+
);
190+
inputPaths = (
191+
);
192+
name = "Copy Pods Resources";
193+
outputPaths = (
194+
);
195+
runOnlyForDeploymentPostprocessing = 0;
196+
shellPath = /bin/sh;
197+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
198+
showEnvVarsInLog = 0;
199+
};
200+
/* End PBXShellScriptBuildPhase section */
201+
202+
/* Begin PBXSourcesBuildPhase section */
203+
1A0F1E041B034B7100DA78D2 /* Sources */ = {
204+
isa = PBXSourcesBuildPhase;
205+
buildActionMask = 2147483647;
206+
files = (
207+
1A0F1E141B034B7100DA78D2 /* ITCViewController.m in Sources */,
208+
1A0F1E111B034B7100DA78D2 /* ITCAppDelegate.m in Sources */,
209+
1A0F1E0E1B034B7100DA78D2 /* main.m in Sources */,
210+
);
211+
runOnlyForDeploymentPostprocessing = 0;
212+
};
213+
/* End PBXSourcesBuildPhase section */
214+
215+
/* Begin PBXVariantGroup section */
216+
1A0F1E151B034B7100DA78D2 /* Main.storyboard */ = {
217+
isa = PBXVariantGroup;
218+
children = (
219+
1A0F1E161B034B7100DA78D2 /* Base */,
220+
);
221+
name = Main.storyboard;
222+
sourceTree = "<group>";
223+
};
224+
/* End PBXVariantGroup section */
225+
226+
/* Begin XCBuildConfiguration section */
227+
1A0F1E291B034B7100DA78D2 /* Debug */ = {
228+
isa = XCBuildConfiguration;
229+
buildSettings = {
230+
ALWAYS_SEARCH_USER_PATHS = NO;
231+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
232+
CLANG_CXX_LIBRARY = "libc++";
233+
CLANG_ENABLE_MODULES = YES;
234+
CLANG_ENABLE_OBJC_ARC = YES;
235+
CLANG_WARN_BOOL_CONVERSION = YES;
236+
CLANG_WARN_CONSTANT_CONVERSION = YES;
237+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
238+
CLANG_WARN_EMPTY_BODY = YES;
239+
CLANG_WARN_ENUM_CONVERSION = YES;
240+
CLANG_WARN_INT_CONVERSION = YES;
241+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
242+
CLANG_WARN_UNREACHABLE_CODE = YES;
243+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
244+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
245+
COPY_PHASE_STRIP = NO;
246+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
247+
ENABLE_STRICT_OBJC_MSGSEND = YES;
248+
GCC_C_LANGUAGE_STANDARD = gnu99;
249+
GCC_DYNAMIC_NO_PIC = NO;
250+
GCC_NO_COMMON_BLOCKS = YES;
251+
GCC_OPTIMIZATION_LEVEL = 0;
252+
GCC_PREPROCESSOR_DEFINITIONS = (
253+
"DEBUG=1",
254+
"$(inherited)",
255+
);
256+
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
257+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
258+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
259+
GCC_WARN_UNDECLARED_SELECTOR = YES;
260+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
261+
GCC_WARN_UNUSED_FUNCTION = YES;
262+
GCC_WARN_UNUSED_VARIABLE = YES;
263+
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
264+
MTL_ENABLE_DEBUG_INFO = YES;
265+
ONLY_ACTIVE_ARCH = YES;
266+
SDKROOT = iphoneos;
267+
};
268+
name = Debug;
269+
};
270+
1A0F1E2A1B034B7100DA78D2 /* Release */ = {
271+
isa = XCBuildConfiguration;
272+
buildSettings = {
273+
ALWAYS_SEARCH_USER_PATHS = NO;
274+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
275+
CLANG_CXX_LIBRARY = "libc++";
276+
CLANG_ENABLE_MODULES = YES;
277+
CLANG_ENABLE_OBJC_ARC = YES;
278+
CLANG_WARN_BOOL_CONVERSION = YES;
279+
CLANG_WARN_CONSTANT_CONVERSION = YES;
280+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
281+
CLANG_WARN_EMPTY_BODY = YES;
282+
CLANG_WARN_ENUM_CONVERSION = YES;
283+
CLANG_WARN_INT_CONVERSION = YES;
284+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
285+
CLANG_WARN_UNREACHABLE_CODE = YES;
286+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
287+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
288+
COPY_PHASE_STRIP = NO;
289+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
290+
ENABLE_NS_ASSERTIONS = NO;
291+
ENABLE_STRICT_OBJC_MSGSEND = YES;
292+
GCC_C_LANGUAGE_STANDARD = gnu99;
293+
GCC_NO_COMMON_BLOCKS = YES;
294+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
295+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
296+
GCC_WARN_UNDECLARED_SELECTOR = YES;
297+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
298+
GCC_WARN_UNUSED_FUNCTION = YES;
299+
GCC_WARN_UNUSED_VARIABLE = YES;
300+
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
301+
MTL_ENABLE_DEBUG_INFO = NO;
302+
SDKROOT = iphoneos;
303+
VALIDATE_PRODUCT = YES;
304+
};
305+
name = Release;
306+
};
307+
1A0F1E2C1B034B7100DA78D2 /* Debug */ = {
308+
isa = XCBuildConfiguration;
309+
baseConfigurationReference = 85430A3E591C9A403636B060 /* Pods.debug.xcconfig */;
310+
buildSettings = {
311+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
312+
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
313+
INFOPLIST_FILE = Sample/Info.plist;
314+
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
315+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
316+
PRODUCT_NAME = "$(TARGET_NAME)";
317+
};
318+
name = Debug;
319+
};
320+
1A0F1E2D1B034B7100DA78D2 /* Release */ = {
321+
isa = XCBuildConfiguration;
322+
baseConfigurationReference = 8C6C505514D1683341C821E8 /* Pods.release.xcconfig */;
323+
buildSettings = {
324+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
325+
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
326+
INFOPLIST_FILE = Sample/Info.plist;
327+
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
328+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
329+
PRODUCT_NAME = "$(TARGET_NAME)";
330+
};
331+
name = Release;
332+
};
333+
/* End XCBuildConfiguration section */
334+
335+
/* Begin XCConfigurationList section */
336+
1A0F1E031B034B7100DA78D2 /* Build configuration list for PBXProject "Sample" */ = {
337+
isa = XCConfigurationList;
338+
buildConfigurations = (
339+
1A0F1E291B034B7100DA78D2 /* Debug */,
340+
1A0F1E2A1B034B7100DA78D2 /* Release */,
341+
);
342+
defaultConfigurationIsVisible = 0;
343+
defaultConfigurationName = Release;
344+
};
345+
1A0F1E2B1B034B7100DA78D2 /* Build configuration list for PBXNativeTarget "Sample" */ = {
346+
isa = XCConfigurationList;
347+
buildConfigurations = (
348+
1A0F1E2C1B034B7100DA78D2 /* Debug */,
349+
1A0F1E2D1B034B7100DA78D2 /* Release */,
350+
);
351+
defaultConfigurationIsVisible = 0;
352+
defaultConfigurationName = Release;
353+
};
354+
/* End XCConfigurationList section */
355+
};
356+
rootObject = 1A0F1E001B034B7100DA78D2 /* Project object */;
357+
}

0 commit comments

Comments
 (0)