Skip to content

Commit

Permalink
Merge pull request Tencent#411 from Tencent/hotfix_cocoapods
Browse files Browse the repository at this point in the history
Hotfix cocoapods
  • Loading branch information
lingol authored Mar 25, 2020
2 parents ae74d37 + a49c459 commit c810e69
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
5 changes: 4 additions & 1 deletion MMKV.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Pod::Spec.new do |s|
s.osx.deployment_target = "10.9"

s.source = { :git => "https://github.com/Tencent/MMKV.git", :tag => "v#{s.version}" }
s.source_files = "iOS/MMKV/MMKV", "iOS/MMKV/MMKV/*.{h,mm,hpp}", "iOS/MMKV/MMKV/aes/*", "iOS/MMKV/MMKV/aes/openssl/*"
s.source_files = "iOS/MMKV/MMKV", "iOS/MMKV/MMKV/*.{h,mm,hpp}"
s.public_header_files = "iOS/MMKV/MMKV/MMKV.h", "iOS/MMKV/MMKV/MMKVHandler.h"

s.framework = "CoreFoundation"
Expand All @@ -31,4 +31,7 @@ Pod::Spec.new do |s|
"CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF" => "NO",
}

s.dependency 'MMKVCore', '~> 1.1.0'

end

38 changes: 38 additions & 0 deletions MMKVCore.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Pod::Spec.new do |s|

s.name = "MMKVCore"
s.module_name = "Core"
s.version = "1.1.0"
s.summary = "MMKVCore for MMKV. MMKV is a cross-platform key-value storage framework developed by WeChat."

s.description = <<-DESC
Don't use this library directly. Use MMKV instead.
MMKV is an efficient, complete, easy-to-use mobile key-value storage framework used in the WeChat application.
It can be a replacement for NSUserDefaults & SQLite.
DESC

s.homepage = "https://github.com/Tencent/MMKV"
s.license = { :type => "BSD 3-Clause", :file => "LICENSE.TXT"}
s.author = { "guoling" => "[email protected]" }

s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.9"

s.source = { :git => "https://github.com/Tencent/MMKV.git", :tag => "v#{s.version}" }
s.source_files = "Core", "Core/*.{h,cpp,hpp}", "Core/aes/*", "Core/aes/openssl/*", "Core/crc32/*"
s.public_header_files = "Core/MMBuffer.h", "Core/MMKV.h", "Core/MMKVLog.h", "Core/MMKVPredef.h", "Core/PBUtility.h", "Core/ScopedLock.hpp", "Core/ThreadLock.h", "Core/aes/openssl/openssl_md5.h", "Core/aes/openssl/openssl_opensslconf.h"
s.compiler_flags = '-x objective-c++'

s.requires_arc = ['Core/MemoryFile.cpp', 'Core/ThreadLock.cpp', 'Core/InterProcessLock.cpp', 'Core/MMKVLog.cpp', 'Core/PBUtility.cpp', 'Core/MemoryFile_OSX.cpp', 'crc32/crc32_armv8.cpp', 'aes/openssl/openssl_cfb128.cpp', 'aes/openssl/openssl_aes_core.cpp', 'aes/openssl/openssl_md5_one.cpp', 'aes/openssl/openssl_md5_dgst.cpp', 'aes/AESCrypt.cpp']

s.framework = "CoreFoundation"
s.ios.frameworks = "UIKit"
s.libraries = "z", "c++"
s.pod_target_xcconfig = {
"CLANG_CXX_LANGUAGE_STANDARD" => "gnu++17",
"CLANG_CXX_LIBRARY" => "libc++",
"CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF" => "NO",
}

end

0 comments on commit c810e69

Please sign in to comment.