CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

GRoute 1.0.6

GRoute 1.0.6

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by weibo.



GRoute 1.0.6

  • By
  • weibo

GRoute

Server config route platform

Feature List

  • 服务端能够灵活的配置各个参数
  • 服务端能根据客户端请求属性返回对应的 JSON、支持条件的配置
  • 服务器能够定时检测服务可用性,做出预警(可选)
  • SDK 可配置常规基本参数:版本,平台…
  • SDK 提供给 APP 方便的查询 JSON 数据的接口
  • SDK 支持缓存设置
  • SDK 支持多源配置,保证配置服务器的高可用性

Config Json

{
    "code": 200,
    "msg": "success",
    "base_url": ["http://www.baidu.com","http://www.163.com","http://www.sina.com"]
}

##接口

##GET

url=域名/groute/v1/config?app_id=xx&timestamp=xx&sign=xxx

Sign(小写)

sign = sha1(sercet + app_id + timestamp)

密钥+app_id+时间戳

##注意事项

timestamp:时间戳误差在5分钟之内。超出会返回错误

Usage

Android: 详情

iOS: 详情

License

Copyright (C) GRoute Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.