Out of date Google Play Immediate Characteristic Plug-in

dist: immediate = "false"

dist: immediate = "true"

dist: onDemand = "false"

Dynamic operate supplied on the time of set up

Dynamic operate delivered immediately and on the time of set up

dist: onDemand = "true"

Dynamic function supplied on demand (beta model)

N / A

By migrating your immediate utility to a set of immediate functions with dynamic options, you'll be prepared to completely exploit the facility of this new paradigm and you’ll simplify the modular design of your utility.

Migration

Beforehand, immediate functions required the creation of a function module as a base module to your utility. This fundamental options bundle contained code and shared sources to your immediate utility and your put in utility. The remainder of your code base consisted of:

a number of modules of non fundamental options, containing the moment entry factors of the appliance,

an utility module containing the code and actions required solely to your important utility put in, and

an immediate utility module, which represents the moment utility and maps its dependencies.

With the brand new implementation of all functions, your fundamental options module takes the position of utility module (com.android.utility), internet hosting code and sources frequent to all options (snapshot and put in). You manage extra modular options as certainly one of three sorts of dynamic function modules, relying on whenever you wish to move them to the consumer. The moment utility module disappears as a result of the dist: immediate attributes within the manifest are adequate to determine the options that will probably be included within the immediate expertise.

If no immediate app has been added to your app and also you wish to create one, use Android Studio three.three+ to create a set of immediate apps.

Posted by Miguel Montemayor and Diana García Ríos

From the Android Gradle three.four.zero plugin (included in Android Studio three.four), we start the deprecation technique of the function plugin (com.android.function) and the moment utility plugin (com.android.instantapp) so as to immediate utility. When constructing your utility, you’ll obtain a warning that com.android.function is outdated. You probably have an current immediate utility constructed with the function plug-in, migrate your current utility to a set of immediate functions as quickly as potential.

What's altering?

Final 12 months, we launched the Android utility units, a brand new method to create and publish your Android functions. Bundles simplify the availability of optimized APKs, together with immediate supply, by unifying downloads right into a single artifact. Google Play manages the distribution by sending the proper APK recordsdata to customers of immediate and put in apps (what is named dynamic streaming). To study extra about bundles, go to the documentation website.

Dynamic Supply relies on the thought of ​​offering the appliance customers with dynamic options (com.android.dynamic-feature) after they want it and provided that they want it. There are at the moment three sorts of supply, relying on the completely different values ​​you assign to the distant tag attributes: module within the manifest file of the dynamic function module:

<dist: module
dist: immediate = "…"
dist: onDemand = "…"

dist: immediate = "false"

dist: immediate = "true"

dist: onDemand = "false"

Dynamic operate supplied on the time of set up

Dynamic operate delivered immediately and on the time of set up

dist: onDemand = "true"

Dynamic function supplied on demand (beta model)

N / A

By migrating your immediate utility to a set of immediate functions with dynamic options, you'll be prepared to completely exploit the facility of this new paradigm and you’ll simplify the modular design of your utility.

Migration

Beforehand, immediate functions required the creation of a function module as a base module to your utility. This fundamental options bundle contained code and shared sources to your immediate utility and your put in utility. The remainder of your code base consisted of:

a number of modules of non fundamental options, containing the moment entry factors of the appliance,

an utility module containing the code and actions required solely to your important utility put in, and

an immediate utility module, which represents the moment utility and maps its dependencies.

With the brand new implementation of all functions, your fundamental options module takes the position of utility module (com.android.utility), internet hosting code and sources frequent to all options (snapshot and put in). You manage extra modular options as certainly one of three sorts of dynamic function modules, relying on whenever you wish to move them to the consumer. The moment utility module disappears as a result of the dist: immediate attributes within the manifest are adequate to determine the options that will probably be included within the immediate expertise.

If no immediate app has been added to your app and also you wish to create one, use Android Studio three.three+ to create a set of immediate apps.