//
//  UmCommon.m
//  JZPlus_RN
//
//  Created by 丁乐 on 2020/6/5.
//

#import "UmCommon.h"

#import <UMCommonLog/UMCommonLogHeaders.h>
#import <UMCommon/UMCommon.h>
#import <UMShare/UMShare.h>


@implementation UmCommon
RCT_EXPORT_MODULE();

- (dispatch_queue_t)methodQueue{
  return dispatch_get_main_queue();
}

/// 初始化友盟
/// @param appkey 友盟唯一id
/// @param channel 渠道号
/// @param debug 是否是调试模式
RCT_EXPORT_METHOD(initWithAppkey:(NSString *)appkey channel:(NSString *)channel debug:(BOOL)debug pushSecret:(NSString *)pushSecret){
  
  [UMCommonLogManager setUpUMCommonLogManager];
  [UMConfigure setLogEnabled:debug];//设置打开日志
  [UMConfigure initWithAppkey:appkey channel:channel];
}



@end
