[Add] EverlinkBroadcastSDK 3.1.1
[CocoaPods.git] / Specs / d / a / 7 / INSRetrofit / 1.1.0 / INSRetrofit.podspec.json
blob0c9b1664bcb2626132f503a7d22365d80fec03c4
2   "name": "INSRetrofit",
3   "version": "1.1.0",
4   "summary": "Network Manager By Swift.",
5   "description": "Swift网络库,用法如下:\n\t\n\t初始化\n\tlet ret = INS_RetrofitUtil.initWithKey(\"12345678\", baseURL: URL.init(string: \"https://uat-jk.jlflove.com\")!, enableLog: true, parseEngine: nil)\n\n\n\t发送单个请求\n\tINS_RetrofitUtil\n            .create(serviceClass: LoginService.self)\n            .loginRequest(params)\n            .subscribe(on: .instance)\n            .observe(on: .asyncInstance)\n            .onResult { result, err in\n                \n            }\n\t//2个请求串发, 请求的返回model可以不一致\n\tlet req3 = INS_RetrofitUtil\n            .create(serviceClass: LoginService.self)\n            .loginRequest(params)\n            .subscribe(on: .instance)\n            .observe(on: .asyncInstance)\n\n        req3.compat { loginModel, err -> INS_Observable<BaseResult<InfoModel>> in\n            let req4 = INS_RetrofitUtil\n                .create(serviceClass: LoginService.self)\n                .loginRequest2(params)\n                .subscribe(on: .instance)\n                .observe(on: .asyncInstance)\n            return req4\n        } resultHandler: { login2Model, err in\n           \n        }\n\n\t自定义请求\n\tclass LoginService: INS_ApiCourseService {\n    \t\tfunc loginRequest(_ param: Dictionary<String, String>) -> INS_Observable<PlainResult> {\n        \tlet req = INS_RequestBuilder.create()\n            \t.setURL(URL.init(string: \"https://uat-jk.jlflove.com\")!)\n            \t.setPath(\"flove/user/login\")\n            \t.setHttpMethod(.post)\n            \t.setBodyParameters(param)\n            \t.builder()\n        \treturn Self.loadRequest(req)\n    \t}",
6   "homepage": "https://github.com/FicentAlanZeng/INSRetrofit",
7   "license": "MIT",
8   "authors": {
9     "Alan": "876224031@qq.com"
10   },
11   "platforms": {
12     "ios": "12.0"
13   },
14   "swift_versions": "5.0",
15   "pod_target_xcconfig": {
16     "VALID_ARCHS": "x86_64 armv7 armv7s arm64"
17   },
18   "source": {
19     "git": "https://github.com/FicentAlanZeng/INSRetrofit.git",
20     "tag": "v1.1.0"
21   },
22   "vendored_frameworks": "Source/*.framework",
23   "frameworks": [
24     "UIKit",
25     "Foundation"
26   ],
27   "dependencies": {
28     "Alamofire": [
29       "~> 5.6.1"
30     ],
31     "Moya/RxSwift": [
32       "~> 15.0.0"
33     ],
34     "ObjectMapper": [
35       "~> 4.2.0"
36     ],
37     "RxSwift": [
38       "~> 6.2.0"
39     ]
40   },
41   "swift_version": "5.0"