Skip to content

Commit fafdff1

Browse files
bsneedBrandon Sneed
andauthored
Add StartupQueue automatically; update tests. (#26)
* Add StartupQueue automatically; update tests. * Refactored startup sequence. * removed extraneous code * More Startup changes for the queue + mac example * catch mac catalyst in platform bits * stop the flush timer when going to background * fixed time interval computation * Use a queue timer instead of NSTimer. * fixed startup wait routine * testing a change w/ CI … * Watch the startupqueue plugin to decide when to continue w/ tests Co-authored-by: Brandon Sneed <[email protected]>
1 parent 706f65b commit fafdff1

File tree

32 files changed

+1555
-83
lines changed

32 files changed

+1555
-83
lines changed

Examples/apps/BasicExample/BasicExample.xcodeproj/project.pbxproj

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
/* End PBXBuildFile section */
2020

2121
/* Begin PBXFileReference section */
22+
4663C72A267A8D6B00ADDD1A /* BasicExample.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = BasicExample.entitlements; sourceTree = "<group>"; };
2223
469F7AF8265C25890038E773 /* EventData.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EventData.swift; sourceTree = "<group>"; };
2324
46E38361265837EA00BA2502 /* BasicExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BasicExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
2425
46E38364265837EA00BA2502 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
@@ -63,6 +64,7 @@
6364
46E38363265837EA00BA2502 /* BasicExample */ = {
6465
isa = PBXGroup;
6566
children = (
67+
4663C72A267A8D6B00ADDD1A /* BasicExample.entitlements */,
6668
46E38364265837EA00BA2502 /* AppDelegate.swift */,
6769
46E38366265837EA00BA2502 /* SceneDelegate.swift */,
6870
469F7AF8265C25890038E773 /* EventData.swift */,
@@ -309,14 +311,18 @@
309311
buildSettings = {
310312
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
311313
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
312-
CODE_SIGN_STYLE = Automatic;
314+
CODE_SIGN_ENTITLEMENTS = BasicExample/BasicExample.entitlements;
315+
CODE_SIGN_IDENTITY = "Apple Development";
316+
CODE_SIGN_STYLE = Manual;
313317
INFOPLIST_FILE = BasicExample/Info.plist;
314318
LD_RUNPATH_SEARCH_PATHS = (
315319
"$(inherited)",
316320
"@executable_path/Frameworks",
317321
);
318322
PRODUCT_BUNDLE_IDENTIFIER = com.segment.BasicExample;
319323
PRODUCT_NAME = "$(TARGET_NAME)";
324+
PROVISIONING_PROFILE_SPECIFIER = "";
325+
SUPPORTS_MACCATALYST = YES;
320326
SWIFT_VERSION = 5.0;
321327
TARGETED_DEVICE_FAMILY = "1,2";
322328
};
@@ -327,14 +333,18 @@
327333
buildSettings = {
328334
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
329335
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
330-
CODE_SIGN_STYLE = Automatic;
336+
CODE_SIGN_ENTITLEMENTS = BasicExample/BasicExample.entitlements;
337+
CODE_SIGN_IDENTITY = "Apple Development";
338+
CODE_SIGN_STYLE = Manual;
331339
INFOPLIST_FILE = BasicExample/Info.plist;
332340
LD_RUNPATH_SEARCH_PATHS = (
333341
"$(inherited)",
334342
"@executable_path/Frameworks",
335343
);
336344
PRODUCT_BUNDLE_IDENTIFIER = com.segment.BasicExample;
337345
PRODUCT_NAME = "$(TARGET_NAME)";
346+
PROVISIONING_PROFILE_SPECIFIER = "";
347+
SUPPORTS_MACCATALYST = YES;
338348
SWIFT_VERSION = 5.0;
339349
TARGETED_DEVICE_FAMILY = "1,2";
340350
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.app-sandbox</key>
6+
<true/>
7+
<key>com.apple.security.network.client</key>
8+
<true/>
9+
</dict>
10+
</plist>

Examples/apps/DestinationsExample/DestinationsExample/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1616
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
1717
// Override point for customization after application launch.
1818

19-
let configuration = Configuration(writeKey: "<WRITE KEY>")
19+
let configuration = Configuration(writeKey: "1234")
2020
.trackApplicationLifecycleEvents(true)
2121
.flushInterval(10)
2222

Examples/apps/DestinationsExample/DestinationsExample/Base.lproj/Main.storyboard

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
3-
<device id="retina6_1" orientation="portrait" appearance="light"/>
3+
<device id="retina3_5" orientation="landscape" appearance="light"/>
44
<dependencies>
55
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="18093"/>
66
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
@@ -13,7 +13,7 @@
1313
<objects>
1414
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="DestinationsExample" customModuleProvider="target" sceneMemberID="viewController">
1515
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
16-
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
16+
<rect key="frame" x="0.0" y="0.0" width="480" height="320"/>
1717
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
1818
<subviews>
1919
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Event Type" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5DB-ee-sx2">

0 commit comments

Comments
 (0)