Skip to content

Commit 24b1d31

Browse files
committed
set IDFA when initSDK
1 parent 8c17154 commit 24b1d31

File tree

1 file changed

+4
-0
lines changed
  • VideoPlsLuaViewManagerSDK/VideoPlsLuaViewManagerSDK/VideoPlsLuaViewManagerSDK/VPLua/Manager

1 file changed

+4
-0
lines changed

VideoPlsLuaViewManagerSDK/VideoPlsLuaViewManagerSDK/VideoPlsLuaViewManagerSDK/VPLua/Manager/VPLuaSDK.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#import "VPUPSDKInfo.h"
1414
#import "VPUPGeneralInfo.h"
1515
#import "VPLuaCommonInfo.h"
16+
#import <AdSupport/AdSupport.h>
1617

1718
//NSString *const VPLuaScriptServerUrl = @"http://dev-videopublicapi.videojj.com/videoos-api/api/fileVersion";
1819
NSString *const VPLuaServerHost = @"https://os-saas.videojj.com/os-api-saas";
@@ -42,6 +43,9 @@ + (instancetype)sharedSDK {
4243
}
4344

4445
+ (void)initSDK {
46+
if (![VPUPGeneralInfo IDFA]) {
47+
[VPLuaSDK setIDFA:[[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString]];
48+
}
4549
[VPLuaSDK checkLuaFiles];
4650
[[VPLuaSDK sharedSDK] luaScriptManager];
4751
}

0 commit comments

Comments
 (0)