forked from txbrown/posthog-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
1,727 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,3 +88,4 @@ fastlane/test_output | |
# https://github.com/johnno1962/injectionforxcode | ||
|
||
iOSInjectionProject/ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// swift-tools-version:5.3 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "PostHog", | ||
platforms: [ | ||
.iOS(.v13), .macOS(.v10_15), .tvOS(.v13), .watchOS(.v6) | ||
], | ||
products: [ | ||
// Products define the executables and libraries a package produces, and make them visible to other packages. | ||
.library( | ||
name: "PostHog", | ||
targets: ["PostHog"]), | ||
], | ||
dependencies: [ | ||
// Dependencies declare other packages that this package depends on. | ||
// .package(url: /* package url */, from: "1.0.0"), | ||
], | ||
targets: [ | ||
// Targets are the basic building blocks of a package. A target can define a module or a test suite. | ||
// Targets can depend on other targets in this package, and on products in packages this package depends on. | ||
.target( | ||
name: "PostHog", | ||
dependencies: [], | ||
path: "Sources/"), | ||
.testTarget( | ||
name: "PostHogTests", | ||
dependencies: ["PostHog"], | ||
path: "Tests" | ||
), | ||
] | ||
) |
355 changes: 355 additions & 0 deletions
355
PostHogExample/PostHogExample.xcodeproj/project.pbxproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,355 @@ | ||
// !$*UTF8*$! | ||
{ | ||
archiveVersion = 1; | ||
classes = { | ||
}; | ||
objectVersion = 52; | ||
objects = { | ||
|
||
/* Begin PBXBuildFile section */ | ||
B68FAF9B260601BA00586875 /* PostHogExampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = B68FAF9A260601BA00586875 /* PostHogExampleApp.swift */; }; | ||
B68FAF9D260601BA00586875 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B68FAF9C260601BA00586875 /* ContentView.swift */; }; | ||
B68FAF9F260601BC00586875 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B68FAF9E260601BC00586875 /* Assets.xcassets */; }; | ||
B68FAFA2260601BC00586875 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B68FAFA1260601BC00586875 /* Preview Assets.xcassets */; }; | ||
B68FAFAF2606032400586875 /* PostHog in Frameworks */ = {isa = PBXBuildFile; productRef = B68FAFAE2606032400586875 /* PostHog */; }; | ||
/* End PBXBuildFile section */ | ||
|
||
/* Begin PBXFileReference section */ | ||
B68FAF97260601BA00586875 /* PostHogExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PostHogExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
B68FAF9A260601BA00586875 /* PostHogExampleApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PostHogExampleApp.swift; sourceTree = "<group>"; }; | ||
B68FAF9C260601BA00586875 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; }; | ||
B68FAF9E260601BC00586875 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; }; | ||
B68FAFA1260601BC00586875 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; }; | ||
B68FAFA3260601BC00586875 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; | ||
B68FAFAA260601CD00586875 /* posthog-swift */ = {isa = PBXFileReference; lastKnownFileType = folder; name = "posthog-swift"; path = ..; sourceTree = "<group>"; }; | ||
/* End PBXFileReference section */ | ||
|
||
/* Begin PBXFrameworksBuildPhase section */ | ||
B68FAF94260601BA00586875 /* Frameworks */ = { | ||
isa = PBXFrameworksBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
B68FAFAF2606032400586875 /* PostHog in Frameworks */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXFrameworksBuildPhase section */ | ||
|
||
/* Begin PBXGroup section */ | ||
B68FAF8E260601BA00586875 = { | ||
isa = PBXGroup; | ||
children = ( | ||
B68FAF99260601BA00586875 /* PostHogExample */, | ||
B68FAFAA260601CD00586875 /* posthog-swift */, | ||
B68FAF98260601BA00586875 /* Products */, | ||
B68FAFAD2606032400586875 /* Frameworks */, | ||
); | ||
sourceTree = "<group>"; | ||
}; | ||
B68FAF98260601BA00586875 /* Products */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
B68FAF97260601BA00586875 /* PostHogExample.app */, | ||
); | ||
name = Products; | ||
sourceTree = "<group>"; | ||
}; | ||
B68FAF99260601BA00586875 /* PostHogExample */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
B68FAF9A260601BA00586875 /* PostHogExampleApp.swift */, | ||
B68FAF9C260601BA00586875 /* ContentView.swift */, | ||
B68FAF9E260601BC00586875 /* Assets.xcassets */, | ||
B68FAFA3260601BC00586875 /* Info.plist */, | ||
B68FAFA0260601BC00586875 /* Preview Content */, | ||
); | ||
path = PostHogExample; | ||
sourceTree = "<group>"; | ||
}; | ||
B68FAFA0260601BC00586875 /* Preview Content */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
B68FAFA1260601BC00586875 /* Preview Assets.xcassets */, | ||
); | ||
path = "Preview Content"; | ||
sourceTree = "<group>"; | ||
}; | ||
B68FAFAD2606032400586875 /* Frameworks */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
); | ||
name = Frameworks; | ||
sourceTree = "<group>"; | ||
}; | ||
/* End PBXGroup section */ | ||
|
||
/* Begin PBXNativeTarget section */ | ||
B68FAF96260601BA00586875 /* PostHogExample */ = { | ||
isa = PBXNativeTarget; | ||
buildConfigurationList = B68FAFA6260601BC00586875 /* Build configuration list for PBXNativeTarget "PostHogExample" */; | ||
buildPhases = ( | ||
B68FAF93260601BA00586875 /* Sources */, | ||
B68FAF94260601BA00586875 /* Frameworks */, | ||
B68FAF95260601BA00586875 /* Resources */, | ||
); | ||
buildRules = ( | ||
); | ||
dependencies = ( | ||
); | ||
name = PostHogExample; | ||
packageProductDependencies = ( | ||
B68FAFAE2606032400586875 /* PostHog */, | ||
); | ||
productName = PostHogExample; | ||
productReference = B68FAF97260601BA00586875 /* PostHogExample.app */; | ||
productType = "com.apple.product-type.application"; | ||
}; | ||
/* End PBXNativeTarget section */ | ||
|
||
/* Begin PBXProject section */ | ||
B68FAF8F260601BA00586875 /* Project object */ = { | ||
isa = PBXProject; | ||
attributes = { | ||
LastSwiftUpdateCheck = 1240; | ||
LastUpgradeCheck = 1240; | ||
TargetAttributes = { | ||
B68FAF96260601BA00586875 = { | ||
CreatedOnToolsVersion = 12.4; | ||
}; | ||
}; | ||
}; | ||
buildConfigurationList = B68FAF92260601BA00586875 /* Build configuration list for PBXProject "PostHogExample" */; | ||
compatibilityVersion = "Xcode 9.3"; | ||
developmentRegion = en; | ||
hasScannedForEncodings = 0; | ||
knownRegions = ( | ||
en, | ||
Base, | ||
); | ||
mainGroup = B68FAF8E260601BA00586875; | ||
productRefGroup = B68FAF98260601BA00586875 /* Products */; | ||
projectDirPath = ""; | ||
projectRoot = ""; | ||
targets = ( | ||
B68FAF96260601BA00586875 /* PostHogExample */, | ||
); | ||
}; | ||
/* End PBXProject section */ | ||
|
||
/* Begin PBXResourcesBuildPhase section */ | ||
B68FAF95260601BA00586875 /* Resources */ = { | ||
isa = PBXResourcesBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
B68FAFA2260601BC00586875 /* Preview Assets.xcassets in Resources */, | ||
B68FAF9F260601BC00586875 /* Assets.xcassets in Resources */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXResourcesBuildPhase section */ | ||
|
||
/* Begin PBXSourcesBuildPhase section */ | ||
B68FAF93260601BA00586875 /* Sources */ = { | ||
isa = PBXSourcesBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
B68FAF9D260601BA00586875 /* ContentView.swift in Sources */, | ||
B68FAF9B260601BA00586875 /* PostHogExampleApp.swift in Sources */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXSourcesBuildPhase section */ | ||
|
||
/* Begin XCBuildConfiguration section */ | ||
B68FAFA4260601BC00586875 /* Debug */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ALWAYS_SEARCH_USER_PATHS = NO; | ||
CLANG_ANALYZER_NONNULL = YES; | ||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; | ||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; | ||
CLANG_CXX_LIBRARY = "libc++"; | ||
CLANG_ENABLE_MODULES = YES; | ||
CLANG_ENABLE_OBJC_ARC = YES; | ||
CLANG_ENABLE_OBJC_WEAK = YES; | ||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; | ||
CLANG_WARN_BOOL_CONVERSION = YES; | ||
CLANG_WARN_COMMA = YES; | ||
CLANG_WARN_CONSTANT_CONVERSION = YES; | ||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; | ||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; | ||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES; | ||
CLANG_WARN_EMPTY_BODY = YES; | ||
CLANG_WARN_ENUM_CONVERSION = YES; | ||
CLANG_WARN_INFINITE_RECURSION = YES; | ||
CLANG_WARN_INT_CONVERSION = YES; | ||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; | ||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; | ||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; | ||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; | ||
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; | ||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; | ||
CLANG_WARN_STRICT_PROTOTYPES = YES; | ||
CLANG_WARN_SUSPICIOUS_MOVE = YES; | ||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; | ||
CLANG_WARN_UNREACHABLE_CODE = YES; | ||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | ||
COPY_PHASE_STRIP = NO; | ||
DEBUG_INFORMATION_FORMAT = dwarf; | ||
ENABLE_STRICT_OBJC_MSGSEND = YES; | ||
ENABLE_TESTABILITY = YES; | ||
GCC_C_LANGUAGE_STANDARD = gnu11; | ||
GCC_DYNAMIC_NO_PIC = NO; | ||
GCC_NO_COMMON_BLOCKS = YES; | ||
GCC_OPTIMIZATION_LEVEL = 0; | ||
GCC_PREPROCESSOR_DEFINITIONS = ( | ||
"DEBUG=1", | ||
"$(inherited)", | ||
); | ||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES; | ||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; | ||
GCC_WARN_UNDECLARED_SELECTOR = YES; | ||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | ||
GCC_WARN_UNUSED_FUNCTION = YES; | ||
GCC_WARN_UNUSED_VARIABLE = YES; | ||
IPHONEOS_DEPLOYMENT_TARGET = 14.4; | ||
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; | ||
MTL_FAST_MATH = YES; | ||
ONLY_ACTIVE_ARCH = YES; | ||
SDKROOT = iphoneos; | ||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; | ||
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; | ||
}; | ||
name = Debug; | ||
}; | ||
B68FAFA5260601BC00586875 /* Release */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ALWAYS_SEARCH_USER_PATHS = NO; | ||
CLANG_ANALYZER_NONNULL = YES; | ||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; | ||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; | ||
CLANG_CXX_LIBRARY = "libc++"; | ||
CLANG_ENABLE_MODULES = YES; | ||
CLANG_ENABLE_OBJC_ARC = YES; | ||
CLANG_ENABLE_OBJC_WEAK = YES; | ||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; | ||
CLANG_WARN_BOOL_CONVERSION = YES; | ||
CLANG_WARN_COMMA = YES; | ||
CLANG_WARN_CONSTANT_CONVERSION = YES; | ||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; | ||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; | ||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES; | ||
CLANG_WARN_EMPTY_BODY = YES; | ||
CLANG_WARN_ENUM_CONVERSION = YES; | ||
CLANG_WARN_INFINITE_RECURSION = YES; | ||
CLANG_WARN_INT_CONVERSION = YES; | ||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; | ||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; | ||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; | ||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; | ||
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; | ||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; | ||
CLANG_WARN_STRICT_PROTOTYPES = YES; | ||
CLANG_WARN_SUSPICIOUS_MOVE = YES; | ||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; | ||
CLANG_WARN_UNREACHABLE_CODE = YES; | ||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | ||
COPY_PHASE_STRIP = NO; | ||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; | ||
ENABLE_NS_ASSERTIONS = NO; | ||
ENABLE_STRICT_OBJC_MSGSEND = YES; | ||
GCC_C_LANGUAGE_STANDARD = gnu11; | ||
GCC_NO_COMMON_BLOCKS = YES; | ||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES; | ||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; | ||
GCC_WARN_UNDECLARED_SELECTOR = YES; | ||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | ||
GCC_WARN_UNUSED_FUNCTION = YES; | ||
GCC_WARN_UNUSED_VARIABLE = YES; | ||
IPHONEOS_DEPLOYMENT_TARGET = 14.4; | ||
MTL_ENABLE_DEBUG_INFO = NO; | ||
MTL_FAST_MATH = YES; | ||
SDKROOT = iphoneos; | ||
SWIFT_COMPILATION_MODE = wholemodule; | ||
SWIFT_OPTIMIZATION_LEVEL = "-O"; | ||
VALIDATE_PRODUCT = YES; | ||
}; | ||
name = Release; | ||
}; | ||
B68FAFA7260601BC00586875 /* Debug */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; | ||
CODE_SIGN_STYLE = Automatic; | ||
DEVELOPMENT_ASSET_PATHS = "\"PostHogExample/Preview Content\""; | ||
DEVELOPMENT_TEAM = P459Y32P65; | ||
ENABLE_PREVIEWS = YES; | ||
INFOPLIST_FILE = PostHogExample/Info.plist; | ||
IPHONEOS_DEPLOYMENT_TARGET = 14.0; | ||
LD_RUNPATH_SEARCH_PATHS = ( | ||
"$(inherited)", | ||
"@executable_path/Frameworks", | ||
); | ||
PRODUCT_BUNDLE_IDENTIFIER = com.leomehlig.PostHogExample; | ||
PRODUCT_NAME = "$(TARGET_NAME)"; | ||
SWIFT_VERSION = 5.0; | ||
TARGETED_DEVICE_FAMILY = "1,2"; | ||
}; | ||
name = Debug; | ||
}; | ||
B68FAFA8260601BC00586875 /* Release */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; | ||
CODE_SIGN_STYLE = Automatic; | ||
DEVELOPMENT_ASSET_PATHS = "\"PostHogExample/Preview Content\""; | ||
DEVELOPMENT_TEAM = P459Y32P65; | ||
ENABLE_PREVIEWS = YES; | ||
INFOPLIST_FILE = PostHogExample/Info.plist; | ||
IPHONEOS_DEPLOYMENT_TARGET = 14.0; | ||
LD_RUNPATH_SEARCH_PATHS = ( | ||
"$(inherited)", | ||
"@executable_path/Frameworks", | ||
); | ||
PRODUCT_BUNDLE_IDENTIFIER = com.leomehlig.PostHogExample; | ||
PRODUCT_NAME = "$(TARGET_NAME)"; | ||
SWIFT_VERSION = 5.0; | ||
TARGETED_DEVICE_FAMILY = "1,2"; | ||
}; | ||
name = Release; | ||
}; | ||
/* End XCBuildConfiguration section */ | ||
|
||
/* Begin XCConfigurationList section */ | ||
B68FAF92260601BA00586875 /* Build configuration list for PBXProject "PostHogExample" */ = { | ||
isa = XCConfigurationList; | ||
buildConfigurations = ( | ||
B68FAFA4260601BC00586875 /* Debug */, | ||
B68FAFA5260601BC00586875 /* Release */, | ||
); | ||
defaultConfigurationIsVisible = 0; | ||
defaultConfigurationName = Release; | ||
}; | ||
B68FAFA6260601BC00586875 /* Build configuration list for PBXNativeTarget "PostHogExample" */ = { | ||
isa = XCConfigurationList; | ||
buildConfigurations = ( | ||
B68FAFA7260601BC00586875 /* Debug */, | ||
B68FAFA8260601BC00586875 /* Release */, | ||
); | ||
defaultConfigurationIsVisible = 0; | ||
defaultConfigurationName = Release; | ||
}; | ||
/* End XCConfigurationList section */ | ||
|
||
/* Begin XCSwiftPackageProductDependency section */ | ||
B68FAFAE2606032400586875 /* PostHog */ = { | ||
isa = XCSwiftPackageProductDependency; | ||
productName = PostHog; | ||
}; | ||
/* End XCSwiftPackageProductDependency section */ | ||
}; | ||
rootObject = B68FAF8F260601BA00586875 /* Project object */; | ||
} |
Oops, something went wrong.