This message was deleted.
# android
s
This message was deleted.
e
Does that just install the app on a device? If you're using the Android Gradle Plugin you can run
gradle install<variant>
e
It’s more than that. Here’s the official documentation about it: https://bazel.build/docs/mobile-install TL;DR it will make build iteration faster by sharding the dex files and loading it via its own dex loader. It might be the same like “Apply Changes” in Android Studio, but I haven’t read the implementation yet
e
It sounds like apply changes, and as far as I know there's nothing built in to gradle or agp for that. There could be third party plugins, etc... but nothing as far as I know
n
apply changes is the closest thing but can only be run from Android Studio and not command line
🤔 1
e
@no do you know why they make it exclusive to AS? Or maybe do you know a right place to ask such a thing 🙂 --- I tried digging into the source code and got the documentation of instant run, not sure is this refer to
Apply Changes
or not because instant run is already deprecated https://cs.android.com/android-studio/platform/tools/adt/idea/+/mirror-goog-studio-main:android/src/com/android/tools/idea/run/README.md;l=206
n
they make it exclusive because it relies on know information about the target device and they didn't want to add this functionality to the gradle build.
e
In that case, this
Gradle Build
on the flow chart, is a typical
assemble
task?
n
no, i believe that only represents builds executed from the IDE
e
In case of Apply Changes in AS, it should be
assemble<BuildType>
or other variations of assemble right? Or is there an exclusive Gradle task for this as well?
n
i believe it is
assemble<buildType>
you should be able to try this out in the IDE yourself
e
Will do. Thanks for all the info 👍👌