SZDebugBall 1.0.10

SZDebugBall 1.0.10

willzh 维护。



  • willzh

SZDebugBall

CI Status Version License Platform

特性

  1. 环境切换
  • 手动切换环境
  • 代码切换环境
  • 新增环境
  • 删除环境
  1. 查看 App 本地文件(beta)
  2. 查看页面层级(beta)
  3. 查看 UserDefaults(beta)

示例

#import <SZDebugBall/SZDebugBall.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

安装

SZDebugBall 通过 CocoaPods 提供。要安装它,只需将以下行添加到 Podfile:

pod 'SZDebugBall'

许可

SZDebugBall采用MIT许可证。有关更多信息,请参阅LICENSE文件。