惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
J
Java Code Geeks
小众软件
小众软件
Jina AI
Jina AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Hugging Face - Blog
Hugging Face - Blog
Stack Overflow Blog
Stack Overflow Blog
Blog — PlanetScale
Blog — PlanetScale
C
Check Point Blog
人人都是产品经理
人人都是产品经理
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - Franky
Apple Machine Learning Research
Apple Machine Learning Research
G
Google Developers Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
腾讯CDC
T
The Blog of Author Tim Ferriss
大猫的无限游戏
大猫的无限游戏
量子位
M
MIT News - Artificial intelligence
Last Week in AI
Last Week in AI
L
LangChain Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
android: add release signing sync · openclaw/openclaw@214...
joshavant · 2026-06-17 · via Recent Commits to openclaw:main

@@ -9,6 +9,12 @@ default_platform(:android)

99

DEFAULT_PLAY_PACKAGE_NAME = "ai.openclaw.app"

1010

DEFAULT_PLAY_TRACK = "internal"

1111

DEFAULT_PLAY_RELEASE_STATUS = "completed"

12+

ANDROID_RELEASE_SIGNING_GRADLE_PROPERTIES = [

13+

"OPENCLAW_ANDROID_STORE_FILE",

14+

"OPENCLAW_ANDROID_STORE_PASSWORD",

15+

"OPENCLAW_ANDROID_KEY_ALIAS",

16+

"OPENCLAW_ANDROID_KEY_PASSWORD"

17+

].freeze

12181319

def load_env_file(path)

1420

return unless File.exist?(path)

@@ -36,6 +42,14 @@ def repo_root

3642

File.expand_path("../..", android_root)

3743

end

384445+

def android_release_signing_script

46+

File.join(repo_root, "scripts", "android-release-signing.mjs")

47+

end

48+49+

def android_release_signing_materialized_properties_path

50+

File.join(android_root, "build", "release-signing", "gradle.properties")

51+

end

52+3953

def shell_join(args)

4054

args.shelljoin

4155

end

@@ -183,6 +197,45 @@ def capture_android_screenshots!

183197

sh(shell_join(["bash", File.join(repo_root, "scripts", "android-screenshots.sh")]))

184198

end

185199200+

def read_android_release_signing_properties!(path)

201+

UI.user_error!("Missing materialized Android release signing properties at #{path}.") unless File.exist?(path)

202+203+

properties = {}

204+

File.foreach(path) do |line|

205+

stripped = line.strip

206+

next if stripped.empty? || stripped.start_with?("#")

207+208+

key, value = stripped.split("=", 2)

209+

next if key.nil? || key.empty? || value.nil?

210+211+

properties[key] = value.strip

212+

end

213+214+

missing = ANDROID_RELEASE_SIGNING_GRADLE_PROPERTIES.reject { |key| env_present?(properties[key]) }

215+

UI.user_error!("Materialized Android release signing properties are missing: #{missing.join(', ')}.") unless missing.empty?

216+217+

properties

218+

end

219+220+

def export_android_release_signing_properties!(path)

221+

read_android_release_signing_properties!(path).each do |key, value|

222+

ENV["ORG_GRADLE_PROJECT_#{key}"] = value

223+

end

224+

end

225+226+

def sync_android_release_signing!

227+

sh(shell_join(["node", android_release_signing_script, "--mode", "sync-pull"]))

228+

export_android_release_signing_properties!(android_release_signing_materialized_properties_path)

229+

end

230+231+

def prepare_android_release_signing!

232+

if env_present?(ENV["MATCH_PASSWORD"])

233+

sync_android_release_signing!

234+

elsif File.exist?(android_release_signing_materialized_properties_path)

235+

export_android_release_signing_properties!(android_release_signing_materialized_properties_path)

236+

end

237+

end

238+186239

def validate_android_release_signing!

187240

Dir.chdir(android_root) do

188241

sh(shell_join(["./gradlew", ":app:bundlePlayRelease", "--dry-run"]))

@@ -201,6 +254,7 @@ end

201254202255

def validate_android_release_preflight!(version_metadata)

203256

validate_play_auth!

257+

prepare_android_release_signing!

204258

validate_android_release_signing!

205259

validate_android_release_notes!

206260

print_android_release_plan!(version_metadata)

@@ -258,6 +312,30 @@ platform :android do

258312

UI.success("Google Play API credentials are valid.")

259313

end

260314315+

desc "Print the Android release signing plan"

316+

lane :signing_plan do

317+

sh(shell_join(["node", android_release_signing_script, "--mode", "plan"]))

318+

end

319+320+

desc "Pull encrypted Android release signing assets and validate Gradle release signing"

321+

lane :signing_check do

322+

sync_android_release_signing!

323+

validate_android_release_signing!

324+

UI.success("Android release signing assets are available locally.")

325+

end

326+327+

desc "Pull encrypted Android release signing assets from the shared signing repo"

328+

lane :signing_sync_pull do

329+

sync_android_release_signing!

330+

UI.success("Pulled Android release signing assets.")

331+

end

332+333+

desc "Create or refresh encrypted Android release signing assets in the shared signing repo"

334+

lane :signing_sync_push do

335+

sh(shell_join(["node", android_release_signing_script, "--mode", "sync-push"]))

336+

UI.success("Pushed Android release signing assets.")

337+

end

338+261339

desc "Validate Android Play release auth, signing, versioning, and release notes"

262340

lane :release_preflight do

263341

sync_android_versioning!

@@ -278,6 +356,7 @@ platform :android do

278356

desc "Build signed Android release artifacts locally without uploading"

279357

lane :play_store_archive do

280358

sync_android_versioning!

359+

prepare_android_release_signing!

281360

build_release_artifacts!

282361

end

283362