Skip to content

Commit

Permalink
Add SPM (#54)
Browse files Browse the repository at this point in the history
* Add SPM

* Modify package

* import!

* import UIKit

* Add Swift Package Support

* Modify project

* Fix warning

* Remove file
  • Loading branch information
julian-fordyce authored Nov 19, 2020
1 parent 5df674a commit 421578c
Show file tree
Hide file tree
Showing 37 changed files with 229 additions and 236 deletions.
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

91 changes: 91 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/Mailchimp-SDK-iOS.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1220"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Mailchimp-SDK-iOS"
BuildableName = "Mailchimp-SDK-iOS"
BlueprintName = "Mailchimp-SDK-iOS"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Mailchimp-SDK-iOSTests"
BuildableName = "Mailchimp-SDK-iOSTests"
BlueprintName = "Mailchimp-SDK-iOSTests"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Mailchimp-SDK-iOSTests"
BuildableName = "Mailchimp-SDK-iOSTests"
BlueprintName = "Mailchimp-SDK-iOSTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Mailchimp-SDK-iOS"
BuildableName = "Mailchimp-SDK-iOS"
BlueprintName = "Mailchimp-SDK-iOS"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.2] - 2020-11-19
### Added
- Swift Package Support

## [2.0.1] - 2020-11-17
### Removed
- Fixed module/class name collision which caused Failed to load module 'MailchimpSDK' error when integrating. (#16)
Expand Down
4 changes: 2 additions & 2 deletions MailchimpSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'MailchimpSDK'
s.version = '2.0.1'
s.version = '2.0.2'
s.summary = 'Mailchimp SDK for iOS'

s.description = <<-DESC
Expand All @@ -24,7 +24,7 @@ Pod::Spec.new do |s|
s.platform = :ios, '12.0'

s.source = { :git => 'https://github.com/mailchimp/Mailchimp-SDK-iOS.git', :tag => 'v' + s.version.to_s }
s.source_files = 'MailchimpSDK/MailchimpSDK/*.{swift,h,m}'
s.source_files = 'Sources/MailchimpSDK/MailchimpSDK/*.{swift,h,m}'

s.vendored_frameworks = 'build/MailchimpSDK.xcframework'
end
2 changes: 1 addition & 1 deletion MailchimpSDK.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions MailchimpSDK/Gemfile

This file was deleted.

179 changes: 0 additions & 179 deletions MailchimpSDK/Gemfile.lock

This file was deleted.

19 changes: 19 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "MailchimpSDK",
products: [
.library(
name: "MailchimpSDK",
targets: ["MailchimpSDK"]),
],
targets: [
.target(
name: "MailchimpSDK",
exclude: ["MailchimpSDK/Info.plist"]),
.testTarget(
name: "MailchimpSDKTests",
dependencies: ["MailchimpSDK"],
exclude: ["../../Tests/MailchimpSDKTests/Info.plist"]),
]
)
Loading

0 comments on commit 421578c

Please sign in to comment.