发布
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
GROUP=com.mogo.cloud
|
||||
POM_ARTIFACT_ID=tts-base
|
||||
POM_ARTIFACT_ID=ttsbase
|
||||
VERSION_CODE=1
|
||||
VERSION_NAME=1.0.1-SNAPSHOT
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.mogo.tts.utils
|
||||
|
||||
import android.content.Context
|
||||
|
||||
class ApkUtils {
|
||||
companion object{
|
||||
@JvmStatic
|
||||
fun isInstallAppStore(ctx: Context): Boolean {
|
||||
return try {
|
||||
val installedPackages = ctx.packageManager.getInstalledPackages(0)
|
||||
installedPackages.find { it.packageName == "com.mogo.tts" } != null
|
||||
} catch (t: Throwable) {
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -30,7 +30,12 @@ android {
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(dir: "libs", include: ["*.jar"])
|
||||
implementation project(":libraries:mogo-tts:tts-base")
|
||||
if (Boolean.valueOf(RELEASE)) {
|
||||
implementation "com.mogo.cloud:ttsbase:${TTS_BASE_VERSION}"
|
||||
}else {
|
||||
implementation(project(":libraries:mogo-tts:tts-base"))
|
||||
}
|
||||
|
||||
implementation files('libs/AIKit.aar')
|
||||
implementation rootProject.ext.dependencies.androidxappcompat
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
GROUP=com.mogo.cloud
|
||||
POM_ARTIFACT_ID=tts-iflytek-offline
|
||||
POM_ARTIFACT_ID=ttsiflytekoffline
|
||||
VERSION_CODE=1
|
||||
VERSION_NAME=1.0.1-SNAPSHOT
|
||||
@@ -32,7 +32,12 @@ dependencies {
|
||||
implementation fileTree(dir: "libs", include: ["*.jar"])
|
||||
implementation rootProject.ext.dependencies.androidxappcompat
|
||||
|
||||
implementation(project(":libraries:mogo-tts:tts-base"))
|
||||
if (Boolean.valueOf(RELEASE)) {
|
||||
implementation "com.mogo.cloud:ttsbase:${TTS_BASE_VERSION}"
|
||||
}else {
|
||||
implementation(project(":libraries:mogo-tts:tts-base"))
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
GROUP=com.mogo.cloud
|
||||
POM_ARTIFACT_ID=tts-mogo
|
||||
POM_ARTIFACT_ID=ttsmogo
|
||||
VERSION_CODE=1
|
||||
VERSION_NAME=1.0.1-SNAPSHOT
|
||||
Reference in New Issue
Block a user