CLAUDE.md raw

CipherKeys Release Process

Versioning

Zero-padded monotonic counter. Increment projectVersionCode and set projectVersionName to 5-digit zero-padded version (e.g., 00019). Lexicographically sortable.

Version Bump

  1. Increment projectVersionCode (e.g., 18 → 19) and projectVersionName (e.g., 00018 → 00019) in gradle.properties
  2. Build: ./gradlew assembleRelease
  3. Copy APK: cp app/build/outputs/apk/release/app-release.apk /home/mleku/s/cipherkeys-releases/cipherkeys-v00019.apk

README Update (cipherkeys repo)

  1. Update the "Latest release" link at the top of README.md with new version
  2. Add new version row to releases table
  3. Commit and push: git add README.md && git commit -m 'v<VERSION>: bump' && git push

Obtanium Release (cipherkeys-releases repo)

  1. Copy APK: already done in version bump step
  2. Commit, tag, push to git.smesh.lol:

` git add cipherkeys-v<VERSION>.apk && git commit -m 'v<VERSION>: ...' git tag -f v<VERSION> HEAD git push && git push --tags `

  1. Create GitHub release: gh release create v<VERSION> cipherkeys-v<VERSION>.apk -R mlekudev/cipherkeys-releases

Zapstore Release

  1. Publish with the zsps wrapper: zsps (reads zapstore.yaml, signs with ~/Documents/nsec0)
  2. Verify: zsp check app/build/outputs/apk/release/app-release.apk — must show "authorized": true, a proof owned by npub125uw9…, and the expected published_version_code
  3. Never pass --skip-certificate-linking: it suppresses the NIP-C1 proof (kind 30509) that ties the APK signing cert to the Nostr identity, and Zapstore then drops author attribution and zaps
  4. The identity proof expires yearly. Re-link with zsp identity --link-key <keystore> (needs SIGN_WITH + KEYSTORE_PASSWORD) before it lapses
  5. ~/.android/cipherkeys-release.keystore is PKCS12 content with a .keystore extension; earlier zsp v0.x rejected it as JKS, so link from a .p12-named copy and shred it afterwards

Obtanium User Setup