AppPlatformSupport class
Handles platform project checks and source rewrites used by the CLI.
Keeping these platform-specific transformations outside TestAppPatcher leaves the test entry lifecycle focused on its file transaction.
Constructors
- AppPlatformSupport({required String appDir, required void rewriteIfChanged(File file, String rewrite(String content))})
Properties
- appDir → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- rewriteIfChanged → void Function(File file, String rewrite(String content))
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applyAndroidDesugaringFix(
) → void - Enables Android core library desugaring required by Ensemble plugins.
-
applyIosDeploymentTargetFix(
) → void - Raises iOS deployment files to minIntegrationIosDeploymentTarget.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prepareForTestRun(
{required ExecutionMode mode, required String? targetPlatform, required bool fixIosDeploymentTarget}) → void - Applies platform requirements for the selected test execution.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
androidDesugaringRequirementMessage(
String appDir) → String? - Returns an error when Android desugaring is missing, or null when OK.
-
enableGradleGroovyCoreLibraryDesugaring(
String content) → String -
enableGradleKtsCoreLibraryDesugaring(
String content) → String -
iosDeploymentTargetRequirementMessage(
String appDir) → String? - Returns an actionable error when iOS deployment is below the minimum.
-
iosVersionLessThan(
String current, String minimum) → bool -
raisePbxprojDeploymentTarget(
String content, {String min = minIntegrationIosDeploymentTarget}) → String -
raisePlistMinimumOsVersion(
String content, {String min = minIntegrationIosDeploymentTarget}) → String -
raisePodfilePlatform(
String content, {String min = minIntegrationIosDeploymentTarget}) → String
Constants
- androidDesugarJdkLibsCoordinate → const String
- minIntegrationIosDeploymentTarget → const String
- Firebase 12 / current Ensemble plugins require iOS 15+.