Skip to content

armgit / andee

Public Imported from GitHub
0

Andee lives on your phone or Mac and uses any app like you do—no integrations, no root, any model; memory and passwords never leave your device | Andee 住进你的手机或 Mac,像你一样操作任何 App——无需集成、无需 Root、支持任意模型,记忆和密码绝不离开设备。

build: -PdbgSuffix builds a parallel package for device verification

booboosui2524670fcaa5
diff --git a/app/build.gradle b/app/build.gradle
index c009942..3119ca4 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -50,6 +50,17 @@ android {
buildConfigField "boolean", "CODEFLYING_SSL_ENABLED", buildConfigBool('CODEFLYING_SSL_ENABLED')
buildConfigField "String", "DEFAULT_LANG", buildConfigString('DEFAULT_LANG')
buildConfigField "String", "DEFAULT_THINKING", buildConfigString('DEFAULT_THINKING')
+
+ // Verification hook, off unless asked for: `-PdbgSuffix=.dbg` builds a
+ // *parallel* package that installs next to whatever is already on the
+ // device. Needed because the package on the tablet was signed with a
+ // different key than this checkout, so `pm install -r` is refused
+ // (INSTALL_FAILED_UPDATE_INCOMPATIBLE) and the only alternative is
+ // uninstalling — which throws away the user's chat history, notebook
+ // and vault. Not for shipping; nothing else reads this property.
+ if (project.hasProperty('dbgSuffix')) {
+ applicationIdSuffix project.property('dbgSuffix')
+ }
}
buildTypes {