rlsbl v0.92.0 /rlsbl.targets.native_android
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

python
def name(self)

#_gradle_file

python
def _gradle_file(self, dir_path)

Return the absolute path to the gradle build file (kts preferred).

#_is_android_app

python
def _is_android_app(self, content)

Check if gradle content declares the com.android.application plugin.

#detect

python
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

python
def read_version(self, dir_path)

Read versionName from build.gradle.

#write_version

python
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

python
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

python
def read_name(self, dir_path, ctx)

Read applicationId from build.gradle, falling back to directory name.

#template_dir

python
def template_dir(self)

#template_mappings

python
def template_mappings(self, ctx)