RNUMConfigure.m 536 B

123456789101112131415161718192021
  1. //
  2. // RNUMConfigure.m
  3. // UMComponent
  4. //
  5. // Created by wyq.Cloudayc on 14/09/2017.
  6. // Copyright © 2017 Facebook. All rights reserved.
  7. //
  8. #import "RNUMConfigure.h"
  9. @implementation RNUMConfigure
  10. + (void)initWithAppkey:(NSString *)appkey channel:(NSString *)channel
  11. {
  12. SEL sel = NSSelectorFromString(@"setWraperType:wrapperVersion:");
  13. if ([UMConfigure respondsToSelector:sel]) {
  14. [UMConfigure performSelector:sel withObject:@"react-native" withObject:@"1.0"];
  15. }
  16. [UMConfigure initWithAppkey:appkey channel:channel];
  17. }
  18. @end