This commit is contained in:
yangyakun
2026-04-24 19:15:40 +08:00
parent 8d5f093355
commit d87dd7d6a5
7 changed files with 37 additions and 5 deletions

View File

@@ -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

View File

@@ -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
}
}
}
}

View File

@@ -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

View File

@@ -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

View File

@@ -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"))
}
}

View File

@@ -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