diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 4e13cd6c..4b0fe803 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -57,7 +57,7 @@ jobs: - uses: webfactory/ssh-agent@v0.5.3 with: ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }} - - run: xcodebuild -scheme Segment-Package test -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 13' + - run: xcodebuild -scheme Segment test -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 13' build_and_test_tvos: @@ -71,7 +71,7 @@ jobs: - uses: webfactory/ssh-agent@v0.5.3 with: ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }} - - run: xcodebuild -scheme Segment-Package test -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV' + - run: xcodebuild -scheme Segment test -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV' build_and_test_watchos: needs: cancel_previous @@ -84,7 +84,7 @@ jobs: - uses: webfactory/ssh-agent@v0.5.3 with: ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }} - - run: xcodebuild -scheme Segment-Package test -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch Series 8 (45mm)' + - run: xcodebuild -scheme Segment test -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch Series 8 (45mm)' build_and_test_examples: needs: cancel_previous diff --git a/.gitignore b/.gitignore index 468bb4af..a2da4812 100644 --- a/.gitignore +++ b/.gitignore @@ -99,4 +99,4 @@ Segment-Package_XCFramework Segment.xcframework.zip Segment.xcframework XCFrameworkOutput - +*.sha256 diff --git a/Segment.xcodeproj/Segment_Info.plist b/Segment.xcodeproj/Segment_Info.plist deleted file mode 100644 index ca23c84f..00000000 --- a/Segment.xcodeproj/Segment_Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - FMWK - CFBundleShortVersionString - $(MARKETING_VERSION) - CFBundleSignature - ???? - CFBundleVersion - $(CURRENT_PROJECT_VERSION) - NSPrincipalClass - - - diff --git a/Segment.xcodeproj/Segment_Tests_Info.plist b/Segment.xcodeproj/Segment_Tests_Info.plist deleted file mode 100644 index 7c23420d..00000000 --- a/Segment.xcodeproj/Segment_Tests_Info.plist +++ /dev/null @@ -1,25 +0,0 @@ - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - $(CURRENT_PROJECT_VERSION) - NSPrincipalClass - - - diff --git a/Segment.xcodeproj/project.pbxproj b/Segment.xcodeproj/project.pbxproj deleted file mode 100644 index 8d1b0414..00000000 --- a/Segment.xcodeproj/project.pbxproj +++ /dev/null @@ -1,986 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 52; - objects = { - -/* Begin PBXAggregateTarget section */ - "Segment::SegmentPackageTests::ProductTarget" /* SegmentPackageTests */ = { - isa = PBXAggregateTarget; - buildConfigurationList = OBJ_42 /* Build configuration list for PBXAggregateTarget "SegmentPackageTests" */; - buildPhases = ( - ); - dependencies = ( - OBJ_45 /* PBXTargetDependency */, - ); - name = SegmentPackageTests; - productName = SegmentPackageTests; - }; -/* End PBXAggregateTarget section */ - -/* Begin PBXBuildFile section */ - 460227422612987300A9E913 /* watchOSLifecycleEvents.swift in Sources */ = {isa = PBXBuildFile; fileRef = 460227412612987300A9E913 /* watchOSLifecycleEvents.swift */; }; - 46022764261E64A800A9E913 /* iOSLifecycleEvents.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46022763261E64A800A9E913 /* iOSLifecycleEvents.swift */; }; - 4602276C261E7BF900A9E913 /* iOSDelegation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4602276B261E7BF900A9E913 /* iOSDelegation.swift */; }; - 46022771261F7A4800A9E913 /* Atomic.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46022770261F7A4800A9E913 /* Atomic.swift */; }; - 46031D65266E7C10009BA540 /* StartupQueue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46031D64266E7C10009BA540 /* StartupQueue.swift */; }; - 460FF30B29BA525900635FF9 /* Logging.swift in Sources */ = {isa = PBXBuildFile; fileRef = 460FF30A29BA525900635FF9 /* Logging.swift */; }; - 462107F22603DA4D00EBC4A8 /* Sovran in Frameworks */ = {isa = PBXBuildFile; productRef = 462107F12603DA4D00EBC4A8 /* Sovran */; }; - 4621080C2605332D00EBC4A8 /* KeyPath.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4621080B2605332D00EBC4A8 /* KeyPath.swift */; }; - 46210811260538BE00EBC4A8 /* KeyPath_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46210810260538BE00EBC4A8 /* KeyPath_Tests.swift */; }; - 46210836260BBEE400EBC4A8 /* DeviceToken.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46210835260BBEE400EBC4A8 /* DeviceToken.swift */; }; - 4658175425BA4C20006B2809 /* HTTPClient_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4658175325BA4C20006B2809 /* HTTPClient_Tests.swift */; }; - 465879BA2686560C00180335 /* watchOSDelegation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 465879B82686560C00180335 /* watchOSDelegation.swift */; }; - 465879BB2686560C00180335 /* watchOSLifecycleMonitor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 465879B92686560C00180335 /* watchOSLifecycleMonitor.swift */; }; - 4663C729267A799100ADDD1A /* QueueTimer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4663C728267A799100ADDD1A /* QueueTimer.swift */; }; - 466EC2CE28FB7D5D001B384E /* OutputFileStream.swift in Sources */ = {isa = PBXBuildFile; fileRef = 466EC2CD28FB7D5D001B384E /* OutputFileStream.swift */; }; - 4689231329F7391500AB26E5 /* ObjCPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4689231129F7391500AB26E5 /* ObjCPlugin.swift */; }; - 4689231429F7391500AB26E5 /* ObjCEvents.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4689231229F7391500AB26E5 /* ObjCEvents.swift */; }; - 4697A238290341EF00FAE14F /* Errors.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4697A237290341EF00FAE14F /* Errors.swift */; }; - 46A018C225E5857D00F9CCD8 /* Context.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46A018C125E5857D00F9CCD8 /* Context.swift */; }; - 46A018D425E6C9C200F9CCD8 /* LinuxUtils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46A018D325E6C9C200F9CCD8 /* LinuxUtils.swift */; }; - 46A018DA25E97FDF00F9CCD8 /* AppleUtils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46A018D925E97FDF00F9CCD8 /* AppleUtils.swift */; }; - 46A018EE25E9A74F00F9CCD8 /* VendorSystem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46A018ED25E9A74F00F9CCD8 /* VendorSystem.swift */; }; - 46B1AC6927346D3D00846DE8 /* StressTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46B1AC6827346D3D00846DE8 /* StressTests.swift */; }; - 46E382E72654429A00BA2502 /* Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46E382E62654429A00BA2502 /* Utils.swift */; }; - 46F7485D26C718710042798E /* ObjCAnalytics.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46F7485B26C718710042798E /* ObjCAnalytics.swift */; }; - 46F7485E26C718710042798E /* ObjCConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46F7485C26C718710042798E /* ObjCConfiguration.swift */; }; - 46F7486026C720F60042798E /* ObjC_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46F7485F26C720F60042798E /* ObjC_Tests.swift */; }; - 46FE4C9725A3F35E003A7362 /* macOSLifecycleMonitor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46FE4C9625A3F35E003A7362 /* macOSLifecycleMonitor.swift */; }; - 46FE4C9C25A3F41C003A7362 /* LinuxLifecycleMonitor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46FE4C9B25A3F41C003A7362 /* LinuxLifecycleMonitor.swift */; }; - 46FE4CE025A53FAD003A7362 /* Storage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46FE4CDF25A53FAD003A7362 /* Storage.swift */; }; - 46FE4CFB25A6C671003A7362 /* TestUtilities.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46FE4CFA25A6C671003A7362 /* TestUtilities.swift */; }; - 46FE4D1D25A7A850003A7362 /* Storage_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46FE4D1C25A7A850003A7362 /* Storage_Tests.swift */; }; - 759D6CD127B48ABB00AB900A /* DestinationMetadataPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 759D6CD027B48ABB00AB900A /* DestinationMetadataPlugin.swift */; }; - 823479E929F1A8280051BC99 /* FlushPolicy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 823479E629F1A8280051BC99 /* FlushPolicy.swift */; }; - 823479EA29F1A8280051BC99 /* IntervalBasedFlushPolicy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 823479E729F1A8280051BC99 /* IntervalBasedFlushPolicy.swift */; }; - 823479EB29F1A8280051BC99 /* CountBasedFlushPolicy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 823479E829F1A8280051BC99 /* CountBasedFlushPolicy.swift */; }; - 823479EE29F1A8910051BC99 /* MemoryLeak_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 823479EC29F1A8910051BC99 /* MemoryLeak_Tests.swift */; }; - 823479EF29F1A8910051BC99 /* FlushPolicy_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 823479ED29F1A8910051BC99 /* FlushPolicy_Tests.swift */; }; - 9620862C2575C0C800314F8D /* Events.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9620862B2575C0C800314F8D /* Events.swift */; }; - 96208650257AA83E00314F8D /* iOSLifecycleMonitor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9620864F257AA83E00314F8D /* iOSLifecycleMonitor.swift */; }; - 966945D7259BDCDD00271339 /* HTTPClient.swift in Sources */ = {isa = PBXBuildFile; fileRef = 967C40ED259A7311008EB0B6 /* HTTPClient.swift */; }; - 9692724E25A4E5B7009B5298 /* Startup.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9692724D25A4E5B7009B5298 /* Startup.swift */; }; - 9692726825A583A6009B5298 /* SegmentDestination.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9692726725A583A6009B5298 /* SegmentDestination.swift */; }; - 96A9624E2810C6B80011DE54 /* macOSLifecycleEvents.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96A9624D2810C6B80011DE54 /* macOSLifecycleEvents.swift */; }; - 96A9668927BC137F00078F8B /* iOSLifecycle_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96A9668827BC137F00078F8B /* iOSLifecycle_Tests.swift */; }; - 96C33AB1258961F500F3D538 /* Settings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96C33AB0258961F500F3D538 /* Settings.swift */; }; - 96DBF37B26F39B5500724B0B /* Timeline_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96DBF37A26F39B5500724B0B /* Timeline_Tests.swift */; }; - A31A16262576B6F200C9CDDF /* Timeline.swift in Sources */ = {isa = PBXBuildFile; fileRef = A31A16252576B6F200C9CDDF /* Timeline.swift */; }; - A31A162F2576B73F00C9CDDF /* State.swift in Sources */ = {isa = PBXBuildFile; fileRef = A31A162E2576B73F00C9CDDF /* State.swift */; }; - A31A16342576B7AF00C9CDDF /* Types.swift in Sources */ = {isa = PBXBuildFile; fileRef = A31A16332576B7AF00C9CDDF /* Types.swift */; }; - A31A16512576C47400C9CDDF /* JSON_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A31A16502576C47400C9CDDF /* JSON_Tests.swift */; }; - A31A16B225781CB400C9CDDF /* JSON.swift in Sources */ = {isa = PBXBuildFile; fileRef = A31A16A425780E8D00C9CDDF /* JSON.swift */; }; - A31A16CA25794D9700C9CDDF /* Plugins.swift in Sources */ = {isa = PBXBuildFile; fileRef = A31A16C225794BEF00C9CDDF /* Plugins.swift */; }; - A31A16E12579779600C9CDDF /* Version.swift in Sources */ = {isa = PBXBuildFile; fileRef = A31A16D9257976FB00C9CDDF /* Version.swift */; }; - A3471FBE256487F000965480 /* Configuration.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3471FBD256487F000965480 /* Configuration.swift */; }; - A3AEE14A2580208E002386EB /* iso8601.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3AEE1492580208E002386EB /* iso8601.swift */; }; - A3AEE1882581A8F1002386EB /* Deprecations.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3AEE1872581A8F1002386EB /* Deprecations.swift */; }; - OBJ_23 /* Analytics.swift in Sources */ = {isa = PBXBuildFile; fileRef = OBJ_9 /* Analytics.swift */; }; - OBJ_30 /* Analytics_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = OBJ_12 /* Analytics_Tests.swift */; }; - OBJ_31 /* XCTestManifests.swift in Sources */ = {isa = PBXBuildFile; fileRef = OBJ_13 /* XCTestManifests.swift */; }; - OBJ_33 /* Segment.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = "Segment::Segment::Product" /* Segment.framework */; }; - OBJ_40 /* Package.swift in Sources */ = {isa = PBXBuildFile; fileRef = OBJ_6 /* Package.swift */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - A3471FB7256487B500965480 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = OBJ_1 /* Project object */; - proxyType = 1; - remoteGlobalIDString = "Segment::Segment"; - remoteInfo = Segment; - }; - A3471FBB256487B700965480 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = OBJ_1 /* Project object */; - proxyType = 1; - remoteGlobalIDString = "Segment::Segment-Tests"; - remoteInfo = "Segment-Tests"; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 96208627256DC23F00314F8D /* Embed Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - ); - name = "Embed Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 460227412612987300A9E913 /* watchOSLifecycleEvents.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = watchOSLifecycleEvents.swift; sourceTree = ""; }; - 46022763261E64A800A9E913 /* iOSLifecycleEvents.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSLifecycleEvents.swift; sourceTree = ""; }; - 4602276B261E7BF900A9E913 /* iOSDelegation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSDelegation.swift; sourceTree = ""; }; - 46022770261F7A4800A9E913 /* Atomic.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Atomic.swift; sourceTree = ""; }; - 46031D64266E7C10009BA540 /* StartupQueue.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StartupQueue.swift; sourceTree = ""; }; - 460FF30A29BA525900635FF9 /* Logging.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Logging.swift; sourceTree = ""; }; - 4621080B2605332D00EBC4A8 /* KeyPath.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KeyPath.swift; sourceTree = ""; }; - 46210810260538BE00EBC4A8 /* KeyPath_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KeyPath_Tests.swift; sourceTree = ""; }; - 46210835260BBEE400EBC4A8 /* DeviceToken.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceToken.swift; sourceTree = ""; }; - 4658175325BA4C20006B2809 /* HTTPClient_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HTTPClient_Tests.swift; sourceTree = ""; }; - 465879B82686560C00180335 /* watchOSDelegation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = watchOSDelegation.swift; sourceTree = ""; }; - 465879B92686560C00180335 /* watchOSLifecycleMonitor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = watchOSLifecycleMonitor.swift; sourceTree = ""; }; - 4663C728267A799100ADDD1A /* QueueTimer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QueueTimer.swift; sourceTree = ""; }; - 466EC2CD28FB7D5D001B384E /* OutputFileStream.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OutputFileStream.swift; sourceTree = ""; }; - 4689231129F7391500AB26E5 /* ObjCPlugin.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ObjCPlugin.swift; sourceTree = ""; }; - 4689231229F7391500AB26E5 /* ObjCEvents.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ObjCEvents.swift; sourceTree = ""; }; - 4697A237290341EF00FAE14F /* Errors.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Errors.swift; sourceTree = ""; }; - 46A018C125E5857D00F9CCD8 /* Context.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Context.swift; sourceTree = ""; }; - 46A018D325E6C9C200F9CCD8 /* LinuxUtils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LinuxUtils.swift; sourceTree = ""; }; - 46A018D925E97FDF00F9CCD8 /* AppleUtils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppleUtils.swift; sourceTree = ""; }; - 46A018ED25E9A74F00F9CCD8 /* VendorSystem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VendorSystem.swift; sourceTree = ""; }; - 46B1AC6827346D3D00846DE8 /* StressTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StressTests.swift; sourceTree = ""; }; - 46D98E3D26D6FEF300E7A86A /* FlurryDestination.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FlurryDestination.swift; sourceTree = ""; }; - 46D98E3E26D6FEF300E7A86A /* AdjustDestination.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AdjustDestination.swift; sourceTree = ""; }; - 46D98E4426D6FEF300E7A86A /* UIKitScreenTracking.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIKitScreenTracking.swift; sourceTree = ""; }; - 46D98E4526D6FEF300E7A86A /* ConsentTracking.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConsentTracking.swift; sourceTree = ""; }; - 46D98E4626D6FEF300E7A86A /* IDFACollection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IDFACollection.swift; sourceTree = ""; }; - 46D98E4726D6FEF300E7A86A /* ConsoleLogger.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConsoleLogger.swift; sourceTree = ""; }; - 46E382E62654429A00BA2502 /* Utils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Utils.swift; sourceTree = ""; }; - 46F7485B26C718710042798E /* ObjCAnalytics.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ObjCAnalytics.swift; sourceTree = ""; }; - 46F7485C26C718710042798E /* ObjCConfiguration.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ObjCConfiguration.swift; sourceTree = ""; }; - 46F7485F26C720F60042798E /* ObjC_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ObjC_Tests.swift; sourceTree = ""; }; - 46FE4C9625A3F35E003A7362 /* macOSLifecycleMonitor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = macOSLifecycleMonitor.swift; sourceTree = ""; }; - 46FE4C9B25A3F41C003A7362 /* LinuxLifecycleMonitor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LinuxLifecycleMonitor.swift; sourceTree = ""; }; - 46FE4CDF25A53FAD003A7362 /* Storage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Storage.swift; sourceTree = ""; }; - 46FE4CFA25A6C671003A7362 /* TestUtilities.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestUtilities.swift; sourceTree = ""; }; - 46FE4D1C25A7A850003A7362 /* Storage_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Storage_Tests.swift; sourceTree = ""; }; - 759D6CD027B48ABB00AB900A /* DestinationMetadataPlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DestinationMetadataPlugin.swift; sourceTree = ""; }; - 7B3C818F285BAD7600199D3E /* ComscoreDestination.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ComscoreDestination.swift; sourceTree = ""; }; - 7B3C8190285BAD8700199D3E /* IntercomDestination.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IntercomDestination.swift; sourceTree = ""; }; - 823479E629F1A8280051BC99 /* FlushPolicy.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FlushPolicy.swift; sourceTree = ""; }; - 823479E729F1A8280051BC99 /* IntervalBasedFlushPolicy.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IntervalBasedFlushPolicy.swift; sourceTree = ""; }; - 823479E829F1A8280051BC99 /* CountBasedFlushPolicy.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CountBasedFlushPolicy.swift; sourceTree = ""; }; - 823479EC29F1A8910051BC99 /* MemoryLeak_Tests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MemoryLeak_Tests.swift; sourceTree = ""; }; - 823479ED29F1A8910051BC99 /* FlushPolicy_Tests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FlushPolicy_Tests.swift; sourceTree = ""; }; - 9620862B2575C0C800314F8D /* Events.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Events.swift; sourceTree = ""; }; - 962086482579CCC200314F8D /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; - 9620864F257AA83E00314F8D /* iOSLifecycleMonitor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSLifecycleMonitor.swift; sourceTree = ""; }; - 9679DD6226EFF00800A6933C /* ExampleDestination.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExampleDestination.swift; sourceTree = ""; }; - 967C40ED259A7311008EB0B6 /* HTTPClient.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HTTPClient.swift; sourceTree = ""; }; - 9692724D25A4E5B7009B5298 /* Startup.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Startup.swift; sourceTree = ""; }; - 9692726725A583A6009B5298 /* SegmentDestination.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SegmentDestination.swift; sourceTree = ""; }; - 96A9624D2810C6B80011DE54 /* macOSLifecycleEvents.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = macOSLifecycleEvents.swift; sourceTree = ""; }; - 96A9668827BC137F00078F8B /* iOSLifecycle_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSLifecycle_Tests.swift; sourceTree = ""; }; - 96C33AB0258961F500F3D538 /* Settings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Settings.swift; sourceTree = ""; }; - 96DBF37A26F39B5500724B0B /* Timeline_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Timeline_Tests.swift; sourceTree = ""; }; - A31A16252576B6F200C9CDDF /* Timeline.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Timeline.swift; sourceTree = ""; }; - A31A162E2576B73F00C9CDDF /* State.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = State.swift; sourceTree = ""; }; - A31A16332576B7AF00C9CDDF /* Types.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Types.swift; sourceTree = ""; }; - A31A16502576C47400C9CDDF /* JSON_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JSON_Tests.swift; sourceTree = ""; }; - A31A16A425780E8D00C9CDDF /* JSON.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JSON.swift; sourceTree = ""; }; - A31A16C225794BEF00C9CDDF /* Plugins.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Plugins.swift; sourceTree = ""; }; - A31A16D9257976FB00C9CDDF /* Version.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Version.swift; sourceTree = ""; }; - A3471FBD256487F000965480 /* Configuration.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Configuration.swift; sourceTree = ""; }; - A3AEE1492580208E002386EB /* iso8601.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iso8601.swift; sourceTree = ""; }; - A3AEE1872581A8F1002386EB /* Deprecations.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Deprecations.swift; sourceTree = ""; }; - OBJ_12 /* Analytics_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Analytics_Tests.swift; sourceTree = ""; }; - OBJ_13 /* XCTestManifests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XCTestManifests.swift; sourceTree = ""; }; - OBJ_17 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; - OBJ_6 /* Package.swift */ = {isa = PBXFileReference; explicitFileType = sourcecode.swift; path = Package.swift; sourceTree = ""; }; - OBJ_9 /* Analytics.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Analytics.swift; sourceTree = ""; }; - "Segment::Segment-Tests::Product" /* Segment-Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; path = "Segment-Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; - "Segment::Segment::Product" /* Segment.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = Segment.framework; sourceTree = BUILT_PRODUCTS_DIR; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - OBJ_24 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 0; - files = ( - 462107F22603DA4D00EBC4A8 /* Sovran in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - OBJ_32 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 0; - files = ( - OBJ_33 /* Segment.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 460227402612984100A9E913 /* watchOS */ = { - isa = PBXGroup; - children = ( - 465879B82686560C00180335 /* watchOSDelegation.swift */, - 465879B92686560C00180335 /* watchOSLifecycleMonitor.swift */, - 460227412612987300A9E913 /* watchOSLifecycleEvents.swift */, - ); - path = watchOS; - sourceTree = ""; - }; - 4621082D2609206D00EBC4A8 /* Support */ = { - isa = PBXGroup; - children = ( - 46FE4CFA25A6C671003A7362 /* TestUtilities.swift */, - ); - path = Support; - sourceTree = ""; - }; - 465879B52686554400180335 /* ObjC */ = { - isa = PBXGroup; - children = ( - 46F7485B26C718710042798E /* ObjCAnalytics.swift */, - 4689231229F7391500AB26E5 /* ObjCEvents.swift */, - 4689231129F7391500AB26E5 /* ObjCPlugin.swift */, - 46F7485C26C718710042798E /* ObjCConfiguration.swift */, - ); - path = ObjC; - sourceTree = ""; - }; - 46A018D825E97FCB00F9CCD8 /* Vendors */ = { - isa = PBXGroup; - children = ( - 46A018ED25E9A74F00F9CCD8 /* VendorSystem.swift */, - 46A018D325E6C9C200F9CCD8 /* LinuxUtils.swift */, - 46A018D925E97FDF00F9CCD8 /* AppleUtils.swift */, - ); - path = Vendors; - sourceTree = ""; - }; - 46D98E3B26D6FED300E7A86A /* Examples */ = { - isa = PBXGroup; - children = ( - 46D98E3C26D6FEF300E7A86A /* destination_plugins */, - 46D98E4326D6FEF300E7A86A /* other_plugins */, - ); - name = Examples; - sourceTree = ""; - }; - 46D98E3C26D6FEF300E7A86A /* destination_plugins */ = { - isa = PBXGroup; - children = ( - 7B3C8190285BAD8700199D3E /* IntercomDestination.swift */, - 7B3C818F285BAD7600199D3E /* ComscoreDestination.swift */, - 46D98E3E26D6FEF300E7A86A /* AdjustDestination.swift */, - 9679DD6226EFF00800A6933C /* ExampleDestination.swift */, - 46D98E3D26D6FEF300E7A86A /* FlurryDestination.swift */, - ); - name = destination_plugins; - path = Examples/destination_plugins; - sourceTree = ""; - }; - 46D98E4326D6FEF300E7A86A /* other_plugins */ = { - isa = PBXGroup; - children = ( - 46D98E4426D6FEF300E7A86A /* UIKitScreenTracking.swift */, - 46D98E4526D6FEF300E7A86A /* ConsentTracking.swift */, - 46D98E4626D6FEF300E7A86A /* IDFACollection.swift */, - 46D98E4726D6FEF300E7A86A /* ConsoleLogger.swift */, - ); - name = other_plugins; - path = Examples/other_plugins; - sourceTree = ""; - }; - 823479E529F1A8280051BC99 /* Policies */ = { - isa = PBXGroup; - children = ( - 823479E629F1A8280051BC99 /* FlushPolicy.swift */, - 823479E729F1A8280051BC99 /* IntervalBasedFlushPolicy.swift */, - 823479E829F1A8280051BC99 /* CountBasedFlushPolicy.swift */, - ); - path = Policies; - sourceTree = ""; - }; - 96208624256DC23F00314F8D /* Frameworks */ = { - isa = PBXGroup; - children = ( - 962086482579CCC200314F8D /* Cocoa.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - 9620864E257AA82900314F8D /* Plugins */ = { - isa = PBXGroup; - children = ( - 969A533D25B0D510009227D9 /* Platforms */, - 46A018C125E5857D00F9CCD8 /* Context.swift */, - 9692726725A583A6009B5298 /* SegmentDestination.swift */, - 46210835260BBEE400EBC4A8 /* DeviceToken.swift */, - 46031D64266E7C10009BA540 /* StartupQueue.swift */, - 759D6CD027B48ABB00AB900A /* DestinationMetadataPlugin.swift */, - ); - path = Plugins; - sourceTree = ""; - }; - 969A533D25B0D510009227D9 /* Platforms */ = { - isa = PBXGroup; - children = ( - 46A018D825E97FCB00F9CCD8 /* Vendors */, - 460227402612984100A9E913 /* watchOS */, - 969A533E25B0D51A009227D9 /* iOS */, - 969A534125B0D52D009227D9 /* Linux */, - 969A534025B0D527009227D9 /* Mac */, - ); - path = Platforms; - sourceTree = ""; - }; - 969A533E25B0D51A009227D9 /* iOS */ = { - isa = PBXGroup; - children = ( - 9620864F257AA83E00314F8D /* iOSLifecycleMonitor.swift */, - 46022763261E64A800A9E913 /* iOSLifecycleEvents.swift */, - 4602276B261E7BF900A9E913 /* iOSDelegation.swift */, - ); - path = iOS; - sourceTree = ""; - }; - 969A534025B0D527009227D9 /* Mac */ = { - isa = PBXGroup; - children = ( - 46FE4C9625A3F35E003A7362 /* macOSLifecycleMonitor.swift */, - 96A9624D2810C6B80011DE54 /* macOSLifecycleEvents.swift */, - ); - path = Mac; - sourceTree = ""; - }; - 969A534125B0D52D009227D9 /* Linux */ = { - isa = PBXGroup; - children = ( - 46FE4C9B25A3F41C003A7362 /* LinuxLifecycleMonitor.swift */, - ); - path = Linux; - sourceTree = ""; - }; - A31A16A325780A8D00C9CDDF /* Utilities */ = { - isa = PBXGroup; - children = ( - 823479E529F1A8280051BC99 /* Policies */, - 460FF30A29BA525900635FF9 /* Logging.swift */, - 967C40ED259A7311008EB0B6 /* HTTPClient.swift */, - A31A16A425780E8D00C9CDDF /* JSON.swift */, - A3AEE1492580208E002386EB /* iso8601.swift */, - 46FE4CDF25A53FAD003A7362 /* Storage.swift */, - 4621080B2605332D00EBC4A8 /* KeyPath.swift */, - 466EC2CD28FB7D5D001B384E /* OutputFileStream.swift */, - 46022770261F7A4800A9E913 /* Atomic.swift */, - 46E382E62654429A00BA2502 /* Utils.swift */, - 4663C728267A799100ADDD1A /* QueueTimer.swift */, - ); - path = Utilities; - sourceTree = ""; - }; - OBJ_10 /* Tests */ = { - isa = PBXGroup; - children = ( - OBJ_11 /* Segment-Tests */, - ); - name = Tests; - sourceTree = SOURCE_ROOT; - }; - OBJ_11 /* Segment-Tests */ = { - isa = PBXGroup; - children = ( - 823479ED29F1A8910051BC99 /* FlushPolicy_Tests.swift */, - 823479EC29F1A8910051BC99 /* MemoryLeak_Tests.swift */, - OBJ_12 /* Analytics_Tests.swift */, - 4658175325BA4C20006B2809 /* HTTPClient_Tests.swift */, - A31A16502576C47400C9CDDF /* JSON_Tests.swift */, - 46210810260538BE00EBC4A8 /* KeyPath_Tests.swift */, - 46F7485F26C720F60042798E /* ObjC_Tests.swift */, - 46FE4D1C25A7A850003A7362 /* Storage_Tests.swift */, - 46B1AC6827346D3D00846DE8 /* StressTests.swift */, - 4621082D2609206D00EBC4A8 /* Support */, - 96DBF37A26F39B5500724B0B /* Timeline_Tests.swift */, - OBJ_13 /* XCTestManifests.swift */, - 96A9668827BC137F00078F8B /* iOSLifecycle_Tests.swift */, - ); - name = "Segment-Tests"; - path = "Tests/Segment-Tests"; - sourceTree = SOURCE_ROOT; - }; - OBJ_14 /* Products */ = { - isa = PBXGroup; - children = ( - "Segment::Segment::Product" /* Segment.framework */, - "Segment::Segment-Tests::Product" /* Segment-Tests.xctest */, - ); - name = Products; - sourceTree = BUILT_PRODUCTS_DIR; - }; - OBJ_5 = { - isa = PBXGroup; - children = ( - 46D98E3B26D6FED300E7A86A /* Examples */, - OBJ_7 /* Sources */, - OBJ_10 /* Tests */, - OBJ_6 /* Package.swift */, - OBJ_17 /* README.md */, - OBJ_14 /* Products */, - 96208624256DC23F00314F8D /* Frameworks */, - ); - sourceTree = ""; - }; - OBJ_7 /* Sources */ = { - isa = PBXGroup; - children = ( - OBJ_8 /* Segment */, - ); - name = Sources; - sourceTree = SOURCE_ROOT; - }; - OBJ_8 /* Segment */ = { - isa = PBXGroup; - children = ( - 465879B52686554400180335 /* ObjC */, - 9620864E257AA82900314F8D /* Plugins */, - A31A16A325780A8D00C9CDDF /* Utilities */, - OBJ_9 /* Analytics.swift */, - A3471FBD256487F000965480 /* Configuration.swift */, - A3AEE1872581A8F1002386EB /* Deprecations.swift */, - 9620862B2575C0C800314F8D /* Events.swift */, - A31A16C225794BEF00C9CDDF /* Plugins.swift */, - 96C33AB0258961F500F3D538 /* Settings.swift */, - 4697A237290341EF00FAE14F /* Errors.swift */, - 9692724D25A4E5B7009B5298 /* Startup.swift */, - A31A162E2576B73F00C9CDDF /* State.swift */, - A31A16252576B6F200C9CDDF /* Timeline.swift */, - A31A16332576B7AF00C9CDDF /* Types.swift */, - A31A16D9257976FB00C9CDDF /* Version.swift */, - ); - name = Segment; - path = Sources/Segment; - sourceTree = SOURCE_ROOT; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - "Segment::Segment" /* Segment */ = { - isa = PBXNativeTarget; - buildConfigurationList = OBJ_19 /* Build configuration list for PBXNativeTarget "Segment" */; - buildPhases = ( - OBJ_22 /* Sources */, - OBJ_24 /* Frameworks */, - 96208627256DC23F00314F8D /* Embed Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Segment; - packageProductDependencies = ( - 462107F12603DA4D00EBC4A8 /* Sovran */, - ); - productName = Segment; - productReference = "Segment::Segment::Product" /* Segment.framework */; - productType = "com.apple.product-type.framework"; - }; - "Segment::Segment-Tests" /* Segment-Tests */ = { - isa = PBXNativeTarget; - buildConfigurationList = OBJ_26 /* Build configuration list for PBXNativeTarget "Segment-Tests" */; - buildPhases = ( - OBJ_29 /* Sources */, - OBJ_32 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - OBJ_34 /* PBXTargetDependency */, - ); - name = "Segment-Tests"; - productName = Segment_Tests; - productReference = "Segment::Segment-Tests::Product" /* Segment-Tests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; - "Segment::SwiftPMPackageDescription" /* SegmentPackageDescription */ = { - isa = PBXNativeTarget; - buildConfigurationList = OBJ_36 /* Build configuration list for PBXNativeTarget "SegmentPackageDescription" */; - buildPhases = ( - OBJ_39 /* Sources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = SegmentPackageDescription; - productName = SegmentPackageDescription; - productType = "com.apple.product-type.framework"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - OBJ_1 /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftMigration = 9999; - LastSwiftUpdateCheck = 1220; - LastUpgradeCheck = 1430; - }; - buildConfigurationList = OBJ_2 /* Build configuration list for PBXProject "Segment" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = OBJ_5; - packageReferences = ( - 462107F02603DA4D00EBC4A8 /* XCRemoteSwiftPackageReference "Sovran-Swift" */, - ); - productRefGroup = OBJ_14 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - "Segment::Segment" /* Segment */, - "Segment::Segment-Tests" /* Segment-Tests */, - "Segment::SwiftPMPackageDescription" /* SegmentPackageDescription */, - "Segment::SegmentPackageTests::ProductTarget" /* SegmentPackageTests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXSourcesBuildPhase section */ - OBJ_22 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 0; - files = ( - A3AEE14A2580208E002386EB /* iso8601.swift in Sources */, - 46A018EE25E9A74F00F9CCD8 /* VendorSystem.swift in Sources */, - 46FE4CE025A53FAD003A7362 /* Storage.swift in Sources */, - 465879BA2686560C00180335 /* watchOSDelegation.swift in Sources */, - 46022764261E64A800A9E913 /* iOSLifecycleEvents.swift in Sources */, - 96A9624E2810C6B80011DE54 /* macOSLifecycleEvents.swift in Sources */, - 460FF30B29BA525900635FF9 /* Logging.swift in Sources */, - 4621080C2605332D00EBC4A8 /* KeyPath.swift in Sources */, - A31A16262576B6F200C9CDDF /* Timeline.swift in Sources */, - 96C33AB1258961F500F3D538 /* Settings.swift in Sources */, - 46E382E72654429A00BA2502 /* Utils.swift in Sources */, - A31A16B225781CB400C9CDDF /* JSON.swift in Sources */, - 46022771261F7A4800A9E913 /* Atomic.swift in Sources */, - 823479EB29F1A8280051BC99 /* CountBasedFlushPolicy.swift in Sources */, - 46F7485D26C718710042798E /* ObjCAnalytics.swift in Sources */, - A3471FBE256487F000965480 /* Configuration.swift in Sources */, - OBJ_23 /* Analytics.swift in Sources */, - A31A16342576B7AF00C9CDDF /* Types.swift in Sources */, - 46A018DA25E97FDF00F9CCD8 /* AppleUtils.swift in Sources */, - 4689231429F7391500AB26E5 /* ObjCEvents.swift in Sources */, - A31A16E12579779600C9CDDF /* Version.swift in Sources */, - 46210836260BBEE400EBC4A8 /* DeviceToken.swift in Sources */, - 823479E929F1A8280051BC99 /* FlushPolicy.swift in Sources */, - 9692724E25A4E5B7009B5298 /* Startup.swift in Sources */, - 4663C729267A799100ADDD1A /* QueueTimer.swift in Sources */, - 4689231329F7391500AB26E5 /* ObjCPlugin.swift in Sources */, - 46FE4C9C25A3F41C003A7362 /* LinuxLifecycleMonitor.swift in Sources */, - 460227422612987300A9E913 /* watchOSLifecycleEvents.swift in Sources */, - 46F7485E26C718710042798E /* ObjCConfiguration.swift in Sources */, - 759D6CD127B48ABB00AB900A /* DestinationMetadataPlugin.swift in Sources */, - A31A162F2576B73F00C9CDDF /* State.swift in Sources */, - 9692726825A583A6009B5298 /* SegmentDestination.swift in Sources */, - 4602276C261E7BF900A9E913 /* iOSDelegation.swift in Sources */, - 46A018D425E6C9C200F9CCD8 /* LinuxUtils.swift in Sources */, - 466EC2CE28FB7D5D001B384E /* OutputFileStream.swift in Sources */, - 46FE4C9725A3F35E003A7362 /* macOSLifecycleMonitor.swift in Sources */, - 9620862C2575C0C800314F8D /* Events.swift in Sources */, - 823479EA29F1A8280051BC99 /* IntervalBasedFlushPolicy.swift in Sources */, - A3AEE1882581A8F1002386EB /* Deprecations.swift in Sources */, - 966945D7259BDCDD00271339 /* HTTPClient.swift in Sources */, - A31A16CA25794D9700C9CDDF /* Plugins.swift in Sources */, - 46A018C225E5857D00F9CCD8 /* Context.swift in Sources */, - 4697A238290341EF00FAE14F /* Errors.swift in Sources */, - 96208650257AA83E00314F8D /* iOSLifecycleMonitor.swift in Sources */, - 46031D65266E7C10009BA540 /* StartupQueue.swift in Sources */, - 465879BB2686560C00180335 /* watchOSLifecycleMonitor.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - OBJ_29 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 0; - files = ( - 96DBF37B26F39B5500724B0B /* Timeline_Tests.swift in Sources */, - OBJ_30 /* Analytics_Tests.swift in Sources */, - 46F7486026C720F60042798E /* ObjC_Tests.swift in Sources */, - OBJ_31 /* XCTestManifests.swift in Sources */, - 823479EF29F1A8910051BC99 /* FlushPolicy_Tests.swift in Sources */, - 46B1AC6927346D3D00846DE8 /* StressTests.swift in Sources */, - 823479EE29F1A8910051BC99 /* MemoryLeak_Tests.swift in Sources */, - 4658175425BA4C20006B2809 /* HTTPClient_Tests.swift in Sources */, - 46210811260538BE00EBC4A8 /* KeyPath_Tests.swift in Sources */, - 96A9668927BC137F00078F8B /* iOSLifecycle_Tests.swift in Sources */, - A31A16512576C47400C9CDDF /* JSON_Tests.swift in Sources */, - 46FE4D1D25A7A850003A7362 /* Storage_Tests.swift in Sources */, - 46FE4CFB25A6C671003A7362 /* TestUtilities.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - OBJ_39 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 0; - files = ( - OBJ_40 /* Package.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - OBJ_34 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = "Segment::Segment" /* Segment */; - targetProxy = A3471FB7256487B500965480 /* PBXContainerItemProxy */; - }; - OBJ_45 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = "Segment::Segment-Tests" /* Segment-Tests */; - targetProxy = A3471FBB256487B700965480 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - OBJ_20 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUILD_LIBRARY_FOR_DISTRIBUTION = YES; - DEAD_CODE_STRIPPING = YES; - ENABLE_TESTABILITY = YES; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PLATFORM_DIR)/Developer/Library/Frameworks", - ); - HEADER_SEARCH_PATHS = "$(inherited)"; - INFOPLIST_FILE = Segment.xcodeproj/Segment_Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "$(TOOLCHAIN_DIR)/usr/lib/swift/macosx", - ); - MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 5.0.0; - OTHER_CFLAGS = "$(inherited)"; - OTHER_LDFLAGS = "$(inherited)"; - OTHER_SWIFT_FLAGS = "$(inherited)"; - PRODUCT_BUNDLE_IDENTIFIER = Segment; - PRODUCT_MODULE_NAME = "$(TARGET_NAME:c99extidentifier)"; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator"; - SUPPORTS_MACCATALYST = YES; - SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited)"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2,3,4"; - TARGET_NAME = Segment; - }; - name = Debug; - }; - OBJ_21 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUILD_LIBRARY_FOR_DISTRIBUTION = YES; - DEAD_CODE_STRIPPING = YES; - ENABLE_TESTABILITY = YES; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PLATFORM_DIR)/Developer/Library/Frameworks", - ); - HEADER_SEARCH_PATHS = "$(inherited)"; - INFOPLIST_FILE = Segment.xcodeproj/Segment_Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "$(TOOLCHAIN_DIR)/usr/lib/swift/macosx", - ); - MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 5.0.0; - OTHER_CFLAGS = "$(inherited)"; - OTHER_LDFLAGS = "$(inherited)"; - OTHER_SWIFT_FLAGS = "$(inherited)"; - PRODUCT_BUNDLE_IDENTIFIER = Segment; - PRODUCT_MODULE_NAME = "$(TARGET_NAME:c99extidentifier)"; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator"; - SUPPORTS_MACCATALYST = YES; - SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited)"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2,3,4"; - TARGET_NAME = Segment; - }; - name = Release; - }; - OBJ_27 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - CLANG_ENABLE_MODULES = YES; - DEAD_CODE_STRIPPING = YES; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PLATFORM_DIR)/Developer/Library/Frameworks", - ); - HEADER_SEARCH_PATHS = "$(inherited)"; - INFOPLIST_FILE = Segment.xcodeproj/Segment_Tests_Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@loader_path/../Frameworks", - "@loader_path/Frameworks", - ); - MACOSX_DEPLOYMENT_TARGET = 11.0; - OTHER_CFLAGS = "$(inherited)"; - OTHER_LDFLAGS = "$(inherited)"; - OTHER_SWIFT_FLAGS = "$(inherited)"; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited)"; - SWIFT_VERSION = 5.0; - TARGET_NAME = "Segment-Tests"; - }; - name = Debug; - }; - OBJ_28 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - CLANG_ENABLE_MODULES = YES; - DEAD_CODE_STRIPPING = YES; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PLATFORM_DIR)/Developer/Library/Frameworks", - ); - HEADER_SEARCH_PATHS = "$(inherited)"; - INFOPLIST_FILE = Segment.xcodeproj/Segment_Tests_Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@loader_path/../Frameworks", - "@loader_path/Frameworks", - ); - MACOSX_DEPLOYMENT_TARGET = 11.0; - OTHER_CFLAGS = "$(inherited)"; - OTHER_LDFLAGS = "$(inherited)"; - OTHER_SWIFT_FLAGS = "$(inherited)"; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited)"; - SWIFT_VERSION = 5.0; - TARGET_NAME = "Segment-Tests"; - }; - name = Release; - }; - OBJ_3 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_OBJC_ARC = 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_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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COMBINE_HIDPI_IMAGES = YES; - COPY_PHASE_STRIP = NO; - DEAD_CODE_STRIPPING = YES; - DEBUG_INFORMATION_FORMAT = dwarf; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_NS_ASSERTIONS = YES; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "$(inherited)", - "SWIFT_PACKAGE=1", - "DEBUG=1", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; - MACOSX_DEPLOYMENT_TARGET = 10.15; - ONLY_ACTIVE_ARCH = YES; - OTHER_SWIFT_FLAGS = "$(inherited) -DXcode"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - SUPPORTED_PLATFORMS = "macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator"; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) SWIFT_PACKAGE DEBUG"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - TVOS_DEPLOYMENT_TARGET = 12.0; - USE_HEADERMAP = NO; - WATCHOS_DEPLOYMENT_TARGET = 7.1; - }; - name = Debug; - }; - OBJ_37 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - DEAD_CODE_STRIPPING = YES; - LD = /usr/bin/true; - OTHER_SWIFT_FLAGS = "-swift-version 5 -I $(TOOLCHAIN_DIR)/usr/lib/swift/pm/4_2 -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -package-description-version 5.3.0"; - SWIFT_VERSION = 5.0; - }; - name = Debug; - }; - OBJ_38 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - DEAD_CODE_STRIPPING = YES; - LD = /usr/bin/true; - OTHER_SWIFT_FLAGS = "-swift-version 5 -I $(TOOLCHAIN_DIR)/usr/lib/swift/pm/4_2 -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -package-description-version 5.3.0"; - SWIFT_VERSION = 5.0; - }; - name = Release; - }; - OBJ_4 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_OBJC_ARC = 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_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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COMBINE_HIDPI_IMAGES = YES; - COPY_PHASE_STRIP = YES; - DEAD_CODE_STRIPPING = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = s; - GCC_PREPROCESSOR_DEFINITIONS = ( - "$(inherited)", - "SWIFT_PACKAGE=1", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; - MACOSX_DEPLOYMENT_TARGET = 10.15; - OTHER_SWIFT_FLAGS = "$(inherited) -DXcode"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - SUPPORTED_PLATFORMS = "macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator"; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) SWIFT_PACKAGE"; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - SWIFT_VERSION = 5.0; - TVOS_DEPLOYMENT_TARGET = 12.0; - USE_HEADERMAP = NO; - WATCHOS_DEPLOYMENT_TARGET = 7.1; - }; - name = Release; - }; - OBJ_43 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - DEAD_CODE_STRIPPING = YES; - }; - name = Debug; - }; - OBJ_44 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - DEAD_CODE_STRIPPING = YES; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - OBJ_19 /* Build configuration list for PBXNativeTarget "Segment" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - OBJ_20 /* Debug */, - OBJ_21 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - OBJ_2 /* Build configuration list for PBXProject "Segment" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - OBJ_3 /* Debug */, - OBJ_4 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - OBJ_26 /* Build configuration list for PBXNativeTarget "Segment-Tests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - OBJ_27 /* Debug */, - OBJ_28 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - OBJ_36 /* Build configuration list for PBXNativeTarget "SegmentPackageDescription" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - OBJ_37 /* Debug */, - OBJ_38 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - OBJ_42 /* Build configuration list for PBXAggregateTarget "SegmentPackageTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - OBJ_43 /* Debug */, - OBJ_44 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - -/* Begin XCRemoteSwiftPackageReference section */ - 462107F02603DA4D00EBC4A8 /* XCRemoteSwiftPackageReference "Sovran-Swift" */ = { - isa = XCRemoteSwiftPackageReference; - repositoryURL = "git@github.com:segmentio/Sovran-Swift.git"; - requirement = { - kind = upToNextMajorVersion; - minimumVersion = 1.0.2; - }; - }; -/* End XCRemoteSwiftPackageReference section */ - -/* Begin XCSwiftPackageProductDependency section */ - 462107F12603DA4D00EBC4A8 /* Sovran */ = { - isa = XCSwiftPackageProductDependency; - package = 462107F02603DA4D00EBC4A8 /* XCRemoteSwiftPackageReference "Sovran-Swift" */; - productName = Sovran; - }; -/* End XCSwiftPackageProductDependency section */ - }; - rootObject = OBJ_1 /* Project object */; -} diff --git a/Segment.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Segment.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a6..00000000 --- a/Segment.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/Segment.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Segment.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d98100..00000000 --- a/Segment.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/Segment.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/Segment.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings deleted file mode 100644 index a72dc2b4..00000000 --- a/Segment.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded - - - \ No newline at end of file diff --git a/Segment.xcodeproj/xcshareddata/xcbaselines/Segment::Segment-Tests.xcbaseline/528FAAE0-8FE6-4D52-9122-49AD0CBB2625.plist b/Segment.xcodeproj/xcshareddata/xcbaselines/Segment::Segment-Tests.xcbaseline/528FAAE0-8FE6-4D52-9122-49AD0CBB2625.plist deleted file mode 100644 index efaa1a83..00000000 --- a/Segment.xcodeproj/xcshareddata/xcbaselines/Segment::Segment-Tests.xcbaseline/528FAAE0-8FE6-4D52-9122-49AD0CBB2625.plist +++ /dev/null @@ -1,42 +0,0 @@ - - - - - classNames - - KeyPath_Tests - - testKeyPathBasics() - - com.apple.XCTPerformanceMetric_WallClockTime - - baselineAverage - 4.5591e-05 - baselineIntegrationDisplayName - Local Baseline - - - testKeyPathSpeed() - - com.apple.XCTPerformanceMetric_WallClockTime - - baselineAverage - 0.00238 - baselineIntegrationDisplayName - Local Baseline - - - testValueForKeyPathSpeed() - - com.apple.XCTPerformanceMetric_WallClockTime - - baselineAverage - 0.00115 - baselineIntegrationDisplayName - Local Baseline - - - - - - diff --git a/Segment.xcodeproj/xcshareddata/xcschemes/Segment-Package.xcscheme b/Segment.xcodeproj/xcshareddata/xcschemes/Segment-Package.xcscheme deleted file mode 100644 index 2ab81b19..00000000 --- a/Segment.xcodeproj/xcshareddata/xcschemes/Segment-Package.xcscheme +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/build.sh b/build.sh index 21f4b154..2ed8d760 100755 --- a/build.sh +++ b/build.sh @@ -1,115 +1,26 @@ #!/bin/zsh -# Set Project name -# These are the only variables that need to be set per-project, the rest -# is very generic and should work for most things. -PROJECT_NAME="Segment" -SCHEME_NAME="Segment-Package" - -# Your PROJECT_NAME.xcodeproj should include schemes for -# iOS -# tvOS -# watchOS -# macOS -# Mac Catalyst - -XCFRAMEWORK_OUTPUT_PATH="./XCFrameworkOutput" - -# clean up old releases -echo "Removing previous ${PROJECT_NAME}.xcframework.zip" -rm -rf ${PROJECT_NAME}.xcframework.zip -rm -rf ${PROJECT_NAME}.xcframework -rm -rf ${XCFRAMEWORK_OUTPUT_PATH} - -mkdir "${XCFRAMEWORK_OUTPUT_PATH}" -echo "Created ${XCFRAMEWORK_OUTPUT_PATH}" - -# iOS Related Slices -echo "Building iOS Slices ..." -xcodebuild archive \ --scheme "${SCHEME_NAME}" \ --destination "generic/platform=iOS" \ --archivePath "${XCFRAMEWORK_OUTPUT_PATH}/iOS" \ -SKIP_INSTALL=NO \ -BUILD_LIBRARY_FOR_DISTRIBUTION=YES - -xcodebuild archive \ -ONLY_ACTIVE_ARCH=NO \ --scheme "${SCHEME_NAME}" \ --destination "generic/platform=iOS Simulator" \ --archivePath "${XCFRAMEWORK_OUTPUT_PATH}/iOSSimulator" \ -SKIP_INSTALL=NO \ -BUILD_LIBRARY_FOR_DISTRIBUTION=YES - -# tvOS Related Slices -echo "Building tvOS Slices ..." -xcodebuild archive \ --scheme "${SCHEME_NAME}" \ --destination "generic/platform=tvOS" \ --archivePath "${XCFRAMEWORK_OUTPUT_PATH}/tvOS" \ -SKIP_INSTALL=NO \ -BUILD_LIBRARY_FOR_DISTRIBUTION=YES - -xcodebuild archive \ -ONLY_ACTIVE_ARCH=NO \ --scheme "${SCHEME_NAME}" \ --destination "generic/platform=tvOS Simulator" \ --archivePath "${XCFRAMEWORK_OUTPUT_PATH}/tvOSSimulator" \ -SKIP_INSTALL=NO \ -BUILD_LIBRARY_FOR_DISTRIBUTION=YES - -# watchOS Related Slices -echo "Building watchOS Slices ..." -xcodebuild archive \ --scheme "${SCHEME_NAME}" \ --destination "generic/platform=watchOS" \ --archivePath "${XCFRAMEWORK_OUTPUT_PATH}/watchOS" \ -SKIP_INSTALL=NO \ -BUILD_LIBRARY_FOR_DISTRIBUTION=YES - -xcodebuild archive \ -ONLY_ACTIVE_ARCH=NO \ --scheme "${SCHEME_NAME}" \ --destination "generic/platform=watchOS Simulator" \ --archivePath "${XCFRAMEWORK_OUTPUT_PATH}/watchOSSimulator" \ -SKIP_INSTALL=NO \ -BUILD_LIBRARY_FOR_DISTRIBUTION=YES - -# macOS Related Slices -echo "Building macOS Slices ..." - -xcodebuild archive \ -ONLY_ACTIVE_ARCH=NO \ --scheme "${SCHEME_NAME}" \ --destination "generic/platform=macOS" \ --archivePath "${XCFRAMEWORK_OUTPUT_PATH}/macOS" \ -SKIP_INSTALL=NO \ -BUILD_LIBRARY_FOR_DISTRIBUTION=YES - -xcodebuild archive \ -ONLY_ACTIVE_ARCH=NO \ --scheme "${SCHEME_NAME}" \ --destination "generic/platform=macOS,variant=Mac Catalyst,name=Any Mac" \ --archivePath "${XCFRAMEWORK_OUTPUT_PATH}/macOSCatalyst" \ -SKIP_INSTALL=NO \ -BUILD_LIBRARY_FOR_DISTRIBUTION=YES - -# Combine all the slices into XCFramework -echo "Combining Slices into XCFramework ..." -xcodebuild -create-xcframework \ --framework ./${XCFRAMEWORK_OUTPUT_PATH}/iOS.xcarchive/Products/Library/Frameworks/${PROJECT_NAME}.framework \ --framework ./${XCFRAMEWORK_OUTPUT_PATH}/iOSSimulator.xcarchive/Products/Library/Frameworks/${PROJECT_NAME}.framework \ --framework ./${XCFRAMEWORK_OUTPUT_PATH}/tvOS.xcarchive/Products/Library/Frameworks/${PROJECT_NAME}.framework \ --framework ./${XCFRAMEWORK_OUTPUT_PATH}/tvOSSimulator.xcarchive/Products/Library/Frameworks/${PROJECT_NAME}.framework \ --framework ./${XCFRAMEWORK_OUTPUT_PATH}/watchOS.xcarchive/Products/Library/Frameworks/${PROJECT_NAME}.framework \ --framework ./${XCFRAMEWORK_OUTPUT_PATH}/watchOSSimulator.xcarchive/Products/Library/Frameworks/${PROJECT_NAME}.framework \ --framework ./${XCFRAMEWORK_OUTPUT_PATH}/macOS.xcarchive/Products/Library/Frameworks/${PROJECT_NAME}.framework \ --framework ./${XCFRAMEWORK_OUTPUT_PATH}/macOSCatalyst.xcarchive/Products/Library/Frameworks/${PROJECT_NAME}.framework \ --output "./${XCFRAMEWORK_OUTPUT_PATH}/${PROJECT_NAME}.xcframework" - -# Zip it up! - -echo "Zipping up ${PROJECT_NAME}.xcframework ..." -zip -r ${PROJECT_NAME}.xcframework.zip "./${XCFRAMEWORK_OUTPUT_PATH}/${PROJECT_NAME}.xcframework" - -echo "Done." +# check if `swift-create-xcframework` tool is installed. +# command will return non-zero if not. +if ! command -v swift-create-xcframework &> /dev/null +then + echo "Swift's create-xcframework tool is required, but could not be found." + echo "Install it via:" + echo " $ brew install mint" + echo " $ mint install unsignedapps/swift-create-xcframework" + echo "" + exit 1 +fi + +echo "Removing old files ..." + +rm Segment.zip +rm Sovran.zip +rm Segment.sha256 +rm Sovran.sha256 + +echo "Building XCFrameworks ..." + +swift create-xcframework --clean --platform ios --platform macos --platform maccatalyst --platform tvos --platform watchos --stack-evolution --zip Segment Sovran + +echo "Done." \ No newline at end of file diff --git a/release.sh b/release.sh index 1b44863d..b36f6c5e 100755 --- a/release.sh +++ b/release.sh @@ -44,6 +44,18 @@ then exit 1 fi +# check if `swift-create-xcframework` tool is installed. +# command will return non-zero if not. +if ! command -v swift-create-xcframework &> /dev/null +then + echo "Swift's create-xcframework tool is required, but could not be found." + echo "Install it via:" + echo " $ brew install mint" + echo " $ mint install unsignedapps/swift-create-xcframework" + echo "" + exit 1 +fi + # check if `gh` tool has auth access. # command will return non-zero if not auth'd. authd=$(gh auth status -t) @@ -132,4 +144,9 @@ rm $tempFile ./build.sh # upload the release -gh release upload $newVersion ${PRODUCT_NAME}.xcframework.zip +gh release upload $newVersion ${PRODUCT_NAME}.zip +gh release upload $newVersion ${PRODUCT_NAME}.sha256 + +# SPECIAL CASE: We need to upload Sovran to save them time. +gh release upload $newVersion Sovran.zip +gh release upload $newVersion Sovran.sha256