-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathABSHelper.py
55 lines (37 loc) · 1.35 KB
/
ABSHelper.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
from pathlib import Path
from Logger.Logger import *
from ConfigParser import *
from SystemHelper import *
class ABSHelper():
__instance = None
__Args = None
def __new__(cls, *args, **kwargs):
if not cls.__instance:
cls.__instance = super().__new__(cls, *args, **kwargs)
return cls.__instance
def Get():
return ABSHelper()
def Init(self,Args):
self.__Args = Args
def IsAgoraUEProject(self):
## it means this is an ue project with agora sdk
return True
def IsAgoraSDKAudioOnly(self):
return self.__Args.sdkisaudioonly if self.__Args else None
def HasPostXcodeBuildAdded(self):
return self.__Args.AddPostXcodeBuild if self.__Args else None
def GetResourceTagName(self):
return self.__Args.ResourceTagName if self.__Args else None
def GetAgoraSDKVer(self):
return self.__Args.agorasdk if self.__Args else None
def GetIOSCert(self):
return self.__Args.ioscert if self.__Args else None
def IsExampleTypeUEBlueprint(self):
path_uproject_file = Path(self.__Args.uprojectpath)
uproject_name = path_uproject_file.stem
bRet = True
if uproject_name == "AgoraBPExample":
bRet = True
else:
bRet = False
return bRet