diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..6584d41 --- /dev/null +++ b/Package.swift @@ -0,0 +1,42 @@ +// 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: "LeanplumSegment", + platforms: [.iOS(.v10)], + products: [ + // Products define the executables and libraries a package produces, and make them visible to other packages. + .library( + name: "LeanplumSegment", + targets: ["LeanplumSegment"]) + ], + dependencies: [ + .package( + name: "Leanplum", + url: "https://github.com/Leanplum/Leanplum-iOS-SDK.git", + .upToNextMajor(from: "3.1.1") + ), + .package( + name: "Segment", + url: "https://github.com/segmentio/analytics-ios.git", + .upToNextMajor(from: "4.1.3") + ) + ], + 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: "LeanplumSegment", + dependencies: [ + .product(name: "Segment", package: "Segment"), + .product(name: "Leanplum", package: "Leanplum") + ], + path: "Pod", + cSettings: [ + .headerSearchPath("Classes") + ] + ) + ] +) diff --git a/Pod/Classes/SEGLeanplumIntegration.h b/Pod/Classes/SEGLeanplumIntegration.h index d1ea032..6bc21ca 100644 --- a/Pod/Classes/SEGLeanplumIntegration.h +++ b/Pod/Classes/SEGLeanplumIntegration.h @@ -5,9 +5,9 @@ // Copyright (c) 2020 Leanplum. All rights reserved. // -#import +@import Leanplum; +@import Segment; #import -#import @interface SEGLeanplumIntegration : NSObject diff --git a/Pod/include/LeanplumSegment_iOS.h b/Pod/include/LeanplumSegment_iOS.h new file mode 100644 index 0000000..3731e2d --- /dev/null +++ b/Pod/include/LeanplumSegment_iOS.h @@ -0,0 +1,10 @@ +// +// LeanplumSegment.h +// LeanplumSegment +// +// Created by Furkan Erdem Persembe on 3/24/21. +// + +#import "../Classes/SEGLeanplumIntegration.h" +#import "../Classes/SEGLeanplumIntegrationFactory.h" +