feat: 完善远程构建恢复、工程同步与变体选择
增加持久化构建记录、历史 APK 恢复、断点下载、Gradle 缓存复用、系统代理与按工程选择服务端 JDK。 支持已有工程目录、Git 状态检查、原生忽略规则和文本换行等价比较,修复干净检出与历史同步快照不一致时的误拦截。 优化插件设备可选构建、侧栏滚动、左右日志布局、时间显示和构建变体快速选择,并补充部署与协议文档。 验证:17 项 Go 测试、22 项插件测试及 HTTP/HTTPS 两条端到端测试通过;Linux/macOS 服务端交叉编译通过。
This commit is contained in:
1 parent
2203afde3c
commit
2cb70beb69
44 files changed
+3310
-236
No files matched your search
@@ -0,0 +1,18 @@
|
||||
package studio.tongtong.remotecompile
|
||||
import org.junit.Assert.*
|
||||
import org.junit.Test
|
||||
import java.nio.file.Files
|
||||
class LastBuildTest {
|
||||
@Test fun lostSubmissionResponseSurvivesClientRestart() {
|
||||
val root=Files.createTempDirectory("last-build")
|
||||
try {
|
||||
val record=LastBuild(server="https://localhost:8765",projectId="project",revision="rev",task=":app:assembleDebug",clientRequestId="request-before-send",certificate="证书/server.crt")
|
||||
LastBuildStore.save(root,record)
|
||||
val reopened=LastBuildStore.load(root)!!
|
||||
assertEquals("request-before-send",reopened.clientRequestId);assertEquals("",reopened.buildId)
|
||||
reopened.buildId="1234567890abcdef1234567890abcdef";LastBuildStore.save(root,reopened)
|
||||
assertEquals(reopened,LastBuildStore.load(root))
|
||||
assertFalse(Files.readString(root.resolve(".remotecompile/last-build.json")).contains("token"))
|
||||
}finally{root.toFile().deleteRecursively()}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user