source 'https://github.com/CocoaPods/Specs.git' source 'https://github.com/hyperledger/indy-sdk.git' platform :ios, '10.2' workspace 'libindy.xcworkspace' #use_frameworks! def appPods pod 'libsodium',"1.0.12" pod 'libzmq-pw',"4.2.2" pod 'OpenSSL' pod 'milagro', "3.0.0" pod 'libindy-core', "0.1.1" end target 'libindy-demo' do project 'libindy-demo' pod 'CoreBitcoin', :podspec => 'https://raw.github.com/oleganza/CoreBitcoin/master/CoreBitcoin.podspec' target 'libindy-demoTests' do inherit! :search_paths end end target 'libindy' do project 'libindy' appPods end # ignore all warnings from all pods #inhibit_all_warnings! post_install do |installer| installer.pods_project.targets.each do |target| if target.name == 'milagro' target.build_configurations.each do |config| config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'AMCL_VERSION_MAJOR=3 AMCL_VERSION_PATCH=0 AMCL_VERSION_MINOR=0 OS=\"IOS\"'] end end if target.name == 'libzmq' target.build_configurations.each do |config| config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'ZMQ_BUILD_DRAFT_API=1'] end end if target.name == 'libsodium' target.build_configurations.each do |config| config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'NATIVE_LITTLE_ENDIAN=1 PACKAGE_NAME=\"libsodium\" PACKAGE_TARNAME=\"libsodium\" PACKAGE_VERSION=\"1.0.12\" PACKAGE_STRING=\"libsodium\ 1.0.12\" PACKAGE_BUGREPORT=\"https://github.com/jedisct1/libsodium/issues\" PACKAGE_URL=\"https://github.com/jedisct1/libsodium\" PACKAGE=\"libsodium\" VERSION=\"1.0.12\" HAVE_PTHREAD_PRIO_INHERIT=1 HAVE_PTHREAD=1 STDC_HEADERS=1 HAVE_SYS_TYPES_H=1 HAVE_SYS_STAT_H=1 HAVE_STDLIB_H=1 HAVE_STRING_H=1 HAVE_MEMORY_H=1 HAVE_STRINGS_H=1 HAVE_INTTYPES_H=1 HAVE_STDINT_H=1 HAVE_UNISTD_H=1 _POSIX_PTHREAD_SEMANTICS=1 NATIVE_LITTLE_ENDIAN=1 HAVE_WEAK_SYMBOLS=1 CPU_UNALIGNED_ACCESS=1 CONFIGURED=1'] end end end end