Skip to content

Commit ca4c3d4

Browse files
committed
+ Update pod spec to resolve the unencrypted HTTP protocol warning.
- Remove crypto, ssl linker flags. + Update the setup guideline for Mac static library.
1 parent bd9874f commit ca4c3d4

File tree

9 files changed

+73
-105
lines changed

9 files changed

+73
-105
lines changed

build-mac/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Download the latest [build for OS X](http://d.etpan.org/mailcore2-deps/mailcore2
4848
- Click the `+` icon and select `MailCore.framework`.
4949
* Mac static library
5050
- Go to Build Phases from your build target, and under 'Link Binary With Libraries', add `libMailCore.a` and `Security.framework`.
51-
- Set 'Other Linker Flags' under Build Settings: `-lctemplate -letpan -lxml2 -lsasl2 -liconv -ltidy -lz` `-lc++ -stdlib=libc++ -ObjC -lcrypto -lssl -lresolv`
51+
- Set 'Other Linker Flags' under Build Settings: `-lctemplate -letpan -lxml2 -lsasl2 -liconv -ltidy -lz` `-lc++ -stdlib=libc++ -ObjC -lresolv`
5252
- Make sure to use LLVM C++ standard library. In Build Settings, locate 'C++ Standard Library', and select `libc++`.
5353
- In Build Phases, add a Target Dependency of `static mailcore2 osx`.
5454
5. **For iOS** - If you're targeting iOS, you have to link against MailCore 2 as a static library:

cocoapods/mailcore2-ios.podspec

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Pod::Spec.new do |spec|
2+
spec.name = "mailcore2-ios"
3+
spec.version = "0.6.4"
4+
spec.summary = "Mailcore 2 for iOS"
5+
spec.description = "MailCore 2 provide a simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP. The API has been redesigned from ground up."
6+
spec.homepage = "https://github.com/MailCore/mailcore2"
7+
spec.license = { :type => "BSD", :file => "LICENSE" }
8+
spec.author = "MailCore Authors"
9+
spec.platform = :ios, "8.0"
10+
spec.source = { :http => "https://d.etpan.org/mailcore2-deps/mailcore2-ios/mailcore2-ios-12.zip", :flatten => true }
11+
spec.header_dir = "MailCore"
12+
spec.requires_arc = false
13+
spec.public_header_files = "include/MailCore/*.h"
14+
spec.preserve_paths = "include/MailCore/*.h"
15+
spec.vendored_libraries = "lib/libMailCore-ios.a"
16+
spec.libraries = ["xml2", "iconv", "z", "c++", "resolv"]
17+
spec.prepare_command = "curl -O https://github.com/MailCore/mailcore2/raw/master/LICENSE"
18+
end

cocoapods/mailcore2-ios.podspec.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

cocoapods/mailcore2-osx.podspec

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Pod::Spec.new do |spec|
2+
spec.name = "mailcore2-osx"
3+
spec.version = "0.6.4"
4+
spec.summary = "Mailcore 2 for OS X"
5+
spec.description = "MailCore 2 provide a simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP. The API has been redesigned from ground up."
6+
spec.homepage = "https://github.com/MailCore/mailcore2"
7+
spec.license = { :type => "BSD", :file => "LICENSE" }
8+
spec.author = "MailCore Authors"
9+
spec.platform = :osx, "10.8"
10+
spec.source = { :http => "https://d.etpan.org/mailcore2-deps/mailcore2-osx/mailcore2-osx-12.zip", :flatten => true }
11+
spec.header_dir = "MailCore"
12+
spec.requires_arc = false
13+
spec.public_header_files = "include/MailCore/*.h"
14+
spec.preserve_paths = "include/MailCore/*.h"
15+
spec.vendored_libraries = "lib/libMailCore.a"
16+
spec.libraries = ["sasl2", "tidy", "xml2", "iconv", "z", "c++", "resolv"]
17+
spec.prepare_command = "curl -O https://github.com/MailCore/mailcore2/raw/master/LICENSE"
18+
end

cocoapods/mailcore2-osx.podspec.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

mailcore2-ios.podspec

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Pod::Spec.new do |spec|
2+
spec.name = "mailcore2-ios"
3+
spec.version = "0.6.4"
4+
spec.summary = "Mailcore 2 for iOS"
5+
spec.description = "MailCore 2 provide a simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP. The API has been redesigned from ground up."
6+
spec.homepage = "https://github.com/MailCore/mailcore2"
7+
spec.license = { :type => "BSD", :file => "LICENSE" }
8+
spec.author = "MailCore Authors"
9+
spec.platform = :ios, "8.0"
10+
spec.source = { :http => "https://d.etpan.org/mailcore2-deps/mailcore2-ios/mailcore2-ios-12.zip", :flatten => true }
11+
spec.header_dir = "MailCore"
12+
spec.requires_arc = false
13+
spec.public_header_files = "cocoapods-build/include/MailCore/*.h"
14+
spec.preserve_paths = "cocoapods-build/include/MailCore/*.h"
15+
spec.vendored_libraries = "cocoapods-build/lib/libMailCore.a"
16+
spec.libraries = ["xml2", "iconv", "z", "c++", "resolv"]
17+
spec.prepare_command = "./scripts/build-mailcore2-ios-cocoapod.sh"
18+
end

mailcore2-ios.podspec.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

mailcore2-osx.podspec

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Pod::Spec.new do |spec|
2+
spec.name = "mailcore2-osx"
3+
spec.version = "0.6.4"
4+
spec.summary = "Mailcore 2 for OS X"
5+
spec.description = "MailCore 2 provide a simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP. The API has been redesigned from ground up."
6+
spec.homepage = "https://github.com/MailCore/mailcore2"
7+
spec.license = { :type => "BSD", :file => "LICENSE" }
8+
spec.author = "MailCore Authors"
9+
spec.platform = :osx, "10.8"
10+
spec.source = { :http => "https://d.etpan.org/mailcore2-deps/mailcore2-osx/mailcore2-osx-12.zip", :flatten => true }
11+
spec.header_dir = "MailCore"
12+
spec.requires_arc = false
13+
spec.public_header_files = "cocoapods-build/include/MailCore/*.h"
14+
spec.preserve_paths = "cocoapods-build/include/MailCore/*.h"
15+
spec.vendored_libraries = "cocoapods-build/lib/libMailCore.a"
16+
spec.libraries = ["sasl2", "tidy", "xml2", "iconv", "z", "c++", "resolv"]
17+
spec.prepare_command = "./scripts/build-mailcore2-osx-cocoapod.sh"
18+
end

mailcore2-osx.podspec.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)