Latest 1.0.4
Homepage https://github.com/willzh/SZDebugBall
License MIT
Platforms ios 10.0
Authors

CI Status
Version
License
Platform

Feature

  1. 环境切换
    • [x] 手动切换环境
    • [x] 代码切换环境
    • [x] 新增环境
    • [x] 删除环境

Example

#import <SZDebugBall/SZEnvironmentManager.h>
[SZEnvironmentManager configEnvs:@[@"开发", @"测试", @"生产"] address:@[@"http://www.api.com/develop", @"http://www.api.com/test", @"http://www.api.com/product"]];

[SZEnvironmentManager configCurrentAddress:@"http://www.api.com/develop"];

NSLog(@"BASE_URL:%@", [SZEnvironmentManager currentAddress]);

/// 环境切换成功后的通知。环境切换成功后,会自动退出 App 一次。
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(environmentChanged:) name:SZEnvironmentChangedNotification object:nil];

Screenshot

screenshot

Installation

SZDebugBall is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'SZDebugBall'

License

SZDebugBall is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SZDebugBall",
    "version": "1.0.4",
    "summary": "App u5f00u53d1uff0cu6d4bu8bd5u5e2eu52a9u3002u5185u73afu5883u5207u6362.",
    "description": "1. App u5185u73afu5883u5207u6362.n2.u67e5u770b App u672cu5730u6587u4ef6(u6682u65e0)n3.u67e5u770bu9875u9762u5c42u7ea7(u6682u65e0)",
    "homepage": "https://github.com/willzh/SZDebugBall",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "willzh": "[email protected]"
    },
    "source": {
        "git": "https://github.com/willzh/SZDebugBall.git",
        "tag": "1.0.4"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "SZDebugBall/Classes/**/*"
}

Pin It on Pinterest

Share This