Skip to content

Commit

Permalink
Update to use SecKeyCreateRandomKey to generate key pairs (#78)
Browse files Browse the repository at this point in the history
* Update to use SecKeyCreateRandomKey to generate key pairs

SecKeyGeneratePair was deprecated with iOS 15

Upgraded to support building with Xcode 14 - with no warnings

Updated minimum supported versions -
* MacOS - 11.5
* iOS - 14.5
* TVOS - 14.5
* WatchOS - 7.5

Testing
* Converted to use xctestplans
* Added support to do iOS testing
  * Had to add compiler flags to enable successful testing on a simulator

* Update Readme.md

* Replace `    ` (4 spaces) with \t (tab)

* match old indenting for compiler directives

* Turns out these had spaces before...

* another try on proper spacing...

* Remove unnecessary generated files

* Update .travis.yml to more recent build box versions

* Trim travis.yml a little more

* new line to trigger new build

* revert back

---------

Co-authored-by: Kris Kline <[email protected]>
  • Loading branch information
LowAmmo and Kris Kline authored Nov 19, 2024
1 parent 4c9464b commit a03491f
Show file tree
Hide file tree
Showing 15 changed files with 55 additions and 985 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@
CommonCrypto
/Package.pins
/Package.resolved
xcuserdata/

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
.build/
.swiftpm
39 changes: 10 additions & 29 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,48 +12,29 @@ branches:
matrix:
include:
- os: linux
dist: xenial
sudo: required
services: docker
env: DOCKER_IMAGE=swift:4.0.3 SWIFT_SNAPSHOT=4.0.3
- os: linux
dist: xenial
dist: bionic
sudo: required
services: docker
env: DOCKER_IMAGE=swift:4.1.3 SWIFT_SNAPSHOT=4.1.3
env: DOCKER_IMAGE=docker.kitura.net/kitura/swift-ci-ubuntu18.04:5.4 SWIFT_TEST_ARGS=""
- os: linux
dist: xenial
sudo: required
services: docker
env: DOCKER_IMAGE=swift:4.2.4 SWIFT_SNAPSHOT=4.2.4
- os: linux
dist: xenial
sudo: required
services: docker
env: DOCKER_IMAGE=swift:5.0.2-xenial
- os: linux
dist: xenial
sudo: required
services: docker
env: DOCKER_IMAGE=swift:5.0.2 SWIFT_SNAPSHOT=$SWIFT_DEVELOPMENT_SNAPSHOT
- os: osx
osx_image: xcode9.2
sudo: required
env: SWIFT_SNAPSHOT=4.0.3
env: DOCKER_IMAGE=docker.kitura.net/kitura/swift-ci-ubuntu18.04:latest USE_SWIFT_DEVELOPMENT_SNAPSHOT=1 SWIFT_TEST_ARGS=""
- os: osx
osx_image: xcode9.4
osx_image: xcode12.2
sudo: required
env: SWIFT_SNAPSHOT=4.1.2
env: JAZZY_ELIGIBLE=true SWIFT_TEST_ARGS=""
- os: osx
osx_image: xcode10.1
osx_image: xcode13.1
sudo: required
env: SWIFT_SNAPSHOT=4.2.1
env: SWIFT_TEST_ARGS=""
- os: osx
osx_image: xcode10.2
osx_image: xcode13.4
sudo: required
env: SWIFT_SNAPSHOT=5.0.1 JAZZY_ELIGIBLE=true
env: USE_SWIFT_DEVELOPMENT_SNAPSHOT=1 SWIFT_TEST_ARGS=""
- os: osx
osx_image: xcode11
osx_image: xcode14.2
sudo: required
env: SWIFT_SNAPSHOT=$SWIFT_DEVELOPMENT_SNAPSHOT

Expand Down
10 changes: 5 additions & 5 deletions BlueRSA.podspec
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
Pod::Spec.new do |s|
s.name = "BlueRSA"
s.version = "1.0.201"
s.version = "1.0.202"
s.summary = "Swift cross-platform RSA crypto library using CommonCrypto/libcrypto via Package Manager."
s.homepage = "https://github.com/Kitura/BlueRSA"
s.license = { :type => "Apache License, Version 2.0" }
s.author = "IBM and the Kitura project authors"
s.module_name = 'CryptorRSA'
s.swift_version = "5.0.2"
s.requires_arc = true
s.osx.deployment_target = "10.12"
s.ios.deployment_target = "10.3"
s.tvos.deployment_target = "10.3"
s.watchos.deployment_target = "3.3"
s.osx.deployment_target = "11.5"
s.ios.deployment_target = "14.5"
s.tvos.deployment_target = "14.5"
s.watchos.deployment_target = "7.5"
s.source = { :git => "https://github.com/Kitura/BlueRSA.git", :tag => s.version }
s.source_files = "Sources/CryptorRSA/*.swift"
s.pod_target_xcconfig = {
Expand Down
19 changes: 0 additions & 19 deletions CryptorRSA-iOS/CryptorRSA-iOS.h

This file was deleted.

25 changes: 0 additions & 25 deletions CryptorRSA-iOS/Info.plist

This file was deleted.

25 changes: 0 additions & 25 deletions CryptorRSA.xcodeproj/CryptorRSATests_Info.plist

This file was deleted.

25 changes: 0 additions & 25 deletions CryptorRSA.xcodeproj/CryptorRSA_Info.plist

This file was deleted.

Loading

0 comments on commit a03491f

Please sign in to comment.