diff --git a/secp256k1.podspec b/secp256k1.podspec new file mode 100644 index 0000000..dc03fe7 --- /dev/null +++ b/secp256k1.podspec @@ -0,0 +1,55 @@ +# +# Be sure to run `pod lib lint secp256k1.podspec' to ensure this is a +# valid spec before submitting. +# +# Any lines starting with a # are optional, but their use is encouraged +# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html +# + +Pod::Spec.new do |s| + s.name = 'secp256k1' + s.version = '0.1.4' + s.summary = 'secp256k1 bindings for swift.' + +# This description is used to generate tags and improve search results. +# * Think: What does it do? Why did you write it? What is the focus? +# * Try to keep it short, snappy and to the point. +# * Write the description between the DESC delimiters below. +# * Finally, don't worry about the indent, CocoaPods strips it! + + s.description = <<-DESC +This pod binds the bitcoin-core library, the ECDSA curve, secp256k1 into Swift. This curve is used for +Bitcoin, Ethereum and many other Cryptocurrency Signature generation and verification. + DESC + + s.homepage = 'https://github.com/status-im/secp256k1.swift' + # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' + s.license = { :type => 'MIT', :file => 'LICENSE' } + s.author = { 'Koray Koska' => 'koray@koska.at' } + s.source = { :git => 'https://github.com/status-im/secp256k1.swift.git', :tag => s.version.to_s, :submodules => true } + # s.social_media_url = 'https://twitter.com/' + + s.ios.deployment_target = '8.0' + s.osx.deployment_target = '10.10' + s.tvos.deployment_target = '9.0' + s.watchos.deployment_target = '2.0' + + s.module_name = 'secp256k1' + + s.pod_target_xcconfig = { + 'OTHER_CFLAGS' => '-DHAVE_CONFIG_H=1 -pedantic -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wno-shorten-64-to-32 -Wno-conditional-uninitialized -Wno-unused-function -Wno-long-long -Wno-overlength-strings -O3', + 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}/secp256k1/Classes/secp256k1"' + } + + s.source_files = 'secp256k1/Classes/secp256k1.swift', 'secp256k1/Classes/secp256k1/{src,include}/*.{h,c}', 'secp256k1/Classes/secp256k1/src/modules/{recovery,ecdh}/*.{h,c}', 'secp256k1/Classes/*.{h,c}' + s.public_header_files = 'secp256k1/Classes/secp256k1/include/*.h' + s.private_header_files = 'secp256k1/Classes/secp256k1_ec_mult_static_context.h', 'secp256k1/Classes/secp256k1/*.h', 'secp256k1/Classes/secp256k1/src/*.h', 'secp256k1/Classes/secp256k1/src/modules/{recovery, ecdh}/*.h' + s.exclude_files = 'secp256k1/Classes/secp256k1/src/test*.{c,h}', 'secp256k1/Classes/secp256k1/src/gen_context.c', 'secp256k1/Classes/secp256k1/src/bench*.{c,h}', 'secp256k1/Classes/secp256k1/src/modules/{recovery,ecdh}/*test*.{c,h}' + + # s.resource_bundles = { + # 'secp256k1' => ['secp256k1/Assets/*.png'] + # } + + # s.frameworks = 'UIKit', 'MapKit' + # s.dependency 'AFNetworking', '~> 2.3' +end \ No newline at end of file diff --git a/secp256k1/Classes/secp256k1.swift b/secp256k1/Classes/secp256k1.swift new file mode 100644 index 0000000..e69de29