Skip to content

Use extract_native_libs value to steer library compression #32

Description

@MarijnS95

# See https://developer.android.com/guide/topics/manifest/application-element#extractNativeLibs
extract_native_libs = true

In hindsight we should have also used this property to steer whether libs are compiled in the APK:

if self.config.disable_aapt_compression {
aapt.arg("-0").arg("");
}

Per the documentation linked for this property, libraries are stored uncompressed when they are not extracted by the installer. Right now I think one can create an invalid APK when setting extract_native_libs = false and building a non-debug (release) profile, which sets disable_aapt_compression = false:

disable_aapt_compression: is_debug_profile,

Originally posted by @MarijnS95 in #15 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions