On this page
Native Android release target that reads and bumps versionName and auto-increments versionCode in build.gradle for Android app releases.
#rlsbl.targets.native_android
#rlsbl.targets.native_android
Native Android release target that reads and bumps versionName and auto-increments versionCode in build.gradle for Android app releases.
#NativeAndroidTarget
Release target for native Android apps (build.gradle with com.android.application).
#name
def name(self)#_gradle_file
def _gradle_file(self, dir_path)Return the absolute path to the gradle build file (kts preferred).
#_is_android_app
def _is_android_app(self, content)Check if gradle content declares the com.android.application plugin.
#detect
def detect(self, dir_path)Detect if dir has a build.gradle(.kts) with the Android application plugin.
Returns False for com.android.library projects (those stay with maven).
#read_version
def read_version(self, dir_path)Read versionName from build.gradle.
#write_version
def write_version(self, dir_path, version, ctx)Write versionName and increment versionCode in build.gradle.
Returns a list of relative file paths that were modified.
#version_file
def version_file(self, dir_path=None)Return the gradle build filename.
When dir_path is provided, checks which variant exists on disk.
#read_name
def read_name(self, dir_path, ctx)Read applicationId from build.gradle, falling back to directory name.
#template_dir
def template_dir(self)#template_mappings
def template_mappings(self, ctx)