Merge pull request #36 from matrix-org/manuroe/olmkit
OLMKit
No related branches found
No related tags found
Showing
- .gitignore 22 additions, 1 deletion.gitignore
- CHANGELOG.rst 7 additions, 0 deletionsCHANGELOG.rst
- Makefile 1 addition, 1 deletionMakefile
- OLMKit.podspec 61 additions, 0 deletionsOLMKit.podspec
- README.rst 16 additions, 0 deletionsREADME.rst
- lib/crypto-algorithms/aes.c 1 addition, 0 deletionslib/crypto-algorithms/aes.c
- lib/crypto-algorithms/sha256.c 1 addition, 0 deletionslib/crypto-algorithms/sha256.c
- xcode/OLMKit.xcodeproj/project.pbxproj 528 additions, 0 deletionsxcode/OLMKit.xcodeproj/project.pbxproj
- xcode/OLMKit/Info.plist 26 additions, 0 deletionsxcode/OLMKit/Info.plist
- xcode/OLMKit/OLMAccount.h 51 additions, 0 deletionsxcode/OLMKit/OLMAccount.h
- xcode/OLMKit/OLMAccount.m 265 additions, 0 deletionsxcode/OLMKit/OLMAccount.m
- xcode/OLMKit/OLMAccount_Private.h 25 additions, 0 deletionsxcode/OLMKit/OLMAccount_Private.h
- xcode/OLMKit/OLMInboundGroupSession.h 30 additions, 0 deletionsxcode/OLMKit/OLMInboundGroupSession.h
- xcode/OLMKit/OLMInboundGroupSession.m 244 additions, 0 deletionsxcode/OLMKit/OLMInboundGroupSession.m
- xcode/OLMKit/OLMKit.h 31 additions, 0 deletionsxcode/OLMKit/OLMKit.h
- xcode/OLMKit/OLMKit.m 29 additions, 0 deletionsxcode/OLMKit/OLMKit.m
- xcode/OLMKit/OLMMessage.h 38 additions, 0 deletionsxcode/OLMKit/OLMMessage.h
- xcode/OLMKit/OLMMessage.m 34 additions, 0 deletionsxcode/OLMKit/OLMMessage.m
- xcode/OLMKit/OLMOutboundGroupSession.h 32 additions, 0 deletionsxcode/OLMKit/OLMOutboundGroupSession.h
- xcode/OLMKit/OLMOutboundGroupSession.m 220 additions, 0 deletionsxcode/OLMKit/OLMOutboundGroupSession.m
OLMKit.podspec
0 → 100644
Pod::Spec.new do |s| | ||
# The libolm version | ||
MAJOR = 2 | ||
MINOR = 0 | ||
PATCH = 1 | ||
s.name = "OLMKit" | ||
s.version = "#{MAJOR}.#{MINOR}.#{PATCH}" | ||
s.summary = "An Objective-C wrapper of olm (http://matrix.org/git/olm)" | ||
s.description = <<-DESC | ||
olm is an implementation of the Double Ratchet cryptographic ratchet in C++ | ||
DESC | ||
s.homepage = "http://matrix.org/git/olm" | ||
s.license = { :type => "Apache License, Version 2.0", :file => "LICENSE" } | ||
s.authors = { "Chris Ballinger" => "chrisballinger@gmail.com", | ||
"matrix.org" => "support@matrix.org" } | ||
s.platform = :ios, "5.0" | ||
# Expose the Objective-C wrapper API of libolm | ||
s.public_header_files = "xcode/OLMKit/*.h" | ||
s.source = { | ||
:git => "https://matrix.org/git/olm.git", | ||
:tag => s.version.to_s | ||
} | ||
s.source_files = "xcode/OLMKit/*.{h,m}", "include/**/*.{h,hh}", "src/*.{c,cpp}", "lib/crypto-algorithms/sha256.c", "lib/crypto-algorithms/aes.c", "lib/curve25519-donna/curve25519-donna.c" | ||
# Those files (including .c) are included by ed25519.c. We do not want to compile them twice | ||
s.preserve_paths = "lib/ed25519/**/*.{h,c}" | ||
s.library = "c++" | ||
# Use the same compiler options for C and C++ as olm/Makefile | ||
s.compiler_flags = "-g -O3 -DOLMLIB_VERSION_MAJOR=#{MAJOR} -DOLMLIB_VERSION_MINOR=#{MINOR} -DOLMLIB_VERSION_PATCH=#{PATCH}" | ||
# For headers search paths, manage first the normal installation. Then, use paths used | ||
# when the pod is local | ||
s.xcconfig = { | ||
'USER_HEADER_SEARCH_PATHS' =>"${PODS_ROOT}/OLMKit/include ${PODS_ROOT}/OLMKit/lib #{File.join(File.dirname(__FILE__), 'include')} #{File.join(File.dirname(__FILE__), 'lib')}" | ||
} | ||
s.subspec 'olmc' do |olmc| | ||
olmc.source_files = "src/*.{c}", "lib/curve25519-donna.h", "lib/crypto-algorithms/sha256.{h,c}", "lib/crypto-algorithms/aes.{h,c}", "lib/curve25519-donna/curve25519-donna.c" | ||
olmc.compiler_flags = ' -std=c99 -fPIC' | ||
end | ||
s.subspec 'olmcpp' do |olmcpp| | ||
olmcpp.source_files = "src/*.{cpp}" | ||
olmcpp.compiler_flags = ' -std=c++11 -fPIC' | ||
end | ||
end |
xcode/OLMKit.xcodeproj/project.pbxproj
0 → 100644
This diff is collapsed.
xcode/OLMKit/Info.plist
0 → 100644
xcode/OLMKit/OLMAccount.h
0 → 100644
xcode/OLMKit/OLMAccount.m
0 → 100644
xcode/OLMKit/OLMAccount_Private.h
0 → 100644
xcode/OLMKit/OLMInboundGroupSession.h
0 → 100644
xcode/OLMKit/OLMInboundGroupSession.m
0 → 100644
xcode/OLMKit/OLMKit.h
0 → 100644
xcode/OLMKit/OLMKit.m
0 → 100644
xcode/OLMKit/OLMMessage.h
0 → 100644
xcode/OLMKit/OLMMessage.m
0 → 100644
xcode/OLMKit/OLMOutboundGroupSession.h
0 → 100644
xcode/OLMKit/OLMOutboundGroupSession.m
0 → 100644
Please register or sign in to comment