未验证 提交 9657a5bd 编写于 作者: mVanson's avatar mVanson 提交者: GitHub

[iOS]Remove AFNetworking dependency from DoraemonSettingViewController,Update PACKAGENAME (#879)

* [3.0.8]Remove AFNetworking dependency from DoraemonSettingViewController,Update PACKAGENAME

* [Fix]Check error in URLSession completionHandler task
上级 e08a9445
//
// DoraemonBaseViewController.h
// DoraemonKitDemo
// DoraemonKit
//
// Created by yixiang on 2017/12/11.
// Copyright © 2017年 yixiang. All rights reserved.
......
//
// DoraemonBaseViewController.m
// DoraemonKitDemo
// DoraemonKit
//
// Created by yixiang on 2017/12/11.
// Copyright © 2017年 yixiang. All rights reserved.
......
//
// DoraemonStatusBarViewController.h
// AFNetworking
// DoraemonKit
//
// Created by 张伟 on 2019/2/22.
//
......
//
// DoraemonStatusBarViewController.m
// AFNetworking
// DoraemonKit
//
// Created by 张伟 on 2019/2/22.
//
......
//
// DoraemonBaseBigTitleView.h
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/12/2.
//
......
//
// DoraemonBaseBigTitleView.m
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/12/2.
//
......
//
// DoraemonCacheManager.h
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2017/12/12.
//
......
//
// DoraemonCacheManager.m
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2017/12/12.
//
......
//
// NSObject+Doraemon.h
// AFNetworking
// DoraemonKit
//
// Created by yixiang on 2018/7/2.
//
......
//
// NSObject+Doraemon.m
// AFNetworking
// DoraemonKit
//
// Created by yixiang on 2018/7/2.
//
......
//
// UIImage+Doraemon.h
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2017/12/11.
//
......
//
// UIImage+DoraemonKit.m
// DoraemonKit-DoraemonKit
// UIImage+Doraemon.m
// DoraemonKit
//
// Created by yixiang on 2017/12/11.
//
......
//
// UIView+DoraemonPositioning.m
// UIView+Doraemon.m
// DoraemonKit
//
// Created by xgb on 2018/11/15.
......
//
// DoraemonAlertUtil.h
// AFNetworking
// DoraemonKit
//
// Created by didi on 2019/8/27.
//
......
//
// DoraemonAlertUtil.m
// AFNetworking
// DoraemonKit
//
// Created by didi on 2019/8/27.
//
......
//
// DoraemonCellButton.h
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/6/15.
//
......
//
// DoraemonCellButton.m
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/6/15.
//
......
//
// DoraemonCellInput.h
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/12/7.
//
......
//
// DoraemonCellInput.m
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/12/7.
//
......
//
// DoraemonSwitchView.h
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/6/13.
//
......
//
// DoraemonSwitchView.m
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/6/13.
//
......
//
// Axis.h
// Chart
// DoraemonChartAxis.h
// DoraemonKit
//
// Created by 0xd on 2019/9/4.
// Copyright © 2019 000. All rights reserved.
......
//
// Axis.m
// Chart
// DoraemonChartAxis.m
// DoraemonKit
//
// Created by 0xd on 2019/9/4.
// Copyright © 2019 000. All rights reserved.
......
//
// ChartDataItem.h
// oxCharts
// DoraemonChartDataItem.h
// DoraemonKit
//
// Created by 0xd on 2019/9/9.
// Copyright © 2019 000. All rights reserved.
......
//
// ChartDataItem.m
// oxCharts
// DoraemonChartDataItem.m
// DoraemonKit
//
// Created by 0xd on 2019/9/9.
// Copyright © 2019 000. All rights reserved.
......
//
// PieChart.h
// DoraemonPieChart.h
// DoraemonKit
//
// Created by 0xd on 2019/9/25.
......
//
// PieChart.m
// DoraemonPieChart.m
// DoraemonKit
//
// Created by 0xd on 2019/9/25.
......
//
// XAxis.h
// oxCharts
// DoraemonXAxis.h
// DoraemonKit
//
// Created by 0xd on 2019/9/9.
// Copyright © 2019 000. All rights reserved.
......
//
// XAxis.m
// oxCharts
// DoraemonXAxis.m
// DoraemonKit
//
// Created by 0xd on 2019/9/9.
// Copyright © 2019 000. All rights reserved.
......
//
// YAxis.h
// oxCharts
// DoraemonYAxis.h
// DoraemonKit
//
// Created by 0xd on 2019/9/6.
// Copyright © 2019 000. All rights reserved.
......
//
// YAxis.m
// oxCharts
// DoraemonYAxis.m
// DoraemonKit
//
// Created by 0xd on 2019/9/6.
// Copyright © 2019 000. All rights reserved.
......
//
// DoraemonCopyLabel.h
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by didi on 2020/2/26.
//
......
//
// DoraemonCopyLabel.m
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by didi on 2020/2/26.
//
......
//
// DoraemonOscillogramView.h
// CocoaLumberjack
// DoraemonKit
//
// Created by yixiang on 2018/1/3.
//
......
//
// DoraemonOscillogramView.m
// CocoaLumberjack
// DoraemonKit
//
// Created by yixiang on 2018/1/3.
//
......
//
// DoraemonOscillogramViewController.h
// CocoaLumberjack
// DoraemonKit
//
// Created by yixiang on 2018/1/4.
//
......
//
// DoraemonOscillogramViewController.m
// CocoaLumberjack
// DoraemonKit
//
// Created by yixiang on 2018/1/4.
//
......
//
// DoraemonOscillogramWindow.h
// CocoaLumberjack
// DoraemonKit
//
// Created by yixiang on 2018/1/3.
//
......
//
// DoraemonOscillogramWindow.m
// CocoaLumberjack
// DoraemonKit
//
// Created by yixiang on 2018/1/3.
//
......
//
// DoraemonOscillogramWindowManager.h
// AFNetworking
// DoraemonKit
//
// Created by yixiang on 2019/5/16.
//
......
//
// DoraemonOscillogramWindowManager.m
// AFNetworking
// DoraemonKit
//
// Created by yixiang on 2019/5/16.
//
......
//
// DoraemonToastUtil.h
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/5/4.
//
......
//
// DoraemonToastUtil.m
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/5/4.
//
......
//
// DoraemonDefine.h
// DoraemonKitDemo
// DoraemonKit
//
// Created by yixiang on 2017/12/11.
// Copyright © 2017年 yixiang. All rights reserved.
......@@ -18,7 +18,7 @@
#import "DoraemonAlertUtil.h"
#import "DoraemonUtil.h"
#define DoKitVersion @"3.0.7"
#define DoKitVersion @"3.0.8"
#define DoKitKbChange(x) x * 1000
//#define DoKit_OpenLog
......
//
// DoraemonEntryWindow.h
// DoraemonKitDemo
// DoraemonKit
//
// Created by yixiang on 2017/12/11.
// Copyright © 2017年 yixiang. All rights reserved.
......
//
// DoraemonEntryWindow.m
// DoraemonKitDemo
// DoraemonKit
//
// Created by yixiang on 2017/12/11.
// Copyright © 2017年 yixiang. All rights reserved.
......
//
// DoraemonHomeWindow.h
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/5/16.
//
......
//
// DoraemonHomeWindow.m
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/5/16.
//
......
//
// DoraemonSettingViewController.h
// AFNetworking
// DoraemonKit
//
// Created by didi on 2020/4/24.
//
......
//
// DoraemonSettingViewController.m
// AFNetworking
// DoraemonKit
//
// Created by didi on 2020/4/24.
//
......@@ -9,9 +9,9 @@
#import "DoraemonDefine.h"
#import "DoraemonCellButton.h"
#import "DoraemonKitManagerViewController.h"
#import <AFNetworking/AFNetworking.h>
#import "DoraemonSettingCell.h"
#import "DoraemonDefaultWebViewController.h"
#import "UIViewController+Doraemon.h"
@interface DoraemonSettingViewController ()<DoraemonCellButtonDelegate, UITableViewDelegate, UITableViewDataSource>
......@@ -34,20 +34,30 @@
[self.view addSubview:self.tableView];
}
- (void)viewDidLayoutSubviews {
[super viewDidLayoutSubviews];
self.tableView.frame = [self fullscreen];
}
- (void)loadData {
AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
manager.requestSerializer = [AFHTTPRequestSerializer serializer];// 请求
manager.responseSerializer = [AFHTTPResponseSerializer serializer];// 响应
manager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/json",@"text/javascript",@"text/html", nil];
WEAKSELF(weakSelf)
[manager GET:@"http://star.xiaojukeji.com/config/get.node?city=-1&areaid=&name=group" parameters:nil headers:nil progress:nil success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
NSDictionary *dataDic = [NSJSONSerialization JSONObjectWithData:responseObject options:kNilOptions error:nil];
weakSelf.dataArr = [[dataDic objectForKey:@"data"] objectForKey:@"group"];
[weakSelf.tableView reloadData];
} failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
NSLog(@"failure");
NSURLSession *session = [NSURLSession sharedSession];
NSURL *url = [NSURL URLWithString:@"http://star.xiaojukeji.com/config/get.node?city=-1&areaid=&name=group"];
NSURLSessionTask *task = [session dataTaskWithURL:url
completionHandler:^(NSData *data, NSURLResponse *response, NSError* error) {
if (error == nil) {
// NSLog(@"%@", [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:nil]);
NSDictionary *dataDic = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:nil];
weakSelf.dataArr = [[dataDic objectForKey:@"data"] objectForKey:@"group"];
dispatch_async(dispatch_get_main_queue(), ^{
[weakSelf.tableView reloadData];
});
}
}];
[task resume];
}
#pragma mark -- DoraemonCellButtonDelegate
......
//
// DoraemonKitManagerViewController.h
// AFNetworking
// DoraemonKit
//
// Created by didi on 2020/4/24.
//
......
//
// DoraemonKitManagerViewController.m
// AFNetworking
// DoraemonKit
//
// Created by didi on 2020/4/24.
//
......
//
// DoraemonKitManagerCell.h
// AFNetworking
// DoraemonKit
//
// Created by didi on 2020/4/28.
//
......
//
// DoraemonKitManagerCell.m
// AFNetworking
// DoraemonKit
//
// Created by didi on 2020/4/28.
//
......
//
// DoraemonKitManagerHeadCell.h
// AFNetworking
// DoraemonKit
//
// Created by didi on 2020/4/28.
//
......
//
// DoraemonKitManagerHeadCell.m
// AFNetworking
// DoraemonKit
//
// Created by didi on 2020/4/28.
//
......
//
// DoraemonKitManagerResetCell.h
// AFNetworking
// DoraemonKit
//
// Created by didi on 2020/4/28.
//
......
//
// DoraemonKitManagerResetCell.m
// AFNetworking
// DoraemonKit
//
// Created by didi on 2020/4/28.
//
......
//
// DoraemonNSURLProtocol.h
// Aspects
// DoraemonKit
//
// Created by yixiang on 2018/4/11.
//
......
//
// DoraemonNSURLProtocol.m
// Aspects
// DoraemonKit
//
// Created by yixiang on 2018/4/11.
//
......
//
// DoraemonURLSessionDemux.h
// AFNetworking
// DoraemonKit
//
// Created by yixiang on 2019/1/16.
//
......
//
// DoraemonURLSessionDemux.m
// AFNetworking
// DoraemonKit
//
// Created by yixiang on 2019/1/16.
//
......
//
// NSURLSessionConfiguration+Doraemon.h
// AFNetworking
// DoraemonKit
//
// Created by yixiang on 2018/7/2.
//
......
//
// NSURLSessionConfiguration+Doraemon.m
// AFNetworking
// DoraemonKit
//
// Created by yixiang on 2018/7/2.
//
......
//
// DoraemonAppInfoCell.h
// Aspects
// DoraemonKit
//
// Created by yixiang on 2018/4/14.
//
......
//
// DoraemonAppInfoCell.m
// Aspects
// DoraemonKit
//
// Created by yixiang on 2018/4/14.
//
......
//
// DoraemonAppInfoPlugin.h
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/4/13.
//
......
//
// DoraemonAppInfoPlugin.m
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/4/13.
//
......
//
// DoraemonAppInfoUtil.h
// Aspects
// DoraemonKit
//
// Created by yixiang on 2018/4/15.
//
......
//
// DoraemonAppInfoUtil.m
// Aspects
// DoraemonKit
//
// Created by yixiang on 2018/4/15.
//
......
//
// DoraemonAppInfoViewController.h
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/4/13.
//
......
//
// DoraemonAppInfoViewController.m
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/4/13.
//
......
//
// DoraemonAppSettingPlugin.h
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by didi on 2020/2/28.
//
......
//
// DoraemonAppSettingPlugin.m
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by didi on 2020/2/28.
//
......
//
// DoraemonDeleteLocalDataPlugin.h
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/11/22.
//
......
//
// DoraemonDeleteLocalDataPlugin.m
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/11/22.
//
......
//
// DoraemonDeleteLocalDataViewController.h
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/11/22.
//
......
//
// DoraemonDeleteLocalDataViewController.m
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/11/22.
//
......
//
// DoraemonDefaultWebViewController.h
// AFNetworking
// DoraemonKit
//
// Created by yixiang on 2018/12/27.
//
......
//
// DoraemonDefaultWebViewController.m
// AFNetworking
// DoraemonKit
//
// Created by yixiang on 2018/12/27.
//
......
//
// DoraemonH5Plugin.h
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/5/4.
//
......
//
// DoraemonH5Plugin.m
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/5/4.
//
......
//
// DoraemonH5ViewController.h
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/5/4.
//
......
//
// DoraemonH5ViewController.m
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/5/4.
//
......
//
// DoraemonQRCodeViewController.h
// AFNetworking
// DoraemonKit
//
// Created by love on 2019/5/22.
//
......
//
// DoraemonQRCodeViewController.m
// AFNetworking
// DoraemonKit
//
// Created by love on 2019/5/22.
//
......
//
// DoraemonQRScanView.h
// AFNetworking
// DoraemonKit
//
// Created by didi on 2020/3/5.
//
......
//
// DoraemonQRScanView.m
// AFNetworking
// DoraemonKit
//
// Created by didi on 2020/3/5.
//
......
//
// DoraemonNSLogPlugin.h
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/11/25.
//
......
//
// DoraemonNSLogPlugin.m
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/11/25.
//
......
//
// DoraemonNSLogViewController.h
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/11/25.
//
......
//
// DoraemonNSLogViewController.m
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/11/25.
//
......
//
// DoraemonNSLogManager.h
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/11/26.
//
......
//
// DoraemonNSLogManager.m
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/11/26.
//
......
//
// DoraemonNSLogModel.h
// AFNetworking
// DoraemonKit
//
// Created by yixiang on 2018/11/26.
//
......
//
// DoraemonNSLogModel.m
// AFNetworking
// DoraemonKit
//
// Created by yixiang on 2018/11/26.
//
......
//
// DoraemonNSLogListCell.h
// AFNetworking
// DoraemonKit
//
// Created by yixiang on 2018/11/26.
//
......
//
// DoraemonNSLogListCell.m
// AFNetworking
// DoraemonKit
//
// Created by yixiang on 2018/11/26.
//
......
//
// DoraemonNSLogListViewController.h
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/11/26.
//
......
//
// DoraemonNSLogListViewController.m
// DoraemonKit-DoraemonKit
// DoraemonKit
//
// Created by yixiang on 2018/11/26.
//
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册