diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 982b294..c095799 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -12,4 +12,4 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Run tests - run: xcodebuild test -scheme ContentPassExample -workspace ContentPassExample/ContentPassExample.xcworkspace -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 15' | xcpretty && exit ${PIPESTATUS[0]} \ No newline at end of file + run: xcodebuild test -scheme ContentPassExample -workspace ContentPassExample/ContentPassExample.xcworkspace -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 17' | xcpretty && exit ${PIPESTATUS[0]} \ No newline at end of file diff --git a/ContentPass.podspec b/ContentPass.podspec index f16162e..1a6135b 100644 --- a/ContentPass.podspec +++ b/ContentPass.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = "ContentPass" - spec.version = "2.2.1" + spec.version = "2.2.2" spec.summary = "Handles all authentication and validation with contentpass servers for you." spec.homepage = "https://contentpass.de" @@ -13,6 +13,6 @@ Pod::Spec.new do |spec| spec.source = { :git => "https://github.com/contentpass/contentpass-ios.git", :tag => "#{spec.version}" } spec.source_files = "Sources/**/*" - spec.dependency 'AppAuth', '1.7.5' + spec.dependency 'AppAuth', '~> 1.7.5' spec.dependency 'Strongbox', '0.6.1' end diff --git a/Package.swift b/Package.swift index c07e7b6..a4da9b7 100644 --- a/Package.swift +++ b/Package.swift @@ -13,7 +13,7 @@ let package = Package( targets: ["ContentPass"]) ], dependencies: [ - .package(name: "AppAuth", url: "https://github.com/openid/AppAuth-iOS", .exact("1.7.5")), + .package(name: "AppAuth", url: "https://github.com/openid/AppAuth-iOS", .upToNextMinor(from: "1.7.5")), .package(name: "Strongbox", url: "https://github.com/granoff/Strongbox", .exact("0.6.1")) ], targets: [ diff --git a/README.md b/README.md index 547a900..ce5e12a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ## Installation Since we use external dependencies for solved problems such as OAuth 2.0, we strongly recommend using a dependency manager. -We currently support SPM as well as CocoaPods. +Install the SDK with Swift Package Manager. CocoaPods is deprecated. @@ -22,7 +22,7 @@ or * Add the following `dependency` to your `Package.swift`: ```swift dependencies: [ - .package(url: "https://github.com/contentpass/contentpass-ios", .upToNextMajor(from: "2.2.1")) + .package(url: "https://github.com/contentpass/contentpass-ios", .upToNextMajor(from: "2.2.2")) ] ``` @@ -32,13 +32,14 @@ In both cases don't forget to add the sdk to your targets. ### CocoaPods -With [CocoaPods](https://guides.cocoapods.org/using/getting-started.html), add the following line to your `Podfile`: +CocoaPods is deprecated. New versions are not published to CocoaPods trunk. Use Swift Package Manager. + +Apps that still install via CocoaPods can depend on the git repository until they migrate: + ```ruby - pod 'ContentPass', '~> 2.2.1' +pod 'ContentPass', :git => 'https://github.com/contentpass/contentpass-ios.git', :tag => '2.2.2' ``` -Then, run `pod install` via terminal. - ## Usage