pub enum AndroidTask {
BuildRuntimeLibrary(BuildRuntimeLibrary),
GenerateSourceTree(GenerateSourceTree),
FindAndroidStudio(FindAndroidStudio),
Install(Install),
InstallTarget(InstallTarget),
LinkNativeLibraries(LinkNativeLibraries),
Run(Run),
}Expand description
Represents one of the Android-specific tasks.
Variants§
BuildRuntimeLibrary(BuildRuntimeLibrary)
This tasks builds the runtime library for the given target and with the given profile.
GenerateSourceTree(GenerateSourceTree)
This task generates a new source tree based on the template that ships
with polyhorn-cli.
FindAndroidStudio(FindAndroidStudio)
This task attempts to locate Android Studio and uses the result to locate the Android SDK and Java home. The Android Studio itself isn’t used, but it’s the easiest way of obtaining a working installation of the SDK, NDK and Java that are all compatible.
Install(Install)
This task invokes Gradle to install a debug-build on the user’s device or emulator.
InstallTarget(InstallTarget)
This task installs a target with a given name using rustup, if necessary.
LinkNativeLibraries(LinkNativeLibraries)
This task copies all products from the BuildRuntimeLibrary task into
the jniLibs folder of the Android source tree.
Run(Run)
This task launches the newly installed Polyhorn-powered app on a user’s device or emulator.