Stay organized with collections
Save and categorize content based on your preferences.
BundleConfig
@Incubating interface BundleConfig
Information related to the actions creating a bundle (.aab) file for the variant.
Summary
Public functions |
Unit |
Add a metadata file to the bundle (.aab) file.
|
Public properties |
CodeTransparency |
Settings associated with the code transparency feature in bundles.
|
Public functions
Public properties
codeTransparency
val codeTransparency: CodeTransparency
Settings associated with the code transparency feature in bundles. Initialized from the corresponding DSL elements.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# BundleConfig\n============\n\n\n```\n@Incubating interface BundleConfig\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInformation related to the actions creating a bundle (.aab) file for the variant.\n\nSummary\n-------\n\n| ### Public functions ||\n|------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [addMetadataFile](/reference/tools/gradle-api/7.2/com/android/build/api/variant/BundleConfig#addMetadataFile(kotlin.String,org.gradle.api.provider.Provider))`(metadataDirectory: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?, file: `[Provider](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Provider.html)`\u003c`[RegularFile](https://docs.gradle.org/current/javadoc/org/gradle/api/file/RegularFile.html)`?\u003e?)` Add a metadata file to the bundle (.aab) file. |\n\n| ### Public properties ||\n|----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CodeTransparency](/reference/tools/gradle-api/7.2/com/android/build/api/variant/CodeTransparency) | [codeTransparency](/reference/tools/gradle-api/7.2/com/android/build/api/variant/BundleConfig#codeTransparency()) Settings associated with the code transparency feature in bundles. |\n\nPublic functions\n----------------\n\n### addMetadataFile\n\n```\nfun addMetadataFile(metadataDirectory: String?, file: Provider\u003cRegularFile?\u003e?): Unit\n```\n\nAdd a metadata file to the bundle (.aab) file. The file will be added under the BUNDLE-METADATA folder. \n\n| Parameters ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `metadataDirectory: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | the directory below BUNDLE-METADATA where the file should be stored. |\n| `file: `[Provider](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Provider.html)`\u003c`[RegularFile](https://docs.gradle.org/current/javadoc/org/gradle/api/file/RegularFile.html)`?\u003e?` | the [Provider](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Provider.html) of [RegularFile](https://docs.gradle.org/current/javadoc/org/gradle/api/file/RegularFile.html) that can be wired from a [org.gradle.api.Task](https://docs.gradle.org/current/javadoc/org/gradle/api/Task.html) output or an existing file in the project directory. |\n\nPublic properties\n-----------------\n\n### codeTransparency\n\n```\nval codeTransparency: CodeTransparency\n```\n\nSettings associated with the code transparency feature in bundles. Initialized from the corresponding DSL elements."]]