Commit Graph

2907 Commits

Author SHA1 Message Date
WELCommand
555385d2b8 Fix associated object bug in UIKit extensions (#3872) 2020-01-04 19:34:04 -05:00
Cédric Luthi
2da270be61 Search for default pinned certificates in the main bundle (#3752)
Using `[NSBundle bundleForClass:[self class]]` is dangerous because the code will behave differently depending on how AFNetworking is integrated.

* If it is integrated as a static library (for example using CocoaPods), certificates will be searched in the main bundle.

* If it is integrated as a framework (for example using Carthage), certificates will be searched in the AFNetworking framework.

Even though this behavior is documented, this is dangerous. Using the main bundle makes the behavior deterministic.

Fixes #3575
2020-01-04 19:26:41 -05:00
svoit
0fba527112 Fix reference cycle in example, remove unnecessary weak / strong (#4196)
* Fixed memory leak issues

* Fixed memory leak issues

* Fixed crash
2020-01-04 19:19:31 -05:00
Bofei Zhu
4743faa83c Fix travis CI build (#4472)
* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* update fastlane settings

* nit

* fix tvos

* Update AFTestCase.m

* revert timeout

* Update AFUIWebViewTests.m

* Update .env.ios12_xcode10
2020-01-04 18:26:32 -05:00
Chris Streeter
eb9ce0e23d Use dispatch_barrier_sync (#4474)
This should hopefully avoid any problems where we attempt to write an
HTTP header to a deallocated header dictionary.

See https://github.com/AFNetworking/AFNetworking/pull/3891
See https://github.com/AFNetworking/AFNetworking/issues/3636
Modified from 32760e7a3a

Fixes #1391
2020-01-04 18:24:33 -05:00
Tiago Janela
5cf601ce0c Updated SSL Pinning Test Assets (#4463) 2019-10-26 18:34:47 -04:00
yehuanwen
006e896fbc Fix typeof (#3912) 2019-10-20 23:23:30 -04:00
Gavin King
9dcc6efd85 adding tvOS user agent information (#4014) 2019-10-20 23:02:35 -04:00
Jeff Kelley
2c2d2c3062 Update code coverage settings (#4201)
* Ignore coverage of test code.

* Add a second code coverage lane.

* Increase testing for code coverage.

* Fix the name of the Apple TV simulator.

* Delete .env.osx_10.10_xcode6

* Delete .env.osx_10.9_xcode6
2019-10-20 22:39:56 -04:00
Mars Lan
7383ffc61f Fix CHANGELOG Styling (#4460) 2019-10-20 22:00:32 -04:00
Elf Sundae
023cec7994 Fix NSSecureCoding (#4409)
* Fix type for decoding object

* Fix encoding numeric
2019-10-20 21:53:18 -04:00
Jeff Kelley
685e31a31b
Merge pull request #4365 from classdojo/cd-master
Fix podspec #trivial #important
2019-03-01 14:00:35 -05:00
Jakub Kaspar
b3c4a78aca Fix podspec as pod version supports iOS 8+ but podspec says iOS 7+ 2019-03-01 16:23:33 +01:00
Jeff Kelley
ee950948f2
Merge pull request #4200 from svoit/code_cleaning
Code cleaning
2019-02-09 13:18:38 -05:00
Jeff Kelley
9cc782931a
Merge pull request #4357 from AFNetworking/update-httpbin-certificates-april-2019
Update HTTPBin certificates in tests
2019-02-09 13:11:50 -05:00
Jeff Kelley
3517a1d23c Update HTTPBin certificates 2019-02-09 11:38:10 -05:00
Jeff Kelley
5890adc404
Merge pull request #4298 from AFNetworking/update-httpbin-certificates-december-2018
Update HTTPBin certificates, good through December 2018.
2018-10-14 10:20:46 -04:00
Jeff Kelley
ba4238910e Update HTTPBin certificates, good through December 2018. 2018-10-10 23:02:34 -04:00
svoit
d6db8307d9 Merge branch 'master' into code_cleaning
* master: (61 commits)
  Update Travis config for Xcode 10.
  Add test for object posting notification
  update README.md, the old "Foundation URL Loading System" link is 404
  Change test name to correct one
  Change default teardown methods to tests
  Update tests to use new API
  Update PR feedback, add more tests
  Add test
  remove temporary method that could be doing nothing
  Update HTTPBin certificates.
  Chinese CONTRIBUTING.md translate
  Delete CONTRIBUTING_CH.md
  Chinese Contributing.md translate
  rollback method 'AFPostReachabilityStatusChange'
  Use AFNetworkReachabilityManager to compare  consistency of notification posts and gets, instead of SCNetworkReachabilityRef. And test case reference.
  Remove test that is nilling session manually as it's not possible anymore to not have valid session (correctly)
  Add tests for  verifing reachability manager consistence  for notification posting and getting
  Specify Xcode 9.4 in Travis file.
  Update AFImageDownloader.m
  Add an ability that notification-observer know which reachability its belong
  ...
2018-10-08 23:28:53 +02:00
Jeff Kelley
27608c91d0
Merge pull request #4081 from MapaX/master
Fixed CLANG_ENABLE_CODE_COVERAGE flag so release can be made
2018-10-02 12:10:55 -04:00
Jeff Kelley
1bd73c7fca
Merge pull request #4256 from classdojo/cd-master
Fix crashes and memory leaks
2018-09-24 14:00:21 -04:00
Jeff Kelley
59e92b18c6
Merge pull request #4293 from AFNetworking/xcode-10
Update Travis config for Xcode 10.
2018-09-24 13:24:04 -04:00
Jeff Kelley
fdbec013c4 Update Travis config for Xcode 10. 2018-09-24 12:35:04 -04:00
Jeff Kelley
99cda82d33
Merge pull request #4286 from rob2468/master
update README.md, the old "Foundation URL Loading System" link is 404
2018-09-24 12:27:48 -04:00
Jeff Kelley
e46e64c274
Merge pull request #4248 from LMsgSendNilSelf/#4247
Add an ability that notification-observer know which reachability it belongs
2018-09-21 16:16:33 -04:00
Jeff Kelley
390e8fa6d4
Merge pull request #4262 from jin940/master
Chinese version for CONTRIBUTING.md
2018-09-21 15:41:04 -04:00
wangpeng
dea4316db0 Add test for object posting notification 2018-09-20 16:15:30 +08:00
jam.chenjun
23a6f442c8 update README.md, the old "Foundation URL Loading System" link is 404 2018-09-18 15:01:40 +08:00
Jakub Kaspar
9bb8ea7452 Change test name to correct one 2018-09-13 10:56:00 -07:00
Jakub Kaspar
af23240a4b Change default teardown methods to tests 2018-09-11 12:58:25 -07:00
Jakub Kaspar
0579f71d5a Update tests to use new API 2018-09-11 12:20:21 -07:00
Jakub Kaspar
864c8d6aed Update PR feedback, add more tests 2018-09-11 12:15:01 -07:00
Jeff Kelley
7b48feb383
Merge branch 'master' into master 2018-09-08 11:54:27 -04:00
Jakub Kaspar
3c54e1f8a5 Add test 2018-08-14 08:52:28 +02:00
Jakub Kaspar
a8758d26d5 Merge branch 'master' into cd-master
# Conflicts:
#	Tests/Tests/AFURLSessionManagerTests.m
2018-08-13 22:44:03 +02:00
Jakub Kaspar
64795368ae Merge remote-tracking branch 'as_origin/master'
# Conflicts:
#	AFNetworking/AFNetworkReachabilityManager.h
#	AFNetworking/AFURLSessionManager.m
2018-08-13 22:42:56 +02:00
Jakub Kaspar
86c8cc2263 remove temporary method that could be doing nothing 2018-08-13 22:34:41 +02:00
Jeff Kelley
b892e566f9
Merge pull request #4269 from AFNetworking/update-httpbin-certificates-october-2018
Update HTTPBin certificates, valid through October 2018.
2018-08-08 16:46:47 -04:00
Jeff Kelley
12088d6d37 Update HTTPBin certificates. 2018-08-08 14:23:40 -04:00
Jeff Kelley
a24b4896bb
Merge pull request #4113 from stnslw/headers-per-request
Support for setting headers per request when using AFHTTPSessionManager.
2018-07-31 00:05:58 -04:00
Jeff Kelley
a101152743
Merge pull request #4237 from Caelink/master
Implement two ways to collect NSURLSessionTaskMetrics
2018-07-30 23:47:01 -04:00
jin940
5b92ed3368
Chinese CONTRIBUTING.md translate
Chinese CONTRIBUTING.md translate
2018-07-29 01:07:45 +08:00
jin940
17edb8138a
Delete CONTRIBUTING_CH.md 2018-07-29 01:06:01 +08:00
jin940
7ff008b872
Chinese Contributing.md translate
Chinese Contributing.md translate
2018-07-29 01:00:38 +08:00
wangpeng
619a65b57e rollback method 'AFPostReachabilityStatusChange' 2018-07-25 22:00:31 +08:00
wangpeng
91cc666887 Use AFNetworkReachabilityManager to compare consistency of notification posts and gets, instead of SCNetworkReachabilityRef.
And test case reference.
2018-07-25 21:48:31 +08:00
Jakub Kaspar
926d4dbb8b Remove test that is nilling session manually as it's not possible anymore to not have valid session (correctly) 2018-07-23 12:20:10 +02:00
Jakub Kaspar
5544ef03f4 Merge branch 'master' into cd-master
* master: (71 commits)
  Specify Xcode 9.4 in Travis file.
  Update AFImageDownloader.m
  Safely get mergedTasks On responseQueue
  Update HTTPBin certificates.
  Update block usage requirements.
  Fixed tests.
  Update AFAutoPurgingImageCache.m
  Preparing for the 3.2.1 release
  Fix issues with AFCompatibilityMacros.h
  Add AFCompatibilityMacros.h to podspec.
  Add new .env files for iOS 11.x
  Update SDK settings in Travis config.
  Use old SDKs to test earlier versions of iOS 11.
  Update default SDK for iOS and tvOS
  Update umbrella header.
  Update HTTPBin certificates for April 2018.
  Remove beta from 9.3 image
  Update asset catalog JSON.
  Tweak tests to send expressions directly.
  Add tests and also prohibit +new from working.
  ...

# Conflicts:
#	AFNetworking/AFNetworkReachabilityManager.h
#	AFNetworking/AFURLSessionManager.m
2018-07-23 11:15:48 +02:00
wangpeng
ffbcabeb58 Add tests for verifing reachability manager consistence for notification posting and getting 2018-07-15 15:51:03 +08:00
Jeff Kelley
7642bcf659
Merge pull request #4249 from AFNetworking/xcode-9.4
Update Travis settings for Xcode 9.4
2018-07-13 18:04:45 -04:00