1 Star 0 Fork 0

rachelzhao/aliyundemo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
sdk_type_config.gradle 3.73 KB
一键复制 编辑 原始数据 按行查看 历史
class AIOSdkType {
public static final def AliVCSDK_Standard = "AliVCSDK_Standard"
public static final def AliVCSDK_Premium = "AliVCSDK_Premium"
public static final def AliVCSDK_UGC = "AliVCSDK_UGC"
public static final def AliVCSDK_UGCPro = "AliVCSDK_UGCPro"
public static final def AliVCSDK_BasicLive = "AliVCSDK_BasicLive"
public static final def AliVCSDK_InteractiveLive = "AliVCSDK_InteractiveLive"
public static final def AliVCSDK_StandardLive = "AliVCSDK_StandardLive"
public static final def AliVCSDK_PremiumLive = "AliVCSDK_PremiumLive"
}
def AIO_SDK_TYPE = "AliVCSDK_Premium"
if (hasProperty("SDK_TYPE")) {
AIO_SDK_TYPE = SDK_TYPE
}
def IS_AIO = true
if (hasProperty("allInOne")) {
IS_AIO = allInOne
}
def hasLive() {
def sdkType = "AliVCSDK_Premium"
if (hasProperty("SDK_TYPE")) {
sdkType = SDK_TYPE
}
println("hasLive sdkType = " + sdkType)
return AIOSdkType.AliVCSDK_Premium.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_Standard.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_BasicLive.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_InteractiveLive.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_StandardLive.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_PremiumLive.equalsIgnoreCase(sdkType)
}
def hasUGC() {
def sdkType = "AliVCSDK_Premium"
if (hasProperty("SDK_TYPE")) {
sdkType = SDK_TYPE
}
println("hasUGC sdkType = " + sdkType)
return AIOSdkType.AliVCSDK_Premium.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_Standard.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_UGC.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_UGCPro.equalsIgnoreCase(sdkType)
}
def hasPlayer() {
return true
}
def hasRTS() {
def sdkType = "AliVCSDK_Premium"
if (hasProperty("SDK_TYPE")) {
sdkType = SDK_TYPE
}
println("hasLive sdkType = " + sdkType)
return AIOSdkType.AliVCSDK_Premium.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_Standard.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_BasicLive.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_InteractiveLive.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_StandardLive.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_PremiumLive.equalsIgnoreCase(sdkType)
}
def hasQueen() {
def sdkType = "AliVCSDK_Premium"
if (hasProperty("SDK_TYPE")) {
sdkType = SDK_TYPE
}
println("hasQueen sdkType = " + sdkType)
def isAio = true
if (hasProperty("allInOne")) {
isAio = allInOne
}
if (!isAio) {
return false
}
return AIOSdkType.AliVCSDK_Premium.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_UGCPro.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_StandardLive.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_PremiumLive.equalsIgnoreCase(sdkType)
}
def hasInteractiveLive() {
def sdkType = "AliVCSDK_Premium"
if (hasProperty("SDK_TYPE")) {
sdkType = SDK_TYPE
}
println("hasInteractiveLive sdkType = " + sdkType)
return AIOSdkType.AliVCSDK_Premium.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_Standard.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_InteractiveLive.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_PremiumLive.equalsIgnoreCase(sdkType)
}
def hasEnhanceFeature() {
return AIOSdkType.AliVCSDK_Premium.equalsIgnoreCase(sdkType)
}
ext {
hasLive = this.&hasLive
hasUGC = this.&hasUGC
hasPlayer = this.&hasPlayer
hasQueen = this.&hasQueen
hasRTS = this.&hasRTS
hasInteractiveLive = this.&hasInteractiveLive
hasEnhanceFeature = this.&hasEnhanceFeature
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/rachelzhao/aliyundemo.git
git@gitee.com:rachelzhao/aliyundemo.git
rachelzhao
aliyundemo
aliyundemo
master

搜索帮助