pub struct Spec {
pub package: String,
pub version_code: usize,
pub min_sdk_version: usize,
pub target_sdk_version: usize,
pub library: String,
}Expand description
This spec contains Android-specific settings.
Fields§
§package: StringThis is the package identifier for Android that uniquely identifies your app on a user’s device and within the Google Play Store. The package identifier usually looks like a reverse DNS name. The package identifier must contain of at least two segments, each segment must start with a letter and can only contain alphanumeric characters.
version_code: usizeThis is the version code for Android. The version code is used to determine the order of multiple releases of the same app. Each subsequent release must have a version code that is strictly greater than the previous release’s version code (but it is allowed to skip version codes in between). Additionally, this is also used by the OS to deny downgrades to earlier versions of your app (e.g. to protect against cases where you introduce backwards incompatible changes to a persistent storage format).
min_sdk_version: usizeThis is the minimum API version that your app supports. If you’re not bringing in your own native Java code, this should generally not be changed. In any case, don’t change this to an API version lower than the Polyhorn default (16), because our own Java code might not be compatible with earlier API versions.
target_sdk_version: usizeThis is the target API version that your app uses to build. We’re currently compiling native Java code against the most recent Android API level. If you don’t bring in your own Java code, you shouldn’t need to change this. Even if you do bring in your own Java code, it’s unlikely that you need to change this.
library: StringThis is the name of the shared library that will contain your Rust code.
End users will not be aware of this. It simply refers to the name of the
shared library that will reside in jniLibs/*. Usually, this will be
the lowercased last segment of the package identifier.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Spec
impl<'de> Deserialize<'de> for Spec
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>,
impl Eq for Spec
impl StructuralPartialEq for Spec
Auto Trait Implementations§
impl Freeze for Spec
impl RefUnwindSafe for Spec
impl Send for Spec
impl Sync for Spec
impl Unpin for Spec
impl UnwindSafe for Spec
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.