feat: update API endpoints and switch to Gemini model
This commit is contained in:
1 parent
2bcef79a22
commit
6b8ebcc29a
3 files changed
+14
-43
No files matched your search
+11
-40
@@ -40,6 +40,17 @@ android {
|
||||
arguments += "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,-z,max-page-size=16384"
|
||||
}
|
||||
}
|
||||
|
||||
buildConfigField(
|
||||
"String",
|
||||
"BUILT_IN_API_URL",
|
||||
"https://camera-api.hinnka.me/v1".toBuildConfigString()
|
||||
)
|
||||
buildConfigField(
|
||||
"String",
|
||||
"BUILT_IN_API_KEY",
|
||||
localProperties.getProperty("BUILT_IN_API_KEY_GOOGLE", "").toBuildConfigString()
|
||||
)
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
@@ -76,57 +87,17 @@ android {
|
||||
productFlavors {
|
||||
create("google") {
|
||||
dimension = "channel"
|
||||
buildConfigField(
|
||||
"String",
|
||||
"BUILT_IN_API_URL",
|
||||
"https://camera-api.hinnka.com/v1".toBuildConfigString()
|
||||
)
|
||||
buildConfigField(
|
||||
"String",
|
||||
"BUILT_IN_API_KEY",
|
||||
localProperties.getProperty("BUILT_IN_API_KEY_GOOGLE", "").toBuildConfigString()
|
||||
)
|
||||
}
|
||||
create("default") {
|
||||
dimension = "channel"
|
||||
buildConfigField(
|
||||
"String",
|
||||
"BUILT_IN_API_URL",
|
||||
"https://token-plan-cn.xiaomimimo.com/v1".toBuildConfigString()
|
||||
)
|
||||
buildConfigField(
|
||||
"String",
|
||||
"BUILT_IN_API_KEY",
|
||||
localProperties.getProperty("BUILT_IN_API_KEY", "").toBuildConfigString()
|
||||
)
|
||||
}
|
||||
create("samsung") {
|
||||
dimension = "channel"
|
||||
applicationId = "com.samsung.android.scan3d"
|
||||
buildConfigField(
|
||||
"String",
|
||||
"BUILT_IN_API_URL",
|
||||
"https://token-plan-cn.xiaomimimo.com/v1".toBuildConfigString()
|
||||
)
|
||||
buildConfigField(
|
||||
"String",
|
||||
"BUILT_IN_API_KEY",
|
||||
localProperties.getProperty("BUILT_IN_API_KEY", "").toBuildConfigString()
|
||||
)
|
||||
}
|
||||
create("meitu") {
|
||||
dimension = "channel"
|
||||
applicationId = "com.meitu.meiyancamera"
|
||||
buildConfigField(
|
||||
"String",
|
||||
"BUILT_IN_API_URL",
|
||||
"https://token-plan-cn.xiaomimimo.com/v1".toBuildConfigString()
|
||||
)
|
||||
buildConfigField(
|
||||
"String",
|
||||
"BUILT_IN_API_KEY",
|
||||
localProperties.getProperty("BUILT_IN_API_KEY", "").toBuildConfigString()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ data class AppUpdateRelease(
|
||||
|
||||
object AppUpdateManager {
|
||||
private const val TAG = "AppUpdateManager"
|
||||
private const val VERSION_CHECK_URL = "https://camera-api.hinnka.com/api/version/check"
|
||||
private const val VERSION_CHECK_URL = "https://camera-api.hinnka.me/api/version/check"
|
||||
private const val APK_MIME_TYPE = "application/vnd.android.package-archive"
|
||||
private const val APK_MAGIC_0 = 'P'.code.toByte()
|
||||
private const val APK_MAGIC_1 = 'K'.code.toByte()
|
||||
|
||||
@@ -55,8 +55,8 @@ class OpenAIApiClient() {
|
||||
val BUILT_IN_API_URL = BuildConfig.BUILT_IN_API_URL
|
||||
// const val OPENAI_API_URL = "https://api.openai.com/v1"
|
||||
val BUILT_IN_API_KEY = BuildConfig.BUILT_IN_API_KEY
|
||||
const val BUILT_IN_IMAGE_MODEL = "mimo-v2.5"
|
||||
const val BUILT_IN_MODEL = "mimo-v2.5"
|
||||
const val BUILT_IN_IMAGE_MODEL = "gemini-3.5-flash"
|
||||
const val BUILT_IN_MODEL = "gemini-3.5-flash"
|
||||
}
|
||||
|
||||
private val client = OkHttpClient.Builder()
|
||||
|
||||
Reference in new issue
Block a user