parseVersionCode static method
Extracts versionCode from Gradle file content.
Handles both Groovy (versionCode 7) and Kotlin DSL (versionCode = 7).
Implementation
static String parseVersionCode(String content) =>
RegExp(r'versionCode\s*=?\s*(\d+)').firstMatch(content)?.group(1) ?? '1';