Skip to content

Commit

Permalink
AFNetworking 4 (AFNetworking#4523)
Browse files Browse the repository at this point in the history
* Work towards 4.0.0 release.

* Drop macOS deployment to 10.10.

* Reduce pod requirement to 10.10.

* Remove iOS 7 & 8 workaround.

* Fix misspelling.

* Remove now unnecessary version check.

* Fixes after master merge.

* Remove unnecessary services import.

* Updates for travis config.

* Year 2020 (AFNetworking#4524)

* Add Swift package.

* Try to fix Travis configs.

* Explicitly set Xcode versions.

* Try to fix Xcode selection.

* Directly call xcversion.

* Revert to Xcode 11.3.

* Remove defaults.

* Manually set schemes?

* Don’t build examples.

* Use updated Fastfile.

* Properly load from macos

* Ignore SecTrustEvaluate deprecations to fix test failures.

* Use deprecated API for tests.

* Add Catalyst testing.

* Scheme updates; can’t test Catalyst until Travis has Catalina.

* Remove deprecated APIs.

* remove useless api for upload task (AFNetworking#4525)

* remove unnecessary __block (AFNetworking#4526)

* Add GitHub actions, remove Travis.

* Update action name.

* Remove matrixes.

* Move build action to GitHub actions.

Co-authored-by: Elf Sundae <elf.sundae@gmail.com>
Co-authored-by: Kinarobin <kinarobin@outlook.com>
  • Loading branch information
3 people committed Mar 29, 2020
1 parent e24d494 commit c9d0684
Show file tree
Hide file tree
Showing 60 changed files with 848 additions and 1,030 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: "AFNetworking CI"

on:
push:
branches:
- master
pull_request:
branches:
- '*'

jobs:
macOS:
name: Test macOS
runs-on: macOS-latest
env:
DEVELOPER_DIR: /Applications/Xcode_11.3.1.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: macOS
run: fastlane ci_commit configuration:Debug --env macos
iOS:
name: Test iOS
runs-on: macOS-latest
env:
DEVELOPER_DIR: /Applications/Xcode_11.3.1.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: iOS
run: fastlane ci_commit configuration:Debug --env ios13_xcode11
Catalyst:
name: Test Catalyst
runs-on: macOS-latest
env:
DEVELOPER_DIR: /Applications/Xcode_11.3.1.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: Catalyst
run: fastlane ci_commit configuration:Debug --env catalyst
tvOS:
name: Test tvOS
runs-on: macOS-latest
env:
DEVELOPER_DIR: /Applications/Xcode_11.3.1.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: tvOS
run: fastlane ci_commit configuration:Debug --env tvos13_xcode11
watchOS:
name: Build watchOS
runs-on: macOS-latest
env:
DEVELOPER_DIR: /Applications/Xcode_11.3.1.app/Contents/Developer
strategy:
matrix:
destination: ["OS=6.1.1,name=Apple Watch Series 5 - 44mm"] #, "OS=4.2,name=Apple Watch Series 3 - 42mm", "OS=3.2,name=Apple Watch Series 2 - 42mm"]
steps:
- uses: actions/checkout@v2
- name: watchOS - ${{ matrix.destination }}
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "AFNetworking.xcodeproj" -scheme "AFNetworking watchOS" -destination "${{ matrix.destination }}" clean build | xcpretty
SPM:
name: Build with SPM
runs-on: macOS-latest
env:
DEVELOPER_DIR: /Applications/Xcode_11.3.1.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: SPM Build
run: swift build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ fastlane/test-output/*
Carthage/Build

fastlane/README.md
.build
1 change: 1 addition & 0 deletions .ruby-gemset
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
afnetworking
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.7.0
51 changes: 0 additions & 51 deletions .travis.yml

This file was deleted.

14 changes: 7 additions & 7 deletions AFNetworking.podspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Pod::Spec.new do |s|
s.name = 'AFNetworking'
s.version = '3.2.1'
s.version = '4.0.0'
s.license = 'MIT'
s.summary = 'A delightful iOS and OS X networking framework.'
s.summary = 'A delightful networking framework for Apple platforms.'
s.homepage = 'https://github.com/AFNetworking/AFNetworking'
s.social_media_url = 'https://twitter.com/AFNetworking'
s.authors = { 'Mattt Thompson' => 'm@mattt.me' }
Expand All @@ -27,8 +27,8 @@ Pod::Spec.new do |s|
EOS
s.prefix_header_contents = pch_AF

s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.9'
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.10'
s.watchos.deployment_target = '2.0'
s.tvos.deployment_target = '9.0'

Expand All @@ -47,8 +47,8 @@ EOS
end

s.subspec 'Reachability' do |ss|
ss.ios.deployment_target = '8.0'
ss.osx.deployment_target = '10.9'
ss.ios.deployment_target = '9.0'
ss.osx.deployment_target = '10.10'
ss.tvos.deployment_target = '9.0'

ss.source_files = 'AFNetworking/AFNetworkReachabilityManager.{h,m}'
Expand All @@ -69,7 +69,7 @@ EOS
end

s.subspec 'UIKit' do |ss|
ss.ios.deployment_target = '8.0'
ss.ios.deployment_target = '9.0'
ss.tvos.deployment_target = '9.0'
ss.dependency 'AFNetworking/NSURLSession'

Expand Down
Loading

0 comments on commit c9d0684

Please sign in to comment.