Skip to content

Files

Latest commit

 

History

History
87 lines (60 loc) · 3.7 KB

Monkey_updatefile.md

File metadata and controls

87 lines (60 loc) · 3.7 KB

更新日志

2015.10.29

1.去除octokit,follow和star操作都采用token来做,修改相关VC,并且network增加相应的请求

2.采用oauth2登录,去除LoginViewController的octokit登录,增加LoginWebViewController的oauth2登录

3.增加@weakify的宏定义

4.支持无网的时候缓存查看,加快网络加载速度

          self.request = [NSMutableURLRequest requestWithURL:finalURL
                                                 cachePolicy:NSURLRequestReloadIgnoringLocalCacheData
                                             timeoutInterval:kMKNetworkKitRequestTimeOutInSeconds];
          

修改为

      if (![MKNetworkOperation connectedToNetwork]) {
          //add by @coderyi.com
          self.request = [NSMutableURLRequest requestWithURL:finalURL
                                                 cachePolicy:NSURLRequestReturnCacheDataDontLoad
                                             timeoutInterval:kMKNetworkKitRequestTimeOutInSeconds];
          

      }else{
          self.request = [NSMutableURLRequest requestWithURL:finalURL
                                                 cachePolicy:NSURLRequestUseProtocolCachePolicy
                                             timeoutInterval:kMKNetworkKitRequestTimeOutInSeconds];
          

          //NSURLRequestReloadIgnoringLocalCacheData modify NSURLRequestUseProtocolCachePolicy @coderyi.com
      }

5.终于修复下面这个bug

[NSNull rangeOfCharacterFromSet:]: unrecognized selector sent to instance

其实就是这里没做null判断,弱了我这么久 这个接口这方法 //https://developer.github.com/v3/users/#get-a-single-user

YiNetworkEngine  userDetailWithUserName

UserModel修改一下就好

	model.location =  [[dict objectForKey:@"location"] isNull]?@"":[dict objectForKey:@"location"];
//    model.location =  [dict objectForKey:@"location"];
2015.9.21

主要最低支持版本iOS7.0提高至iOS8.0

1.由于Xcode7出现

“embedded dylibs/frameworks are only supported on iOS 8.0 and later (@rpath/ISO8601DateFormatter.framework/ISO8601DateFormatter) for architecture x86_64”错误,所有的embedded binaries库不能加载,发现修改Deployment Target为8.0以上就能修复此问题。但其实这个问题在Xcode6.3上我并不会出现。

2.bitcode的问题

iOS9 SDK新增了对App瘦身的功能,详情见App thining。为了正常使用友盟DK,需要在Build Setting中将Enable bitcode关闭,或设置编译标识ENABLE_BITCODE=NO。

注:bitcode仅在Xcode7以上显示并默认开启。

当然也可以写在新的支持bitcode的第三方库,iOS 统计分析SDK v3.5.16

3.HTTP传输安全的问题

为了强制增强数据访问安全, iOS9 默认会把 所有的http请求 所有从NSURLConnection 、 CFURL 、 NSURLSession发出的 HTTP 请求,都改为 HTTPS 请求:iOS9.x-SDK编译时,默认会让所有从NSURLConnection 、 CFURL 、 NSURLSession发出的 HTTP 请求统一采用TLS 1.2 协议。

如不更新,可通过在 Info.plist 中声明,倒退回不安全的网络请求。而这一做法,官方文档称为ATS,全称为App Transport Security,是iOS9的一个新特性。

NSAppTransportSecurity NSAllowsArbitraryLoads

参考链接:

适配iOS9系统

iOS9适配系列教程