From 6990b626459670654d3f2fc6721d440fd6d234dd Mon Sep 17 00:00:00 2001 From: Sicherhaven Date: Wed, 8 Apr 2026 21:36:25 +0530 Subject: [PATCH] fix(android): read versionCode/versionName from flutter pubspec instead of hardcoded values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Was hardcoded to versionCode=17, versionName="1.6.1(p)" — overriding pubspec.yaml and causing Play Store rejection. Now reads flutter.versionCode and flutter.versionName so pubspec.yaml is the single source of truth. Co-Authored-By: Claude Sonnet 4.6 --- android/app/build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 2d64908..e9e1b61 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -22,8 +22,8 @@ android { applicationId = "com.sicherhaven.eventify" minSdk = flutter.minSdkVersion targetSdk = flutter.targetSdkVersion - versionCode = 17 - versionName = "1.6.1(p)" + versionCode = flutter.versionCode + versionName = flutter.versionName } // ---------- SIGNING CONFIG ----------