diff --git a/.gitignore b/.gitignore index 5cd0648..e8189e2 100644 --- a/.gitignore +++ b/.gitignore @@ -22,7 +22,8 @@ DerivedData # Bundler .bundle -Carthage +IDEWorkspaceChecks.plist +Carthage/ # We recommend against adding the Pods directory to your .gitignore. However # you should judge for yourself, the pros and cons are mentioned at: # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control diff --git a/Cartfile b/Cartfile new file mode 100644 index 0000000..7d95457 --- /dev/null +++ b/Cartfile @@ -0,0 +1,2 @@ +github "segmentio/analytics-ios" "4.1.2" +github "Leanplum/Leanplum-iOS-SDK" diff --git a/Cartfile.resolved b/Cartfile.resolved new file mode 100644 index 0000000..c5da0a5 --- /dev/null +++ b/Cartfile.resolved @@ -0,0 +1,2 @@ +github "Leanplum/Leanplum-iOS-SDK" "3.1.2" +github "segmentio/analytics-ios" "4.1.2" diff --git a/Example/Podfile.lock b/Example/Podfile.lock index 54e2b94..31b42e0 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -1,7 +1,7 @@ PODS: - Analytics (4.1.2) - Leanplum-iOS-SDK (3.1.0) - - LeanplumSegment (1.1.4-beta9): + - LeanplumSegment (1.1.4): - Analytics (~> 4) - Leanplum-iOS-SDK (~> 3) - OCMock (3.2.2) @@ -23,9 +23,9 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: Analytics: 177da2c597aba83a6882b706ca6e0a071fd7cd26 Leanplum-iOS-SDK: c3d3996abb695cb971ba0793dd20c25934126871 - LeanplumSegment: ee7cbc02a488abd2ea0d4775beb02364c2d76ffe + LeanplumSegment: 960982b29927cc87624eaf6550633db22d67fc80 OCMock: 18c9b7e67d4c2770e95bb77a9cc1ae0c91fe3835 PODFILE CHECKSUM: a870d03dd5ee7b5663f0331a66c22f3028ff4103 -COCOAPODS: 1.10.0 +COCOAPODS: 1.10.1 diff --git a/LeanplumSegment.podspec b/LeanplumSegment.podspec index 60dfbb6..dc9a9e8 100644 --- a/LeanplumSegment.podspec +++ b/LeanplumSegment.podspec @@ -22,7 +22,7 @@ Pod::Spec.new do |s| s.source = { :git => "https://github.com/Leanplum/Leanplum-Segment-iOS.git", :tag => s.version.to_s } - s.source_files = 'Pod/Classes/**/*' + s.source_files = 'LeanplumSegment/Classes/**/*' s.dependency 'Analytics', '~> 4' s.dependency 'Leanplum-iOS-SDK', '~> 3' diff --git a/LeanplumSegment.xcodeproj/project.pbxproj b/LeanplumSegment.xcodeproj/project.pbxproj new file mode 100644 index 0000000..823f58b --- /dev/null +++ b/LeanplumSegment.xcodeproj/project.pbxproj @@ -0,0 +1,405 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 52; + objects = { + +/* Begin PBXBuildFile section */ + 2E5AC043264BF99200A5920C /* Segment.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2E5AC042264BF99200A5920C /* Segment.framework */; }; + 2E5AC046264BF9AF00A5920C /* Leanplum.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2E5AC045264BF9AF00A5920C /* Leanplum.xcframework */; }; + 2E5AC047264BF9AF00A5920C /* Leanplum.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 2E5AC045264BF9AF00A5920C /* Leanplum.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 2EB48F652642F50E006F2F7D /* LeanplumSegment.h in Headers */ = {isa = PBXBuildFile; fileRef = 2EB48F632642F50E006F2F7D /* LeanplumSegment.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 2EB48F842642F572006F2F7D /* SEGLeanplumIntegrationFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = 2EB48F7E2642F572006F2F7D /* SEGLeanplumIntegrationFactory.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 2EB48F862642F572006F2F7D /* SEGLeanplumIntegration.h in Headers */ = {isa = PBXBuildFile; fileRef = 2EB48F802642F572006F2F7D /* SEGLeanplumIntegration.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 2EB48F872642F572006F2F7D /* SEGLeanplumIntegrationFactory.m in Sources */ = {isa = PBXBuildFile; fileRef = 2EB48F812642F572006F2F7D /* SEGLeanplumIntegrationFactory.m */; }; + 2EB48F892642F572006F2F7D /* SEGLeanplumIntegration.m in Sources */ = {isa = PBXBuildFile; fileRef = 2EB48F832642F572006F2F7D /* SEGLeanplumIntegration.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 2E5AC048264BF9AF00A5920C /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + 2E5AC047264BF9AF00A5920C /* Leanplum.xcframework in Embed Frameworks */, + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 2E5AC042264BF99200A5920C /* Segment.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Segment.framework; path = Carthage/Build/iOS/Segment.framework; sourceTree = ""; }; + 2E5AC045264BF9AF00A5920C /* Leanplum.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = Leanplum.xcframework; path = Carthage/Build/Leanplum.xcframework; sourceTree = ""; }; + 2EB48F602642F50E006F2F7D /* LeanplumSegment.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = LeanplumSegment.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 2EB48F632642F50E006F2F7D /* LeanplumSegment.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LeanplumSegment.h; sourceTree = ""; }; + 2EB48F642642F50E006F2F7D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 2EB48F7E2642F572006F2F7D /* SEGLeanplumIntegrationFactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SEGLeanplumIntegrationFactory.h; sourceTree = ""; }; + 2EB48F802642F572006F2F7D /* SEGLeanplumIntegration.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SEGLeanplumIntegration.h; sourceTree = ""; }; + 2EB48F812642F572006F2F7D /* SEGLeanplumIntegrationFactory.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SEGLeanplumIntegrationFactory.m; sourceTree = ""; }; + 2EB48F832642F572006F2F7D /* SEGLeanplumIntegration.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SEGLeanplumIntegration.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 2EB48F5D2642F50E006F2F7D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 2E5AC043264BF99200A5920C /* Segment.framework in Frameworks */, + 2E5AC046264BF9AF00A5920C /* Leanplum.xcframework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 2EB48F562642F50E006F2F7D = { + isa = PBXGroup; + children = ( + 2EB48F622642F50E006F2F7D /* LeanplumSegment */, + 2EB48F612642F50E006F2F7D /* Products */, + 2EB48F912642F950006F2F7D /* Frameworks */, + ); + sourceTree = ""; + }; + 2EB48F612642F50E006F2F7D /* Products */ = { + isa = PBXGroup; + children = ( + 2EB48F602642F50E006F2F7D /* LeanplumSegment.framework */, + ); + name = Products; + sourceTree = ""; + }; + 2EB48F622642F50E006F2F7D /* LeanplumSegment */ = { + isa = PBXGroup; + children = ( + 2EB48F7D2642F572006F2F7D /* Classes */, + 2EB48F6D2642F52E006F2F7D /* Resources */, + ); + path = LeanplumSegment; + sourceTree = ""; + }; + 2EB48F6D2642F52E006F2F7D /* Resources */ = { + isa = PBXGroup; + children = ( + 2EB48F632642F50E006F2F7D /* LeanplumSegment.h */, + 2EB48F642642F50E006F2F7D /* Info.plist */, + ); + path = Resources; + sourceTree = ""; + }; + 2EB48F7D2642F572006F2F7D /* Classes */ = { + isa = PBXGroup; + children = ( + 2EB48F802642F572006F2F7D /* SEGLeanplumIntegration.h */, + 2EB48F832642F572006F2F7D /* SEGLeanplumIntegration.m */, + 2EB48F7E2642F572006F2F7D /* SEGLeanplumIntegrationFactory.h */, + 2EB48F812642F572006F2F7D /* SEGLeanplumIntegrationFactory.m */, + ); + path = Classes; + sourceTree = ""; + }; + 2EB48F912642F950006F2F7D /* Frameworks */ = { + isa = PBXGroup; + children = ( + 2E5AC045264BF9AF00A5920C /* Leanplum.xcframework */, + 2E5AC042264BF99200A5920C /* Segment.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 2EB48F5B2642F50E006F2F7D /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 2EB48F652642F50E006F2F7D /* LeanplumSegment.h in Headers */, + 2EB48F862642F572006F2F7D /* SEGLeanplumIntegration.h in Headers */, + 2EB48F842642F572006F2F7D /* SEGLeanplumIntegrationFactory.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 2EB48F5F2642F50E006F2F7D /* LeanplumSegment */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2EB48F682642F50E006F2F7D /* Build configuration list for PBXNativeTarget "LeanplumSegment" */; + buildPhases = ( + 2EB48F5B2642F50E006F2F7D /* Headers */, + 2EB48F5C2642F50E006F2F7D /* Sources */, + 2EB48F5D2642F50E006F2F7D /* Frameworks */, + 2EB48F5E2642F50E006F2F7D /* Resources */, + 2E5AC048264BF9AF00A5920C /* Embed Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = LeanplumSegment; + productName = LeanplumSegment; + productReference = 2EB48F602642F50E006F2F7D /* LeanplumSegment.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 2EB48F572642F50E006F2F7D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1220; + TargetAttributes = { + 2EB48F5F2642F50E006F2F7D = { + CreatedOnToolsVersion = 12.2; + }; + }; + }; + buildConfigurationList = 2EB48F5A2642F50E006F2F7D /* Build configuration list for PBXProject "LeanplumSegment" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 2EB48F562642F50E006F2F7D; + productRefGroup = 2EB48F612642F50E006F2F7D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 2EB48F5F2642F50E006F2F7D /* LeanplumSegment */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 2EB48F5E2642F50E006F2F7D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 2EB48F5C2642F50E006F2F7D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2EB48F892642F572006F2F7D /* SEGLeanplumIntegration.m in Sources */, + 2EB48F872642F572006F2F7D /* SEGLeanplumIntegrationFactory.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 2EB48F662642F50E006F2F7D /* 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; + CURRENT_PROJECT_VERSION = 1; + 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 = 12.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 2EB48F672642F50E006F2F7D /* 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; + CURRENT_PROJECT_VERSION = 1; + 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 = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 2EB48F692642F50E006F2F7D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Carthage/Build/iOS", + ); + INFOPLIST_FILE = "$(SRCROOT)/LeanplumSegment/Resources/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MARKETING_VERSION = 1.1.4; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_BUNDLE_IDENTIFIER = com.leanplum.LeanplumSegment; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 2EB48F6A2642F50E006F2F7D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Carthage/Build/iOS", + ); + INFOPLIST_FILE = "$(SRCROOT)/LeanplumSegment/Resources/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MARKETING_VERSION = 1.1.4; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_BUNDLE_IDENTIFIER = com.leanplum.LeanplumSegment; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 2EB48F5A2642F50E006F2F7D /* Build configuration list for PBXProject "LeanplumSegment" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2EB48F662642F50E006F2F7D /* Debug */, + 2EB48F672642F50E006F2F7D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2EB48F682642F50E006F2F7D /* Build configuration list for PBXNativeTarget "LeanplumSegment" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2EB48F692642F50E006F2F7D /* Debug */, + 2EB48F6A2642F50E006F2F7D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 2EB48F572642F50E006F2F7D /* Project object */; +} diff --git a/LeanplumSegment.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/LeanplumSegment.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/LeanplumSegment.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/LeanplumSegment.xcodeproj/xcshareddata/xcschemes/LeanplumSegment.xcscheme b/LeanplumSegment.xcodeproj/xcshareddata/xcschemes/LeanplumSegment.xcscheme new file mode 100644 index 0000000..743598b --- /dev/null +++ b/LeanplumSegment.xcodeproj/xcshareddata/xcschemes/LeanplumSegment.xcscheme @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/LeanplumSegment.xcworkspace/contents.xcworkspacedata b/LeanplumSegment.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index a0c7d8a..0000000 --- a/LeanplumSegment.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/LeanplumSegment.xcworkspace/xcshareddata/LeanplumSegment.xcscmblueprint b/LeanplumSegment.xcworkspace/xcshareddata/LeanplumSegment.xcscmblueprint deleted file mode 100644 index 120cd09..0000000 --- a/LeanplumSegment.xcworkspace/xcshareddata/LeanplumSegment.xcscmblueprint +++ /dev/null @@ -1,30 +0,0 @@ -{ - "DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "92D8B7662D39822AEF2605EF8DD0FFEA343D4911", - "DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : { - - }, - "DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : { - "01997177D1606B9D0F0EE2EE9E247B51C13A514B" : 9223372036854775807, - "92D8B7662D39822AEF2605EF8DD0FFEA343D4911" : 9223372036854775807 - }, - "DVTSourceControlWorkspaceBlueprintIdentifierKey" : "D2A82D96-EB13-4BBC-BC6E-38582093514B", - "DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : { - "01997177D1606B9D0F0EE2EE9E247B51C13A514B" : "..", - "92D8B7662D39822AEF2605EF8DD0FFEA343D4911" : "Leanplum-Segment-iOS\/" - }, - "DVTSourceControlWorkspaceBlueprintNameKey" : "LeanplumSegment", - "DVTSourceControlWorkspaceBlueprintVersion" : 204, - "DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "LeanplumSegment.xcworkspace", - "DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [ - { - "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "github.com:Leanplum\/SDK.git", - "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", - "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "01997177D1606B9D0F0EE2EE9E247B51C13A514B" - }, - { - "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "github.com:Leanplum\/Leanplum-Segment-iOS.git", - "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", - "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "92D8B7662D39822AEF2605EF8DD0FFEA343D4911" - } - ] -} \ No newline at end of file diff --git a/Pod/Classes/.clang-format b/LeanplumSegment/Classes/.clang-format similarity index 100% rename from Pod/Classes/.clang-format rename to LeanplumSegment/Classes/.clang-format diff --git a/Pod/Classes/.gitkeep b/LeanplumSegment/Classes/.gitkeep similarity index 100% rename from Pod/Classes/.gitkeep rename to LeanplumSegment/Classes/.gitkeep diff --git a/Pod/Classes/SEGLeanplumIntegration.h b/LeanplumSegment/Classes/SEGLeanplumIntegration.h similarity index 100% rename from Pod/Classes/SEGLeanplumIntegration.h rename to LeanplumSegment/Classes/SEGLeanplumIntegration.h diff --git a/Pod/Classes/SEGLeanplumIntegration.m b/LeanplumSegment/Classes/SEGLeanplumIntegration.m similarity index 97% rename from Pod/Classes/SEGLeanplumIntegration.m rename to LeanplumSegment/Classes/SEGLeanplumIntegration.m index 775ff61..fe65d51 100644 --- a/Pod/Classes/SEGLeanplumIntegration.m +++ b/LeanplumSegment/Classes/SEGLeanplumIntegration.m @@ -16,7 +16,7 @@ - (instancetype)initWithSettings:(NSDictionary *)settings NSString *token = [settings objectForKey:@"clientKey"]; bool isDevelopmentMode = [[settings objectForKey:@"devMode"] boolValue]; - if (!appId || appId.length == 0) { + if (appId.length == 0) { @throw([NSException exceptionWithName:@"Leanplum Error" reason:[NSString @@ -25,7 +25,7 @@ - (instancetype)initWithSettings:(NSDictionary *)settings @"Segment settings."] userInfo:nil]); } - if (!token || token.length == 0) { + if (token.length == 0) { @throw([NSException exceptionWithName:@"Leanplum Error" reason:[NSString diff --git a/Pod/Classes/SEGLeanplumIntegrationFactory.h b/LeanplumSegment/Classes/SEGLeanplumIntegrationFactory.h similarity index 100% rename from Pod/Classes/SEGLeanplumIntegrationFactory.h rename to LeanplumSegment/Classes/SEGLeanplumIntegrationFactory.h diff --git a/Pod/Classes/SEGLeanplumIntegrationFactory.m b/LeanplumSegment/Classes/SEGLeanplumIntegrationFactory.m similarity index 100% rename from Pod/Classes/SEGLeanplumIntegrationFactory.m rename to LeanplumSegment/Classes/SEGLeanplumIntegrationFactory.m diff --git a/LeanplumSegment/Resources/Info.plist b/LeanplumSegment/Resources/Info.plist new file mode 100644 index 0000000..c0701c6 --- /dev/null +++ b/LeanplumSegment/Resources/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + $(MARKETING_VERSION) + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + + diff --git a/LeanplumSegment/Resources/LeanplumSegment.h b/LeanplumSegment/Resources/LeanplumSegment.h new file mode 100644 index 0000000..f788c12 --- /dev/null +++ b/LeanplumSegment/Resources/LeanplumSegment.h @@ -0,0 +1,18 @@ +// +// LeanplumSegment.h +// LeanplumSegment +// +// Created by Ozgur Vatansever on 5.05.2021. +// + +#import + +//! Project version number for LeanplumSegment. +FOUNDATION_EXPORT double LeanplumSegmentVersionNumber; + +//! Project version string for LeanplumSegment. +FOUNDATION_EXPORT const unsigned char LeanplumSegmentVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like +#import +#import diff --git a/Makefile b/Makefile index f5f8db6..e824255 100644 --- a/Makefile +++ b/Makefile @@ -7,12 +7,12 @@ # Updates the version in the 3rd line of the header files with the version specified in sdk-version.txt. # Example: Leanplum Segment iOS Integration Version 1.1.4. updateVersion: - sed -i '' -e "3 s/Version .*/Version `cat sdk-version.txt`/g" "./Pod/Classes/SEGLeanplumIntegration.h" - sed -i '' -e "3 s/Version .*/Version `cat sdk-version.txt`/g" "./Pod/Classes/SEGLeanplumIntegrationFactory.h" + sed -i '' -e "3 s/Version .*/Version `cat sdk-version.txt`/g" "./LeanplumSegment/Classes/SEGLeanplumIntegration.h" + sed -i '' -e "3 s/Version .*/Version `cat sdk-version.txt`/g" "./LeanplumSegment/Classes/SEGLeanplumIntegrationFactory.h" # Adds the headers files with the updated version; Commit; Tag; Push; tagCommit: - git add Pod/Classes/SEGLeanplumIntegration.h; git add Pod/Classes/SEGLeanplumIntegrationFactory.h; git commit -am 'update version'; git tag `cat sdk-version.txt`; git push; git push origin `cat sdk-version.txt` + git add LeanplumSegment/Classes/SEGLeanplumIntegration.h; git add LeanplumSegment/Classes/SEGLeanplumIntegrationFactory.h; git commit -am 'update version'; git tag `cat sdk-version.txt`; git push; git push origin `cat sdk-version.txt` # Pushes to Cocoapods using trunk pushPod: diff --git a/README.md b/README.md index c05255b..e22e2d0 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,10 @@ To install the Leanplum Segment integration, simply add this line to your ```ruby pod 'LeanplumSegment', '~> 1.1.3' ``` +or add this line to your Cartfile if you are using [Carthage](https://github.com/Carthage): +```ruby +github "Leanplum/LeanplumSegment" +``` That's it! Now you can use the Segment SDK and also the [advanced features](https://www.leanplum.com/docs#/docs) of the Leanplum SDK. ## Usage