Skip to content

Commit

Permalink
Add macOS example
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto committed Nov 10, 2023
1 parent 9682c42 commit d4780dd
Show file tree
Hide file tree
Showing 11 changed files with 415 additions and 3 deletions.
186 changes: 185 additions & 1 deletion PostHog.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@
69278D4B2AE6BC9000BB541A /* PostHog.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3AC745B5296D6FE60025C109 /* PostHog.framework */; };
69278D4C2AE6BC9000BB541A /* PostHog.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3AC745B5296D6FE60025C109 /* PostHog.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
69779BEC2AE68E6900D7A48E /* UIViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69779BEB2AE68E6900D7A48E /* UIViewController.swift */; };
699991882AFE1B37000DCB78 /* PostHogExampleMacOSApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 699991872AFE1B37000DCB78 /* PostHogExampleMacOSApp.swift */; };
6999918A2AFE1B37000DCB78 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 699991892AFE1B37000DCB78 /* ContentView.swift */; };
6999918C2AFE1B39000DCB78 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6999918B2AFE1B39000DCB78 /* Assets.xcassets */; };
6999918F2AFE1B39000DCB78 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6999918E2AFE1B39000DCB78 /* Preview Assets.xcassets */; };
699991942AFE1B56000DCB78 /* PostHog.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3AC745B5296D6FE60025C109 /* PostHog.framework */; };
699991952AFE1B56000DCB78 /* PostHog.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3AC745B5296D6FE60025C109 /* PostHog.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
6999919A2AFE1BAB000DCB78 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 699991992AFE1BAB000DCB78 /* AppDelegate.swift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -126,6 +133,13 @@
remoteGlobalIDString = 3AC745B4296D6FE60025C109;
remoteInfo = PostHog;
};
699991962AFE1B56000DCB78 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 3AC745AC296D6FE60025C109 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 3AC745B4296D6FE60025C109;
remoteInfo = PostHog;
};
/* End PBXContainerItemProxy section */

/* Begin PBXCopyFilesBuildPhase section */
Expand All @@ -151,6 +165,17 @@
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
699991982AFE1B56000DCB78 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
699991952AFE1B56000DCB78 /* PostHog.framework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
Expand Down Expand Up @@ -218,6 +243,13 @@
69278D462AE6BC7200BB541A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
69779BEB2AE68E6900D7A48E /* UIViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIViewController.swift; sourceTree = "<group>"; };
699991562AFE0E9F000DCB78 /* PostHogExample.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = PostHogExample.entitlements; sourceTree = "<group>"; };
699991852AFE1B37000DCB78 /* PostHogExampleMacOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PostHogExampleMacOS.app; sourceTree = BUILT_PRODUCTS_DIR; };
699991872AFE1B37000DCB78 /* PostHogExampleMacOSApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PostHogExampleMacOSApp.swift; sourceTree = "<group>"; };
699991892AFE1B37000DCB78 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
6999918B2AFE1B39000DCB78 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
6999918E2AFE1B39000DCB78 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
699991902AFE1B39000DCB78 /* PostHogExampleMacOS.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = PostHogExampleMacOS.entitlements; sourceTree = "<group>"; };
699991992AFE1BAB000DCB78 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -256,6 +288,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
699991822AFE1B37000DCB78 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
699991942AFE1B56000DCB78 /* PostHog.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
Expand Down Expand Up @@ -326,6 +366,7 @@
3AC745C3296D6FE60025C109 /* PostHogTests */,
3AA34CF8296D951A003398F4 /* PostHogExample */,
69278D332AE6BC7100BB541A /* PostHogObjCExample */,
699991862AFE1B37000DCB78 /* PostHogExampleMacOS */,
3AC745B6296D6FE60025C109 /* Products */,
69261D152AD92D6C00232EC7 /* Frameworks */,
);
Expand All @@ -338,6 +379,7 @@
3AC745BF296D6FE60025C109 /* PostHogTests.xctest */,
3AA34CF7296D951A003398F4 /* PostHogExample.app */,
69278D322AE6BC7100BB541A /* PostHogObjCExample.app */,
699991852AFE1B37000DCB78 /* PostHogExampleMacOS.app */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -442,6 +484,27 @@
path = Models;
sourceTree = "<group>";
};
699991862AFE1B37000DCB78 /* PostHogExampleMacOS */ = {
isa = PBXGroup;
children = (
699991872AFE1B37000DCB78 /* PostHogExampleMacOSApp.swift */,
699991892AFE1B37000DCB78 /* ContentView.swift */,
6999918B2AFE1B39000DCB78 /* Assets.xcassets */,
699991902AFE1B39000DCB78 /* PostHogExampleMacOS.entitlements */,
6999918D2AFE1B39000DCB78 /* Preview Content */,
699991992AFE1BAB000DCB78 /* AppDelegate.swift */,
);
path = PostHogExampleMacOS;
sourceTree = "<group>";
};
6999918D2AFE1B39000DCB78 /* Preview Content */ = {
isa = PBXGroup;
children = (
6999918E2AFE1B39000DCB78 /* Preview Assets.xcassets */,
);
path = "Preview Content";
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
Expand Down Expand Up @@ -539,14 +602,33 @@
productReference = 69278D322AE6BC7100BB541A /* PostHogObjCExample.app */;
productType = "com.apple.product-type.application";
};
699991842AFE1B37000DCB78 /* PostHogExampleMacOS */ = {
isa = PBXNativeTarget;
buildConfigurationList = 699991912AFE1B39000DCB78 /* Build configuration list for PBXNativeTarget "PostHogExampleMacOS" */;
buildPhases = (
699991812AFE1B37000DCB78 /* Sources */,
699991822AFE1B37000DCB78 /* Frameworks */,
699991832AFE1B37000DCB78 /* Resources */,
699991982AFE1B56000DCB78 /* Embed Frameworks */,
);
buildRules = (
);
dependencies = (
699991972AFE1B56000DCB78 /* PBXTargetDependency */,
);
name = PostHogExampleMacOS;
productName = PostHogExampleMacOS;
productReference = 699991852AFE1B37000DCB78 /* PostHogExampleMacOS.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
3AC745AC296D6FE60025C109 /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1420;
LastSwiftUpdateCheck = 1500;
LastUpgradeCheck = 1500;
TargetAttributes = {
3AA34CF6296D951A003398F4 = {
Expand All @@ -563,6 +645,9 @@
69278D312AE6BC7100BB541A = {
CreatedOnToolsVersion = 15.0.1;
};
699991842AFE1B37000DCB78 = {
CreatedOnToolsVersion = 15.0.1;
};
};
};
buildConfigurationList = 3AC745AF296D6FE60025C109 /* Build configuration list for PBXProject "PostHog" */;
Expand Down Expand Up @@ -601,6 +686,7 @@
3AC745BE296D6FE60025C109 /* PostHogTests */,
3AA34CF6296D951A003398F4 /* PostHogExample */,
69278D312AE6BC7100BB541A /* PostHogObjCExample */,
699991842AFE1B37000DCB78 /* PostHogExampleMacOS */,
);
};
/* End PBXProject section */
Expand Down Expand Up @@ -670,6 +756,15 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
699991832AFE1B37000DCB78 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
6999918F2AFE1B39000DCB78 /* Preview Assets.xcassets in Resources */,
6999918C2AFE1B39000DCB78 /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down Expand Up @@ -746,6 +841,16 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
699991812AFE1B37000DCB78 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
6999919A2AFE1BAB000DCB78 /* AppDelegate.swift in Sources */,
6999918A2AFE1B37000DCB78 /* ContentView.swift in Sources */,
699991882AFE1B37000DCB78 /* PostHogExampleMacOSApp.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
Expand Down Expand Up @@ -775,6 +880,11 @@
target = 3AC745B4296D6FE60025C109 /* PostHog */;
targetProxy = 69278D4D2AE6BC9000BB541A /* PBXContainerItemProxy */;
};
699991972AFE1B56000DCB78 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 3AC745B4296D6FE60025C109 /* PostHog */;
targetProxy = 699991962AFE1B56000DCB78 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
Expand Down Expand Up @@ -1202,6 +1312,71 @@
};
name = Release;
};
699991922AFE1B39000DCB78 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = PostHogExampleMacOS/PostHogExampleMacOS.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"PostHogExampleMacOS/Preview Content\"";
DEVELOPMENT_TEAM = PNC2XCH2XP;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MACOSX_DEPLOYMENT_TARGET = 12.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.posthog.PostHogExampleMacOS;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
699991932AFE1B39000DCB78 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = PostHogExampleMacOS/PostHogExampleMacOS.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"PostHogExampleMacOS/Preview Content\"";
DEVELOPMENT_TEAM = PNC2XCH2XP;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MACOSX_DEPLOYMENT_TARGET = 12.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.posthog.PostHogExampleMacOS;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand Down Expand Up @@ -1250,6 +1425,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
699991912AFE1B39000DCB78 /* Build configuration list for PBXNativeTarget "PostHogExampleMacOS" */ = {
isa = XCConfigurationList;
buildConfigurations = (
699991922AFE1B39000DCB78 /* Debug */,
699991932AFE1B39000DCB78 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "699991842AFE1B37000DCB78"
BuildableName = "PostHogExampleMacOS.app"
BlueprintName = "PostHogExampleMacOS"
ReferencedContainer = "container:PostHog.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "699991842AFE1B37000DCB78"
BuildableName = "PostHogExampleMacOS.app"
BlueprintName = "PostHogExampleMacOS"
ReferencedContainer = "container:PostHog.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "699991842AFE1B37000DCB78"
BuildableName = "PostHogExampleMacOS.app"
BlueprintName = "PostHogExampleMacOS"
ReferencedContainer = "container:PostHog.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Loading

0 comments on commit d4780dd

Please sign in to comment.