//
//  AppIdentUUID.m
//  SYMobilePortal
//
//  Created by xiejiangbo on 2018/5/16.
//  Copyright © 2018年 yin chen. All rights reserved.
//

#import "AppIdentUUID.h"
#import <Security/Security.h>
#import "APPIdentificationManage.h"

@implementation AppIdentUUID

static AppIdentUUID* appIdentUUID;

+ (AppIdentUUID *)ShareAppIdentUUID{
    if (! appIdentUUID){
        appIdentUUID=[[super allocWithZone:NULL]init];
    }
    return  appIdentUUID;
}
/**
 *  获取手机设备的唯一标识UDID
 *
 *  @return 得到的uuidstring
 */
- (NSString *)getAllDeviceUUID{
//    NSString *identifierForVendor = [[UIDevice currentDevice].identifierForVendor UUIDString];
    APPIdentificationManage *identifierManage = [[APPIdentificationManage alloc] init];
    NSString *identi = [identifierManage readUDID];
    NSString *dataStr = [identi stringByReplacingOccurrencesOfString:@"-" withString:@""];
    NSLog(@"=======AllDeviceUUID: %@", dataStr);
    return dataStr;
}
@end
