Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tink dependency to CashSecuritySdk #3

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions ios/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# macOS
.DS_Store

# Xcode
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa

# Bundler
.bundle

# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
# Note: if you ignore the Pods directory, make sure to uncomment
# `pod install` in .travis.yml
#
# Pods/
14 changes: 14 additions & 0 deletions ios/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# references:
# * https://www.objc.io/issues/6-build-tools/travis-ci/
# * https://github.com/supermarin/xcpretty#usage

osx_image: xcode7.3
language: objective-c
# cache: cocoapods
# podfile: Example/Podfile
# before_install:
# - gem install cocoapods # Since Travis is not always on latest version
# - pod install --project-directory=Example
script:
- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/CashSecuritySdk.xcworkspace -scheme CashSecuritySdk-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint
55 changes: 55 additions & 0 deletions ios/CashSecuritySdk.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#
# Be sure to run `pod lib lint CashSecuritySdk.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 https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
s.name = 'CashSecuritySdk'
s.version = '0.1.0'
s.summary = 'Security related functions recommended by Cash Security.'

# 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
Security functionality for interoperability/interaction with core services.
DESC

s.homepage = 'https://github.com/squareup/cash-security-sdk'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'Apache License, Version 2.0', :file => 'LICENSE' }
s.author = { 'Cash Security Engineering' => '[email protected]' }
s.source = { :git => 'https://github.com/squareup/cash-security-sdk.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

s.ios.deployment_target = '13.0'

s.source_files = 'CashSecuritySdk/Classes/**/*'

s.swift_versions = '4.0'

# s.resource_bundles = {
# 'CashSecuritySdk' => ['CashSecuritySdk/Assets/*.png']
# }

# s.public_header_files = 'Pod/Classes/**/*.h'
# s.frameworks = 'UIKit', 'MapKit'
s.dependency 'Tink', '1.5.0'
s.script_phase = { name: 'Fix Tink for Apple Silicon', script: '"$PODS_TARGET_SRCROOT"/Scripts/FixTinkForAppleSilicon', execution_position: :before_compile }
s.static_framework = true
s.preserve_paths = 'Scripts/**/*'

s.pod_target_xcconfig = {
'FRAMEWORK_SEARCH_PATHS[sdk=iphonesimulator*][arch=arm64]' => '"$DERIVED_FILE_DIR/apple_silicon" $FRAMEWORK_SEARCH_PATHS',
}

s.test_spec 'UnitTests' do |test_spec|
test_spec.source_files = 'CashSecuritySdk/Tests/**/*'
end
end
Empty file.
Empty file.
Empty file.
Loading