From 7ec3461304e5623bea87b40940438e2741f22ae5 Mon Sep 17 00:00:00 2001 From: engineer Date: Thu, 28 May 2026 00:20:21 -0700 Subject: [PATCH] fix: use release keystore in CI when RELEASE_STORE_FILE is set The build.gradle now reads RELEASE_STORE_FILE, RELEASE_STORE_PASSWORD, RELEASE_KEY_ALIAS, and RELEASE_KEY_PASSWORD env vars for release signing. Falls back to debug keystore for local development. Also updates whatsnew for v0.4.1. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- android/app/build.gradle | 12 +++++++----- distribution/whatsnew/whatsnew-en-US | 11 ++++++----- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index aa5873b..3af5d88 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -81,6 +81,8 @@ def enableMinifyInReleaseBuilds = (findProperty('android.enableMinifyInReleaseBu */ def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+' +apply from: new File(["node", "--print", "require('path').dirname(require.resolve('@sentry/react-native/package.json'))"].execute().text.trim(), "sentry.gradle") + android { ndkVersion rootProject.ext.ndkVersion @@ -92,8 +94,8 @@ android { applicationId 'ai.opencode.mobile' minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 1 - versionName "1.0.0" + versionCode 4 + versionName "0.4.1" buildConfigField "String", "REACT_NATIVE_RELEASE_LEVEL", "\"${findProperty('reactNativeReleaseLevel') ?: 'stable'}\"" } @@ -104,8 +106,8 @@ android { keyAlias 'androiddebugkey' keyPassword 'android' } - release { - if (System.getenv("RELEASE_STORE_FILE")) { + if (System.getenv("RELEASE_STORE_FILE")) { + release { storeFile file(System.getenv("RELEASE_STORE_FILE")) storePassword System.getenv("RELEASE_STORE_PASSWORD") keyAlias System.getenv("RELEASE_KEY_ALIAS") @@ -118,7 +120,7 @@ android { signingConfig signingConfigs.debug } release { - signingConfig System.getenv("RELEASE_STORE_FILE") ? signingConfigs.release : signingConfigs.debug + signingConfig signingConfigs.findByName('release') ?: signingConfigs.debug def enableShrinkResources = findProperty('android.enableShrinkResourcesInReleaseBuilds') ?: 'false' shrinkResources enableShrinkResources.toBoolean() minifyEnabled enableMinifyInReleaseBuilds diff --git a/distribution/whatsnew/whatsnew-en-US b/distribution/whatsnew/whatsnew-en-US index 4cfaed1..42964d4 100644 --- a/distribution/whatsnew/whatsnew-en-US +++ b/distribution/whatsnew/whatsnew-en-US @@ -1,6 +1,7 @@ -v0.3.2 — Session visibility fix. +v0.4.1 — Stability and UX improvements. -- Sessions from all projects now appear in the list (not just the server's current directory) -- Sessions list refreshes every time you open the tab -- Delete, rename, and permission replies work correctly for cross-project sessions -- Agents and commands reload when you switch project directory +- Improved markdown rendering with copy-to-clipboard for code blocks +- Better session status indicators (idle/busy/retry) +- Connection management improvements +- Biometric authentication gate +- Bug fixes and performance improvements