pub struct AndroidConfig {
pub min_sdk_version: u32,
pub version_code: Option<u32>,
pub auto_increment_version_code: bool,
pub debug_application_id_suffix: Option<String>,
}Expand description
General configuration for the Android target.
Fields§
§min_sdk_version: u32The minimum API level required for the application to run. The Android system will prevent the user from installing the application if the system’s API level is lower than the value specified.
version_code: Option<u32>The version code of the application. It is limited to 2,100,000,000 as per Google Play Store requirements.
By default we use your configured version and perform the following math: versionCode = version.major * 1000000 + version.minor * 1000 + version.patch
auto_increment_version_code: boolWhether to automatically increment the versionCode on each build.
- If
true, the generator will try to read the lastversionCodefromtauri.propertiesand increment it by 1 for every build. - If
falseor not set, it falls back toversion_codeor semver-derived logic.
Note that to use this feature, you should remove /tauri.properties from src-tauri/gen/android/app/.gitignore so the current versionCode is committed to the repository.
debug_application_id_suffix: Option<String>Application ID suffix to append for debug builds. This allows installing debug and release versions side-by-side on the same device. Example: “.debug” will make debug builds use “com.example.app.debug” as the application ID.
Trait Implementations§
Source§impl Clone for AndroidConfig
impl Clone for AndroidConfig
Source§fn clone(&self) -> AndroidConfig
fn clone(&self) -> AndroidConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AndroidConfig
impl Debug for AndroidConfig
Source§impl Default for AndroidConfig
impl Default for AndroidConfig
Source§impl<'de> Deserialize<'de> for AndroidConfig
impl<'de> Deserialize<'de> for AndroidConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for AndroidConfig
impl PartialEq for AndroidConfig
Source§impl Serialize for AndroidConfig
impl Serialize for AndroidConfig
impl Eq for AndroidConfig
impl StructuralPartialEq for AndroidConfig
Auto Trait Implementations§
impl Freeze for AndroidConfig
impl RefUnwindSafe for AndroidConfig
impl Send for AndroidConfig
impl Sync for AndroidConfig
impl Unpin for AndroidConfig
impl UnsafeUnpin for AndroidConfig
impl UnwindSafe for AndroidConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.