AndroidSdkConfig class
Configuration for Android SDK sources and stub JAR files.
The SDK directories for platform stub JARs and sources are searched in the same order in which versions are specified.
If addGradleDeps is true, a gradle stub is run in order to collect the
actual compile classpath of the android/
subproject.
This will fail if there was no previous build of the project, or if a
clean
task was run either through flutter or gradle wrapper. In such case,
it's required to run flutter build apk
& retry running jnigen
.
A configuration is invalid if versions is unspecified or empty, and gradle
options are also false. If sdkRoot is not specified but versions is
specified, an attempt is made to find out SDK installation directory using
environment variable ANDROID_SDK_ROOT
if it's defined, else an error
will be thrown.
Constructors
Properties
- addGradleDeps ↔ bool
-
Attempt to determine exact compile time dependencies by running a gradle
stub in android subproject of this project.
getter/setter pair
- addGradleSources ↔ bool
-
Similar to addGradleDeps, runs a stub to obtain source dependencies of
the Android project.
getter/setter pair
- androidExample ↔ String?
-
Relative path to example application which will be used to determine
compile time classpath using a gradle stub. For most Android plugin
packages, 'example' will be the name of example application created inside
the package. This example should be built once before using this option,
so that gradle would have resolved all the dependencies.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdkRoot ↔ String?
-
Root of Android SDK installation, this should be normally given on
command line or by setting
ANDROID_SDK_ROOT
, since this varies from system to system.getter/setter pair -
versions
↔ List<
int> ? -
Versions of android SDK to search for, in decreasing order of preference.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited