GradleParser class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
Static Methods
parseVersionCode (String content )
→ String
Extracts versionCode from Gradle file content.
Handles both Groovy (versionCode 7) and Kotlin DSL (versionCode = 7).
parseVersionName (String content )
→ String
Extracts versionName from Gradle file content.
Handles both Groovy (versionName "1.0") and Kotlin DSL (versionName = "1.0").
resolvePath (String projectRoot )
→ String ?
Returns the path to the app-level Gradle file under projectRoot.
Checks build.gradle.kts (Kotlin DSL, RN 0.77+) first, then falls back
to build.gradle (Groovy). Returns null if neither exists.