diff --git a/packages/shorebird_cli/lib/src/executables/gradlew.dart b/packages/shorebird_cli/lib/src/executables/gradlew.dart index 01533e32..28bffafb 100644 --- a/packages/shorebird_cli/lib/src/executables/gradlew.dart +++ b/packages/shorebird_cli/lib/src/executables/gradlew.dart @@ -93,7 +93,25 @@ class Gradlew { if (match != null) { final variant = match.group(1)!; if (!variant.toLowerCase().endsWith('test')) { - variants.add(variant[0].toLowerCase() + variant.substring(1)); + // Gradle flavor name transformation seems to work with the following rules: + // - If the flavor starts with at least two capital letters, use as is + // - Otherwise, transform to camel case + // + // Example: + // development -> development + // developmentWithAnotherContext -> developmentWithAnotherContext + // + // Development -> development + // DevelopmentWithAnotherContext -> developmentWithAnotherContext + // + // QA -> QA + // QAInBrazil -> QAInBrazil + // QAOver9000 -> QAOver9000 + if (variant.areFirstTwoLetterUppercase) { + variants.add(variant); + } else { + variants.add(variant[0].toLowerCase() + variant.substring(1)); + } } } } @@ -113,3 +131,24 @@ class Gradlew { return productFlavors; } } + +extension on String { + /// Returns true when the string starts with at least two upper case letters + /// + /// Gradle flavors that are not capital case will not be transformed + /// to camel case and should be used as is. So this method helps to identify + /// those cases. + /// + /// Example: + /// ```dart + /// 'Test'.startsWithUpperCaseLetters; // false + /// 'TEST'.startsWithUpperCaseLetters; // true + /// 'TESTING'.startsWithUpperCaseLetters; // true + /// ``` + bool get areFirstTwoLetterUppercase { + if (length >= 2) { + return this[0].isUpperCase() && this[1].isUpperCase(); + } + return false; + } +} diff --git a/packages/shorebird_cli/lib/src/extensions/string.dart b/packages/shorebird_cli/lib/src/extensions/string.dart index 28d031c0..a6e5c4c9 100644 --- a/packages/shorebird_cli/lib/src/extensions/string.dart +++ b/packages/shorebird_cli/lib/src/extensions/string.dart @@ -2,3 +2,8 @@ extension NullOrEmtpy on String? { /// Returns `true` if this string is null or empty. bool get isNullOrEmpty => this == null || this!.isEmpty; } + +extension IsUpperCase on String { + /// Returns `true` if this string is in uppercase. + bool isUpperCase() => this == toUpperCase(); +} diff --git a/packages/shorebird_cli/test/fixtures/gradle_app_tasks.txt b/packages/shorebird_cli/test/fixtures/gradle/gradle_app_tasks.txt similarity index 100% rename from packages/shorebird_cli/test/fixtures/gradle_app_tasks.txt rename to packages/shorebird_cli/test/fixtures/gradle/gradle_app_tasks.txt diff --git a/packages/shorebird_cli/test/fixtures/gradle/gradle_app_tasks_mixed_case_flavors.txt b/packages/shorebird_cli/test/fixtures/gradle/gradle_app_tasks_mixed_case_flavors.txt new file mode 100644 index 00000000..799e44cf --- /dev/null +++ b/packages/shorebird_cli/test/fixtures/gradle/gradle_app_tasks_mixed_case_flavors.txt @@ -0,0 +1,808 @@ +> Task :gradle:compileJava NO-SOURCE +> Task :gradle:compileGroovy UP-TO-DATE +> Task :gradle:pluginDescriptors UP-TO-DATE +> Task :gradle:processResources UP-TO-DATE +> Task :gradle:classes UP-TO-DATE +> Task :gradle:jar UP-TO-DATE + +> Task :app:tasks + +------------------------------------------------------------ +Tasks runnable from project ':app' +------------------------------------------------------------ + +Android tasks +------------- +androidDependencies - Displays the Android dependencies of the project. +signingReport - Displays the signing info for the base and test modules +sourceSets - Prints out all the source sets defined in this project. + +Build tasks +----------- +assemble - Assemble main outputs for all the variants. +assembleAndroidTest - Assembles all the Test applications. +assembleDebug - Assembles main outputs for all Debug variants. +assembleProfile - Assembles main outputs for all Profile variants. +assembleRelease - Assembles main outputs for all Release variants. +assembleRJaneiro - Assembles main outputs for all RJaneiro variants. +assembleSPaulo - Assembles main outputs for all SPaulo variants. +build - Assembles and tests this project. +buildDependents - Assembles and tests this project and all projects that depend on it. +buildKotlinToolingMetadata - Build metadata json file containing information about the used Kotlin tooling +buildNeeded - Assembles and tests this project and all projects it depends on. +bundle - Assemble bundles for all the variants. +bundleDebug - Assembles bundles for all Debug variants. +bundleProfile - Assembles bundles for all Profile variants. +bundleRelease - Assembles bundles for all Release variants. +bundleRJaneiro - Assembles bundles for all RJaneiro variants. +bundleSPaulo - Assembles bundles for all SPaulo variants. +clean - Deletes the build directory. +compileRJaneiroDebugAndroidTestSources +compileRJaneiroDebugSources +compileRJaneiroDebugUnitTestSources +compileRJaneiroProfileSources +compileRJaneiroProfileUnitTestSources +compileRJaneiroReleaseSources +compileRJaneiroReleaseUnitTestSources +compileSPauloDebugAndroidTestSources +compileSPauloDebugSources +compileSPauloDebugUnitTestSources +compileSPauloProfileSources +compileSPauloProfileUnitTestSources +compileSPauloReleaseSources +compileSPauloReleaseUnitTestSources + +Help tasks +---------- +buildEnvironment - Displays all buildscript dependencies declared in project ':app'. +dependencies - Displays all dependencies declared in project ':app'. +dependencyInsight - Displays the insight into a specific dependency in project ':app'. +help - Displays a help message. +javaToolchains - Displays the detected java toolchains. +kotlinDslAccessorsReport - Prints the Kotlin code for accessing the currently available project extensions and conventions. +outgoingVariants - Displays the outgoing variants of project ':app'. +projects - Displays the sub-projects of project ':app'. +properties - Displays the properties of project ':app'. +resolvableConfigurations - Displays the configurations that can be resolved in project ':app'. +tasks - Displays the tasks runnable from project ':app'. + +Install tasks +------------- +installRJaneiroDebug - Installs the DebugRJaneiroDebug build. +installRJaneiroDebugAndroidTest - Installs the android (on device) tests for the RJaneiroDebug build. +installRJaneiroProfile - Installs the ProfileRJaneiroProfile build. +installRJaneiroRelease - Installs the ReleaseRJaneiroRelease build. +installSPauloDebug - Installs the DebugSPauloDebug build. +installSPauloDebugAndroidTest - Installs the android (on device) tests for the SPauloDebug build. +installSPauloProfile - Installs the ProfileSPauloProfile build. +installSPauloRelease - Installs the ReleaseSPauloRelease build. +uninstallAll - Uninstall all applications. +uninstallRJaneiroDebug - Uninstalls the DebugRJaneiroDebug build. +uninstallRJaneiroDebugAndroidTest - Uninstalls the android (on device) tests for the RJaneiroDebug build. +uninstallRJaneiroProfile - Uninstalls the ProfileRJaneiroProfile build. +uninstallRJaneiroRelease - Uninstalls the ReleaseRJaneiroRelease build. +uninstallSPauloDebug - Uninstalls the DebugSPauloDebug build. +uninstallSPauloDebugAndroidTest - Uninstalls the android (on device) tests for the SPauloDebug build. +uninstallSPauloProfile - Uninstalls the ProfileSPauloProfile build. +uninstallSPauloRelease - Uninstalls the ReleaseSPauloRelease build. + +Verification tasks +------------------ +check - Runs all checks. +checkJetifier - Checks whether Jetifier is needed for the current project +connectedAndroidTest - Installs and runs instrumentation tests for all flavors on connected devices. +connectedCheck - Runs all device checks on currently connected devices. +connectedRJaneiroDebugAndroidTest - Installs and runs the tests for RJaneiroDebug on connected devices. +connectedSPauloDebugAndroidTest - Installs and runs the tests for SPauloDebug on connected devices. +deviceAndroidTest - Installs and runs instrumentation tests using all Device Providers. +deviceCheck - Runs all device checks using Device Providers and Test Servers. +lint - Runs lint on the default variant. +lintAnalyzeRJaneiroDebug - Run lint analysis on the RJaneiroDebug variant +lintAnalyzeRJaneiroProfile - Run lint analysis on the RJaneiroProfile variant +lintAnalyzeRJaneiroRelease - Run lint analysis on the RJaneiroRelease variant +lintAnalyzeSPauloDebug - Run lint analysis on the SPauloDebug variant +lintAnalyzeSPauloProfile - Run lint analysis on the SPauloProfile variant +lintAnalyzeSPauloRelease - Run lint analysis on the SPauloRelease variant +lintFix - Runs lint on the default variant and applies any safe suggestions to the source code. +lintFixRJaneiroDebug - Fix lint on the RJaneiroDebug variant +lintFixRJaneiroProfile - Fix lint on the RJaneiroProfile variant +lintFixRJaneiroRelease - Fix lint on the RJaneiroRelease variant +lintFixSPauloDebug - Fix lint on the SPauloDebug variant +lintFixSPauloProfile - Fix lint on the SPauloProfile variant +lintFixSPauloRelease - Fix lint on the SPauloRelease variant +lintReportRJaneiroDebug - Run lint on the RJaneiroDebug variant +lintReportRJaneiroProfile - Run lint on the RJaneiroProfile variant +lintReportRJaneiroRelease - Run lint on the RJaneiroRelease variant +lintReportSPauloDebug - Run lint on the SPauloDebug variant +lintReportSPauloProfile - Run lint on the SPauloProfile variant +lintReportSPauloRelease - Run lint on the SPauloRelease variant +lintRJaneiroDebug - Print text output from the corresponding lint report task +lintRJaneiroProfile - Print text output from the corresponding lint report task +lintRJaneiroRelease - Print text output from the corresponding lint report task +lintSPauloDebug - Print text output from the corresponding lint report task +lintSPauloProfile - Print text output from the corresponding lint report task +lintSPauloRelease - Print text output from the corresponding lint report task +lintVitalAnalyzeRJaneiroRelease - Run lint analysis with only the fatal issues enabled on the RJaneiroRelease variant +lintVitalAnalyzeSPauloRelease - Run lint analysis with only the fatal issues enabled on the SPauloRelease variant +lintVitalReportRJaneiroRelease - Run lint with only the fatal issues enabled on the RJaneiroRelease variant +lintVitalReportSPauloRelease - Run lint with only the fatal issues enabled on the SPauloRelease variant +lintVitalRJaneiroRelease - Print text output from the corresponding lint report task +lintVitalSPauloRelease - Print text output from the corresponding lint report task +test - Run unit tests for all variants. +testRJaneiroDebugUnitTest - Run unit tests for the RJaneiroDebug build. +testRJaneiroProfileUnitTest - Run unit tests for the RJaneiroProfile build. +testRJaneiroReleaseUnitTest - Run unit tests for the RJaneiroRelease build. +testSPauloDebugUnitTest - Run unit tests for the SPauloDebug build. +testSPauloProfileUnitTest - Run unit tests for the SPauloProfile build. +testSPauloReleaseUnitTest - Run unit tests for the SPauloRelease build. +updateLintBaseline - Updates the lint baseline using the default variant. +updateLintBaselineRJaneiroDebug - Update the lint baseline using the RJaneiroDebug variant +updateLintBaselineRJaneiroProfile - Update the lint baseline using the RJaneiroProfile variant +updateLintBaselineRJaneiroRelease - Update the lint baseline using the RJaneiroRelease variant +updateLintBaselineSPauloDebug - Update the lint baseline using the SPauloDebug variant +updateLintBaselineSPauloProfile - Update the lint baseline using the SPauloProfile variant +updateLintBaselineSPauloRelease - Update the lint baseline using the SPauloRelease variant + +Other tasks +----------- +analyticsRecordingRJaneiroRelease +analyticsRecordingSPauloRelease +analyzeRJaneiroDebugAndroidTestDependencies +analyzeRJaneiroDebugDependencies +analyzeRJaneiroDebugUnitTestDependencies +analyzeRJaneiroProfileDependencies +analyzeRJaneiroProfileUnitTestDependencies +analyzeRJaneiroReleaseDependencies +analyzeRJaneiroReleaseUnitTestDependencies +analyzeSPauloDebugAndroidTestDependencies +analyzeSPauloDebugDependencies +analyzeSPauloDebugUnitTestDependencies +analyzeSPauloProfileDependencies +analyzeSPauloProfileUnitTestDependencies +analyzeSPauloReleaseDependencies +analyzeSPauloReleaseUnitTestDependencies +appIdListTask +assembleRJaneiroDebug - Assembles main output for variant RJaneiroDebug +assembleRJaneiroDebugAndroidTest - Assembles main output for variant RJaneiroDebugAndroidTest +assembleRJaneiroDebugUnitTest - Assembles main output for variant RJaneiroDebugUnitTest +assembleRJaneiroProfile - Assembles main output for variant RJaneiroProfile +assembleRJaneiroProfileUnitTest - Assembles main output for variant RJaneiroProfileUnitTest +assembleRJaneiroRelease - Assembles main output for variant RJaneiroRelease +assembleRJaneiroReleaseUnitTest - Assembles main output for variant RJaneiroReleaseUnitTest +assembleSPauloDebug - Assembles main output for variant SPauloDebug +assembleSPauloDebugAndroidTest - Assembles main output for variant SPauloDebugAndroidTest +assembleSPauloDebugUnitTest - Assembles main output for variant SPauloDebugUnitTest +assembleSPauloProfile - Assembles main output for variant SPauloProfile +assembleSPauloProfileUnitTest - Assembles main output for variant SPauloProfileUnitTest +assembleSPauloRelease - Assembles main output for variant SPauloRelease +assembleSPauloReleaseUnitTest - Assembles main output for variant SPauloReleaseUnitTest +buildRJaneiroDebugPreBundle +buildRJaneiroProfilePreBundle +buildRJaneiroReleasePreBundle +buildSPauloDebugPreBundle +buildSPauloProfilePreBundle +buildSPauloReleasePreBundle +bundleRJaneiroDebug - Assembles bundle for variant RJaneiroDebug +bundleRJaneiroDebugAndroidTestClassesToCompileJar +bundleRJaneiroDebugAndroidTestClassesToRuntimeJar +bundleRJaneiroDebugClassesToCompileJar +bundleRJaneiroDebugClassesToRuntimeJar +bundleRJaneiroDebugResources +bundleRJaneiroDebugUnitTestClassesToCompileJar +bundleRJaneiroDebugUnitTestClassesToRuntimeJar +bundleRJaneiroProfile - Assembles bundle for variant RJaneiroProfile +bundleRJaneiroProfileClassesToCompileJar +bundleRJaneiroProfileClassesToRuntimeJar +bundleRJaneiroProfileResources +bundleRJaneiroProfileUnitTestClassesToCompileJar +bundleRJaneiroProfileUnitTestClassesToRuntimeJar +bundleRJaneiroRelease - Assembles bundle for variant RJaneiroRelease +bundleRJaneiroReleaseClassesToCompileJar +bundleRJaneiroReleaseClassesToRuntimeJar +bundleRJaneiroReleaseResources +bundleRJaneiroReleaseUnitTestClassesToCompileJar +bundleRJaneiroReleaseUnitTestClassesToRuntimeJar +bundleSPauloDebug - Assembles bundle for variant SPauloDebug +bundleSPauloDebugAndroidTestClassesToCompileJar +bundleSPauloDebugAndroidTestClassesToRuntimeJar +bundleSPauloDebugClassesToCompileJar +bundleSPauloDebugClassesToRuntimeJar +bundleSPauloDebugResources +bundleSPauloDebugUnitTestClassesToCompileJar +bundleSPauloDebugUnitTestClassesToRuntimeJar +bundleSPauloProfile - Assembles bundle for variant SPauloProfile +bundleSPauloProfileClassesToCompileJar +bundleSPauloProfileClassesToRuntimeJar +bundleSPauloProfileResources +bundleSPauloProfileUnitTestClassesToCompileJar +bundleSPauloProfileUnitTestClassesToRuntimeJar +bundleSPauloRelease - Assembles bundle for variant SPauloRelease +bundleSPauloReleaseClassesToCompileJar +bundleSPauloReleaseClassesToRuntimeJar +bundleSPauloReleaseResources +bundleSPauloReleaseUnitTestClassesToCompileJar +bundleSPauloReleaseUnitTestClassesToRuntimeJar +checkRJaneiroDebugAarMetadata +checkRJaneiroDebugAndroidTestAarMetadata +checkRJaneiroDebugAndroidTestDuplicateClasses +checkRJaneiroDebugDuplicateClasses +checkRJaneiroDebugManifest +checkRJaneiroProfileAarMetadata +checkRJaneiroProfileDuplicateClasses +checkRJaneiroProfileManifest +checkRJaneiroReleaseAarMetadata +checkRJaneiroReleaseDuplicateClasses +checkRJaneiroReleaseManifest +checkSPauloDebugAarMetadata +checkSPauloDebugAndroidTestAarMetadata +checkSPauloDebugAndroidTestDuplicateClasses +checkSPauloDebugDuplicateClasses +checkSPauloDebugManifest +checkSPauloProfileAarMetadata +checkSPauloProfileDuplicateClasses +checkSPauloProfileManifest +checkSPauloReleaseAarMetadata +checkSPauloReleaseDuplicateClasses +checkSPauloReleaseManifest +collectRJaneiroReleaseDependencies +collectSPauloReleaseDependencies +compileFlutterBuildRJaneiroDebug +compileFlutterBuildRJaneiroProfile +compileFlutterBuildRJaneiroRelease +compileFlutterBuildSPauloDebug +compileFlutterBuildSPauloProfile +compileFlutterBuildSPauloRelease +compileLint +compileLintChecks +compileRJaneiroDebugAidl +compileRJaneiroDebugAndroidTestAidl +compileRJaneiroDebugAndroidTestJavaWithJavac +compileRJaneiroDebugAndroidTestKotlin - Compiles the RJaneiroDebugAndroidTest kotlin. +compileRJaneiroDebugAndroidTestRenderscript +compileRJaneiroDebugAndroidTestShaders +compileRJaneiroDebugArtProfile +compileRJaneiroDebugJavaWithJavac +compileRJaneiroDebugKotlin - Compiles the RJaneiroDebug kotlin. +compileRJaneiroDebugRenderscript +compileRJaneiroDebugShaders +compileRJaneiroDebugUnitTestJavaWithJavac +compileRJaneiroDebugUnitTestKotlin - Compiles the RJaneiroDebugUnitTest kotlin. +compileRJaneiroProfileAidl +compileRJaneiroProfileArtProfile +compileRJaneiroProfileJavaWithJavac +compileRJaneiroProfileKotlin - Compiles the RJaneiroProfile kotlin. +compileRJaneiroProfileRenderscript +compileRJaneiroProfileShaders +compileRJaneiroProfileUnitTestJavaWithJavac +compileRJaneiroProfileUnitTestKotlin - Compiles the RJaneiroProfileUnitTest kotlin. +compileRJaneiroReleaseAidl +compileRJaneiroReleaseArtProfile +compileRJaneiroReleaseJavaWithJavac +compileRJaneiroReleaseKotlin - Compiles the RJaneiroRelease kotlin. +compileRJaneiroReleaseRenderscript +compileRJaneiroReleaseShaders +compileRJaneiroReleaseUnitTestJavaWithJavac +compileRJaneiroReleaseUnitTestKotlin - Compiles the RJaneiroReleaseUnitTest kotlin. +compileSPauloDebugAidl +compileSPauloDebugAndroidTestAidl +compileSPauloDebugAndroidTestJavaWithJavac +compileSPauloDebugAndroidTestKotlin - Compiles the SPauloDebugAndroidTest kotlin. +compileSPauloDebugAndroidTestRenderscript +compileSPauloDebugAndroidTestShaders +compileSPauloDebugArtProfile +compileSPauloDebugJavaWithJavac +compileSPauloDebugKotlin - Compiles the SPauloDebug kotlin. +compileSPauloDebugRenderscript +compileSPauloDebugShaders +compileSPauloDebugUnitTestJavaWithJavac +compileSPauloDebugUnitTestKotlin - Compiles the SPauloDebugUnitTest kotlin. +compileSPauloProfileAidl +compileSPauloProfileArtProfile +compileSPauloProfileJavaWithJavac +compileSPauloProfileKotlin - Compiles the SPauloProfile kotlin. +compileSPauloProfileRenderscript +compileSPauloProfileShaders +compileSPauloProfileUnitTestJavaWithJavac +compileSPauloProfileUnitTestKotlin - Compiles the SPauloProfileUnitTest kotlin. +compileSPauloReleaseAidl +compileSPauloReleaseArtProfile +compileSPauloReleaseJavaWithJavac +compileSPauloReleaseKotlin - Compiles the SPauloRelease kotlin. +compileSPauloReleaseRenderscript +compileSPauloReleaseShaders +compileSPauloReleaseUnitTestJavaWithJavac +compileSPauloReleaseUnitTestKotlin - Compiles the SPauloReleaseUnitTest kotlin. +components - Displays the components produced by project ':app'. [deprecated] +compressRJaneiroDebugAndroidTestAssets +compressRJaneiroDebugAssets +compressRJaneiroProfileAssets +compressRJaneiroReleaseAssets +compressSPauloDebugAndroidTestAssets +compressSPauloDebugAssets +compressSPauloProfileAssets +compressSPauloReleaseAssets +configureRJaneiroReleaseDependencies +configureSPauloReleaseDependencies +consumeConfigAttr +copyFlutterAssetsRJaneiroDebug +copyFlutterAssetsRJaneiroProfile +copyFlutterAssetsRJaneiroRelease +copyFlutterAssetsSPauloDebug +copyFlutterAssetsSPauloProfile +copyFlutterAssetsSPauloRelease +createMockableJar +createRJaneiroDebugAndroidTestApkListingFileRedirect +createRJaneiroDebugApkListingFileRedirect +createRJaneiroDebugApksFromBundleListingFileRedirect +createRJaneiroDebugBundleListingFileRedirect +createRJaneiroDebugCompatibleScreenManifests +createRJaneiroDebugVariantModel +createRJaneiroProfileApkListingFileRedirect +createRJaneiroProfileApksFromBundleListingFileRedirect +createRJaneiroProfileBundleListingFileRedirect +createRJaneiroProfileCompatibleScreenManifests +createRJaneiroProfileVariantModel +createRJaneiroReleaseApkListingFileRedirect +createRJaneiroReleaseApksFromBundleListingFileRedirect +createRJaneiroReleaseBundleListingFileRedirect +createRJaneiroReleaseCompatibleScreenManifests +createRJaneiroReleaseVariantModel +createSPauloDebugAndroidTestApkListingFileRedirect +createSPauloDebugApkListingFileRedirect +createSPauloDebugApksFromBundleListingFileRedirect +createSPauloDebugBundleListingFileRedirect +createSPauloDebugCompatibleScreenManifests +createSPauloDebugVariantModel +createSPauloProfileApkListingFileRedirect +createSPauloProfileApksFromBundleListingFileRedirect +createSPauloProfileBundleListingFileRedirect +createSPauloProfileCompatibleScreenManifests +createSPauloProfileVariantModel +createSPauloReleaseApkListingFileRedirect +createSPauloReleaseApksFromBundleListingFileRedirect +createSPauloReleaseBundleListingFileRedirect +createSPauloReleaseCompatibleScreenManifests +createSPauloReleaseVariantModel +dependentComponents - Displays the dependent components of components in project ':app'. [deprecated] +desugarRJaneiroDebugAndroidTestFileDependencies +desugarRJaneiroDebugFileDependencies +desugarRJaneiroProfileFileDependencies +desugarSPauloDebugAndroidTestFileDependencies +desugarSPauloDebugFileDependencies +desugarSPauloProfileFileDependencies +dexBuilderRJaneiroDebug +dexBuilderRJaneiroDebugAndroidTest +dexBuilderRJaneiroProfile +dexBuilderSPauloDebug +dexBuilderSPauloDebugAndroidTest +dexBuilderSPauloProfile +extractApksForRJaneiroDebug +extractApksForRJaneiroProfile +extractApksForRJaneiroRelease +extractApksForSPauloDebug +extractApksForSPauloProfile +extractApksForSPauloRelease +extractApksFromBundleForRJaneiroDebug +extractApksFromBundleForRJaneiroProfile +extractApksFromBundleForRJaneiroRelease +extractApksFromBundleForSPauloDebug +extractApksFromBundleForSPauloProfile +extractApksFromBundleForSPauloRelease +extractDeepLinksRJaneiroDebug +extractDeepLinksRJaneiroProfile +extractDeepLinksRJaneiroRelease +extractDeepLinksSPauloDebug +extractDeepLinksSPauloProfile +extractDeepLinksSPauloRelease +extractProguardFiles +extractRJaneiroDebugNativeDebugMetadata +extractRJaneiroDebugNativeSymbolTables +extractRJaneiroProfileNativeDebugMetadata +extractRJaneiroProfileNativeSymbolTables +extractRJaneiroReleaseNativeDebugMetadata +extractRJaneiroReleaseNativeSymbolTables +extractSPauloDebugNativeDebugMetadata +extractSPauloDebugNativeSymbolTables +extractSPauloProfileNativeDebugMetadata +extractSPauloProfileNativeSymbolTables +extractSPauloReleaseNativeDebugMetadata +extractSPauloReleaseNativeSymbolTables +generateRJaneiroDebugAndroidTestAssets +generateRJaneiroDebugAndroidTestBuildConfig +generateRJaneiroDebugAndroidTestResources +generateRJaneiroDebugAndroidTestResValues +generateRJaneiroDebugAndroidTestSources +generateRJaneiroDebugAssets +generateRJaneiroDebugBuildConfig +generateRJaneiroDebugFeatureMetadata +generateRJaneiroDebugFeatureTransitiveDeps +generateRJaneiroDebugLintModel +generateRJaneiroDebugManifestClass +generateRJaneiroDebugResources +generateRJaneiroDebugResValues +generateRJaneiroDebugSources +generateRJaneiroDebugUnitTestAssets +generateRJaneiroDebugUnitTestResources +generateRJaneiroDebugUnitTestSources +generateRJaneiroProfileAssets +generateRJaneiroProfileBuildConfig +generateRJaneiroProfileFeatureMetadata +generateRJaneiroProfileFeatureTransitiveDeps +generateRJaneiroProfileLintModel +generateRJaneiroProfileManifestClass +generateRJaneiroProfileResources +generateRJaneiroProfileResValues +generateRJaneiroProfileSources +generateRJaneiroProfileUnitTestAssets +generateRJaneiroProfileUnitTestResources +generateRJaneiroProfileUnitTestSources +generateRJaneiroReleaseAssets +generateRJaneiroReleaseBuildConfig +generateRJaneiroReleaseFeatureMetadata +generateRJaneiroReleaseFeatureTransitiveDeps +generateRJaneiroReleaseLintModel +generateRJaneiroReleaseManifestClass +generateRJaneiroReleaseResources +generateRJaneiroReleaseResValues +generateRJaneiroReleaseSources +generateRJaneiroReleaseUnitTestAssets +generateRJaneiroReleaseUnitTestResources +generateRJaneiroReleaseUnitTestSources +generateSPauloDebugAndroidTestAssets +generateSPauloDebugAndroidTestBuildConfig +generateSPauloDebugAndroidTestResources +generateSPauloDebugAndroidTestResValues +generateSPauloDebugAndroidTestSources +generateSPauloDebugAssets +generateSPauloDebugBuildConfig +generateSPauloDebugFeatureMetadata +generateSPauloDebugFeatureTransitiveDeps +generateSPauloDebugLintModel +generateSPauloDebugManifestClass +generateSPauloDebugResources +generateSPauloDebugResValues +generateSPauloDebugSources +generateSPauloDebugUnitTestAssets +generateSPauloDebugUnitTestResources +generateSPauloDebugUnitTestSources +generateSPauloProfileAssets +generateSPauloProfileBuildConfig +generateSPauloProfileFeatureMetadata +generateSPauloProfileFeatureTransitiveDeps +generateSPauloProfileLintModel +generateSPauloProfileManifestClass +generateSPauloProfileResources +generateSPauloProfileResValues +generateSPauloProfileSources +generateSPauloProfileUnitTestAssets +generateSPauloProfileUnitTestResources +generateSPauloProfileUnitTestSources +generateSPauloReleaseAssets +generateSPauloReleaseBuildConfig +generateSPauloReleaseFeatureMetadata +generateSPauloReleaseFeatureTransitiveDeps +generateSPauloReleaseLintModel +generateSPauloReleaseManifestClass +generateSPauloReleaseResources +generateSPauloReleaseResValues +generateSPauloReleaseSources +generateSPauloReleaseUnitTestAssets +generateSPauloReleaseUnitTestResources +generateSPauloReleaseUnitTestSources +javaPreCompileRJaneiroDebug +javaPreCompileRJaneiroDebugAndroidTest +javaPreCompileRJaneiroDebugUnitTest +javaPreCompileRJaneiroProfile +javaPreCompileRJaneiroProfileUnitTest +javaPreCompileRJaneiroRelease +javaPreCompileRJaneiroReleaseUnitTest +javaPreCompileSPauloDebug +javaPreCompileSPauloDebugAndroidTest +javaPreCompileSPauloDebugUnitTest +javaPreCompileSPauloProfile +javaPreCompileSPauloProfileUnitTest +javaPreCompileSPauloRelease +javaPreCompileSPauloReleaseUnitTest +javaVersion - Print the current java version used by gradle. +makeApkFromBundleForRJaneiroDebug +makeApkFromBundleForRJaneiroProfile +makeApkFromBundleForRJaneiroRelease +makeApkFromBundleForSPauloDebug +makeApkFromBundleForSPauloProfile +makeApkFromBundleForSPauloRelease +mapRJaneiroDebugAndroidTestSourceSetPaths +mapRJaneiroDebugSourceSetPaths +mapRJaneiroProfileSourceSetPaths +mapRJaneiroReleaseSourceSetPaths +mapSPauloDebugAndroidTestSourceSetPaths +mapSPauloDebugSourceSetPaths +mapSPauloProfileSourceSetPaths +mapSPauloReleaseSourceSetPaths +mergeExtDexRJaneiroDebug +mergeExtDexRJaneiroDebugAndroidTest +mergeExtDexRJaneiroProfile +mergeExtDexSPauloDebug +mergeExtDexSPauloDebugAndroidTest +mergeExtDexSPauloProfile +mergeLibDexRJaneiroDebug +mergeLibDexRJaneiroDebugAndroidTest +mergeLibDexRJaneiroProfile +mergeLibDexSPauloDebug +mergeLibDexSPauloDebugAndroidTest +mergeLibDexSPauloProfile +mergeProjectDexRJaneiroDebug +mergeProjectDexRJaneiroDebugAndroidTest +mergeProjectDexRJaneiroProfile +mergeProjectDexSPauloDebug +mergeProjectDexSPauloDebugAndroidTest +mergeProjectDexSPauloProfile +mergeRJaneiroDebugAndroidTestAssets +mergeRJaneiroDebugAndroidTestGeneratedProguardFiles +mergeRJaneiroDebugAndroidTestJavaResource +mergeRJaneiroDebugAndroidTestJniLibFolders +mergeRJaneiroDebugAndroidTestNativeLibs +mergeRJaneiroDebugAndroidTestResources +mergeRJaneiroDebugAndroidTestShaders +mergeRJaneiroDebugArtProfile +mergeRJaneiroDebugAssets +mergeRJaneiroDebugGeneratedProguardFiles +mergeRJaneiroDebugJavaResource +mergeRJaneiroDebugJniLibFolders +mergeRJaneiroDebugNativeDebugMetadata +mergeRJaneiroDebugNativeLibs +mergeRJaneiroDebugResources +mergeRJaneiroDebugShaders +mergeRJaneiroProfileArtProfile +mergeRJaneiroProfileAssets +mergeRJaneiroProfileGeneratedProguardFiles +mergeRJaneiroProfileJavaResource +mergeRJaneiroProfileJniLibFolders +mergeRJaneiroProfileNativeDebugMetadata +mergeRJaneiroProfileNativeLibs +mergeRJaneiroProfileResources +mergeRJaneiroProfileShaders +mergeRJaneiroReleaseArtProfile +mergeRJaneiroReleaseAssets +mergeRJaneiroReleaseGeneratedProguardFiles +mergeRJaneiroReleaseJavaResource +mergeRJaneiroReleaseJniLibFolders +mergeRJaneiroReleaseNativeDebugMetadata +mergeRJaneiroReleaseNativeLibs +mergeRJaneiroReleaseResources +mergeRJaneiroReleaseShaders +mergeSPauloDebugAndroidTestAssets +mergeSPauloDebugAndroidTestGeneratedProguardFiles +mergeSPauloDebugAndroidTestJavaResource +mergeSPauloDebugAndroidTestJniLibFolders +mergeSPauloDebugAndroidTestNativeLibs +mergeSPauloDebugAndroidTestResources +mergeSPauloDebugAndroidTestShaders +mergeSPauloDebugArtProfile +mergeSPauloDebugAssets +mergeSPauloDebugGeneratedProguardFiles +mergeSPauloDebugJavaResource +mergeSPauloDebugJniLibFolders +mergeSPauloDebugNativeDebugMetadata +mergeSPauloDebugNativeLibs +mergeSPauloDebugResources +mergeSPauloDebugShaders +mergeSPauloProfileArtProfile +mergeSPauloProfileAssets +mergeSPauloProfileGeneratedProguardFiles +mergeSPauloProfileJavaResource +mergeSPauloProfileJniLibFolders +mergeSPauloProfileNativeDebugMetadata +mergeSPauloProfileNativeLibs +mergeSPauloProfileResources +mergeSPauloProfileShaders +mergeSPauloReleaseArtProfile +mergeSPauloReleaseAssets +mergeSPauloReleaseGeneratedProguardFiles +mergeSPauloReleaseJavaResource +mergeSPauloReleaseJniLibFolders +mergeSPauloReleaseNativeDebugMetadata +mergeSPauloReleaseNativeLibs +mergeSPauloReleaseResources +mergeSPauloReleaseShaders +minifyRJaneiroReleaseWithR8 +minifySPauloReleaseWithR8 +model - Displays the configuration model of project ':app'. [deprecated] +optimizeRJaneiroReleaseResources +optimizeSPauloReleaseResources +outputRJaneiroDebugAppLinkSettings - stores app links settings for the given build variant of this Android project into a json file. +outputRJaneiroProfileAppLinkSettings - stores app links settings for the given build variant of this Android project into a json file. +outputRJaneiroReleaseAppLinkSettings - stores app links settings for the given build variant of this Android project into a json file. +outputSPauloDebugAppLinkSettings - stores app links settings for the given build variant of this Android project into a json file. +outputSPauloProfileAppLinkSettings - stores app links settings for the given build variant of this Android project into a json file. +outputSPauloReleaseAppLinkSettings - stores app links settings for the given build variant of this Android project into a json file. +packageRJaneiroDebug +packageRJaneiroDebugAndroidTest +packageRJaneiroDebugBundle +packageRJaneiroDebugUniversalApk +packageRJaneiroProfile +packageRJaneiroProfileBundle +packageRJaneiroProfileUniversalApk +packageRJaneiroRelease +packageRJaneiroReleaseBundle +packageRJaneiroReleaseUniversalApk +packageSPauloDebug +packageSPauloDebugAndroidTest +packageSPauloDebugBundle +packageSPauloDebugUniversalApk +packageSPauloProfile +packageSPauloProfileBundle +packageSPauloProfileUniversalApk +packageSPauloRelease +packageSPauloReleaseBundle +packageSPauloReleaseUniversalApk +packJniLibsflutterBuildRJaneiroDebug +packJniLibsflutterBuildRJaneiroProfile +packJniLibsflutterBuildRJaneiroRelease +packJniLibsflutterBuildSPauloDebug +packJniLibsflutterBuildSPauloProfile +packJniLibsflutterBuildSPauloRelease +parseRJaneiroDebugIntegrityConfig +parseRJaneiroProfileIntegrityConfig +parseRJaneiroReleaseIntegrityConfig +parseSPauloDebugIntegrityConfig +parseSPauloProfileIntegrityConfig +parseSPauloReleaseIntegrityConfig +preBuild +prepareLintJarForPublish +preRJaneiroDebugAndroidTestBuild +preRJaneiroDebugBuild +preRJaneiroDebugUnitTestBuild +preRJaneiroProfileBuild +preRJaneiroProfileUnitTestBuild +preRJaneiroReleaseBuild +preRJaneiroReleaseUnitTestBuild +preSPauloDebugAndroidTestBuild +preSPauloDebugBuild +preSPauloDebugUnitTestBuild +preSPauloProfileBuild +preSPauloProfileUnitTestBuild +preSPauloReleaseBuild +preSPauloReleaseUnitTestBuild +printBuildVariants - Prints out all build variants for this Android project +processApplicationManifestRJaneiroDebugForBundle +processApplicationManifestRJaneiroProfileForBundle +processApplicationManifestRJaneiroReleaseForBundle +processApplicationManifestSPauloDebugForBundle +processApplicationManifestSPauloProfileForBundle +processApplicationManifestSPauloReleaseForBundle +processManifestRJaneiroDebugForFeature +processManifestRJaneiroProfileForFeature +processManifestRJaneiroReleaseForFeature +processManifestSPauloDebugForFeature +processManifestSPauloProfileForFeature +processManifestSPauloReleaseForFeature +processRJaneiroDebugAndroidTestJavaRes +processRJaneiroDebugAndroidTestManifest +processRJaneiroDebugAndroidTestResources +processRJaneiroDebugJavaRes +processRJaneiroDebugMainManifest +processRJaneiroDebugManifest +processRJaneiroDebugManifestForInstantApp +processRJaneiroDebugManifestForPackage +processRJaneiroDebugResources +processRJaneiroDebugUnitTestJavaRes +processRJaneiroProfileJavaRes +processRJaneiroProfileMainManifest +processRJaneiroProfileManifest +processRJaneiroProfileManifestForInstantApp +processRJaneiroProfileManifestForPackage +processRJaneiroProfileResources +processRJaneiroProfileUnitTestJavaRes +processRJaneiroReleaseJavaRes +processRJaneiroReleaseMainManifest +processRJaneiroReleaseManifest +processRJaneiroReleaseManifestForInstantApp +processRJaneiroReleaseManifestForPackage +processRJaneiroReleaseResources +processRJaneiroReleaseUnitTestJavaRes +processSPauloDebugAndroidTestJavaRes +processSPauloDebugAndroidTestManifest +processSPauloDebugAndroidTestResources +processSPauloDebugJavaRes +processSPauloDebugMainManifest +processSPauloDebugManifest +processSPauloDebugManifestForInstantApp +processSPauloDebugManifestForPackage +processSPauloDebugResources +processSPauloDebugUnitTestJavaRes +processSPauloProfileJavaRes +processSPauloProfileMainManifest +processSPauloProfileManifest +processSPauloProfileManifestForInstantApp +processSPauloProfileManifestForPackage +processSPauloProfileResources +processSPauloProfileUnitTestJavaRes +processSPauloReleaseJavaRes +processSPauloReleaseMainManifest +processSPauloReleaseManifest +processSPauloReleaseManifestForInstantApp +processSPauloReleaseManifestForPackage +processSPauloReleaseResources +processSPauloReleaseUnitTestJavaRes +produceRJaneiroDebugBundleIdeListingFile +produceRJaneiroProfileBundleIdeListingFile +produceRJaneiroReleaseBundleIdeListingFile +produceSPauloDebugBundleIdeListingFile +produceSPauloProfileBundleIdeListingFile +produceSPauloReleaseBundleIdeListingFile +resolveConfigAttr +sdkRJaneiroReleaseDependencyData +sdkSPauloReleaseDependencyData +shrinkBundleRJaneiroReleaseResources +shrinkBundleSPauloReleaseResources +shrinkRJaneiroReleaseRes +shrinkSPauloReleaseRes +signingConfigWriterRJaneiroDebug +signingConfigWriterRJaneiroDebugAndroidTest +signingConfigWriterRJaneiroProfile +signingConfigWriterRJaneiroRelease +signingConfigWriterSPauloDebug +signingConfigWriterSPauloDebugAndroidTest +signingConfigWriterSPauloProfile +signingConfigWriterSPauloRelease +signRJaneiroDebugBundle +signRJaneiroProfileBundle +signRJaneiroReleaseBundle +signSPauloDebugBundle +signSPauloProfileBundle +signSPauloReleaseBundle +stripRJaneiroDebugDebugSymbols +stripRJaneiroProfileDebugSymbols +stripRJaneiroReleaseDebugSymbols +stripSPauloDebugDebugSymbols +stripSPauloProfileDebugSymbols +stripSPauloReleaseDebugSymbols +validateSigningRJaneiroDebug +validateSigningRJaneiroDebugAndroidTest +validateSigningRJaneiroProfile +validateSigningRJaneiroRelease +validateSigningSPauloDebug +validateSigningSPauloDebugAndroidTest +validateSigningSPauloProfile +validateSigningSPauloRelease +writeRJaneiroDebugAndroidTestSigningConfigVersions +writeRJaneiroDebugApplicationId +writeRJaneiroDebugAppMetadata +writeRJaneiroDebugModuleMetadata +writeRJaneiroDebugSigningConfigVersions +writeRJaneiroProfileApplicationId +writeRJaneiroProfileAppMetadata +writeRJaneiroProfileModuleMetadata +writeRJaneiroProfileSigningConfigVersions +writeRJaneiroReleaseApplicationId +writeRJaneiroReleaseAppMetadata +writeRJaneiroReleaseModuleMetadata +writeRJaneiroReleaseSigningConfigVersions +writeSPauloDebugAndroidTestSigningConfigVersions +writeSPauloDebugApplicationId +writeSPauloDebugAppMetadata +writeSPauloDebugModuleMetadata +writeSPauloDebugSigningConfigVersions +writeSPauloProfileApplicationId +writeSPauloProfileAppMetadata +writeSPauloProfileModuleMetadata +writeSPauloProfileSigningConfigVersions +writeSPauloReleaseApplicationId +writeSPauloReleaseAppMetadata +writeSPauloReleaseModuleMetadata +writeSPauloReleaseSigningConfigVersions +zipApksForRJaneiroDebug +zipApksForRJaneiroProfile +zipApksForRJaneiroRelease +zipApksForSPauloDebug +zipApksForSPauloProfile +zipApksForSPauloRelease + +Rules +----- +Pattern: clean: Cleans the output files of a task. +Pattern: build: Assembles the artifacts of a configuration. + +BUILD SUCCESSFUL in 766ms +5 actionable tasks: 1 executed, 4 up-to-date + diff --git a/packages/shorebird_cli/test/fixtures/gradle/gradle_app_tasks_numbers_upper_case_flavors.txt b/packages/shorebird_cli/test/fixtures/gradle/gradle_app_tasks_numbers_upper_case_flavors.txt new file mode 100644 index 00000000..ff09093c --- /dev/null +++ b/packages/shorebird_cli/test/fixtures/gradle/gradle_app_tasks_numbers_upper_case_flavors.txt @@ -0,0 +1,807 @@ +> Task :gradle:compileJava NO-SOURCE +> Task :gradle:compileGroovy UP-TO-DATE +> Task :gradle:pluginDescriptors UP-TO-DATE +> Task :gradle:processResources UP-TO-DATE +> Task :gradle:classes UP-TO-DATE +> Task :gradle:jar UP-TO-DATE + +> Task :app:tasks + +------------------------------------------------------------ +Tasks runnable from project ':app' +------------------------------------------------------------ + +Android tasks +------------- +androidDependencies - Displays the Android dependencies of the project. +signingReport - Displays the signing info for the base and test modules +sourceSets - Prints out all the source sets defined in this project. + +Build tasks +----------- +assemble - Assemble main outputs for all the variants. +assembleAndroidTest - Assembles all the Test applications. +assembleCB500 - Assembles main outputs for all CB500 variants. +assembleDebug - Assembles main outputs for all Debug variants. +assembleNX700 - Assembles main outputs for all NX700 variants. +assembleProfile - Assembles main outputs for all Profile variants. +assembleRelease - Assembles main outputs for all Release variants. +build - Assembles and tests this project. +buildDependents - Assembles and tests this project and all projects that depend on it. +buildKotlinToolingMetadata - Build metadata json file containing information about the used Kotlin tooling +buildNeeded - Assembles and tests this project and all projects it depends on. +bundle - Assemble bundles for all the variants. +bundleCB500 - Assembles bundles for all CB500 variants. +bundleDebug - Assembles bundles for all Debug variants. +bundleNX700 - Assembles bundles for all NX700 variants. +bundleProfile - Assembles bundles for all Profile variants. +bundleRelease - Assembles bundles for all Release variants. +clean - Deletes the build directory. +compileCB500DebugAndroidTestSources +compileCB500DebugSources +compileCB500DebugUnitTestSources +compileCB500ProfileSources +compileCB500ProfileUnitTestSources +compileCB500ReleaseSources +compileCB500ReleaseUnitTestSources +compileNX700DebugAndroidTestSources +compileNX700DebugSources +compileNX700DebugUnitTestSources +compileNX700ProfileSources +compileNX700ProfileUnitTestSources +compileNX700ReleaseSources +compileNX700ReleaseUnitTestSources + +Help tasks +---------- +buildEnvironment - Displays all buildscript dependencies declared in project ':app'. +dependencies - Displays all dependencies declared in project ':app'. +dependencyInsight - Displays the insight into a specific dependency in project ':app'. +help - Displays a help message. +javaToolchains - Displays the detected java toolchains. +kotlinDslAccessorsReport - Prints the Kotlin code for accessing the currently available project extensions and conventions. +outgoingVariants - Displays the outgoing variants of project ':app'. +projects - Displays the sub-projects of project ':app'. +properties - Displays the properties of project ':app'. +resolvableConfigurations - Displays the configurations that can be resolved in project ':app'. +tasks - Displays the tasks runnable from project ':app'. + +Install tasks +------------- +installCB500Debug - Installs the DebugCB500Debug build. +installCB500DebugAndroidTest - Installs the android (on device) tests for the CB500Debug build. +installCB500Profile - Installs the ProfileCB500Profile build. +installCB500Release - Installs the ReleaseCB500Release build. +installNX700Debug - Installs the DebugNX700Debug build. +installNX700DebugAndroidTest - Installs the android (on device) tests for the NX700Debug build. +installNX700Profile - Installs the ProfileNX700Profile build. +installNX700Release - Installs the ReleaseNX700Release build. +uninstallAll - Uninstall all applications. +uninstallCB500Debug - Uninstalls the DebugCB500Debug build. +uninstallCB500DebugAndroidTest - Uninstalls the android (on device) tests for the CB500Debug build. +uninstallCB500Profile - Uninstalls the ProfileCB500Profile build. +uninstallCB500Release - Uninstalls the ReleaseCB500Release build. +uninstallNX700Debug - Uninstalls the DebugNX700Debug build. +uninstallNX700DebugAndroidTest - Uninstalls the android (on device) tests for the NX700Debug build. +uninstallNX700Profile - Uninstalls the ProfileNX700Profile build. +uninstallNX700Release - Uninstalls the ReleaseNX700Release build. + +Verification tasks +------------------ +check - Runs all checks. +checkJetifier - Checks whether Jetifier is needed for the current project +connectedAndroidTest - Installs and runs instrumentation tests for all flavors on connected devices. +connectedCB500DebugAndroidTest - Installs and runs the tests for CB500Debug on connected devices. +connectedCheck - Runs all device checks on currently connected devices. +connectedNX700DebugAndroidTest - Installs and runs the tests for NX700Debug on connected devices. +deviceAndroidTest - Installs and runs instrumentation tests using all Device Providers. +deviceCheck - Runs all device checks using Device Providers and Test Servers. +lint - Runs lint on the default variant. +lintAnalyzeCB500Debug - Run lint analysis on the CB500Debug variant +lintAnalyzeCB500Profile - Run lint analysis on the CB500Profile variant +lintAnalyzeCB500Release - Run lint analysis on the CB500Release variant +lintAnalyzeNX700Debug - Run lint analysis on the NX700Debug variant +lintAnalyzeNX700Profile - Run lint analysis on the NX700Profile variant +lintAnalyzeNX700Release - Run lint analysis on the NX700Release variant +lintCB500Debug - Print text output from the corresponding lint report task +lintCB500Profile - Print text output from the corresponding lint report task +lintCB500Release - Print text output from the corresponding lint report task +lintFix - Runs lint on the default variant and applies any safe suggestions to the source code. +lintFixCB500Debug - Fix lint on the CB500Debug variant +lintFixCB500Profile - Fix lint on the CB500Profile variant +lintFixCB500Release - Fix lint on the CB500Release variant +lintFixNX700Debug - Fix lint on the NX700Debug variant +lintFixNX700Profile - Fix lint on the NX700Profile variant +lintFixNX700Release - Fix lint on the NX700Release variant +lintNX700Debug - Print text output from the corresponding lint report task +lintNX700Profile - Print text output from the corresponding lint report task +lintNX700Release - Print text output from the corresponding lint report task +lintReportCB500Debug - Run lint on the CB500Debug variant +lintReportCB500Profile - Run lint on the CB500Profile variant +lintReportCB500Release - Run lint on the CB500Release variant +lintReportNX700Debug - Run lint on the NX700Debug variant +lintReportNX700Profile - Run lint on the NX700Profile variant +lintReportNX700Release - Run lint on the NX700Release variant +lintVitalAnalyzeCB500Release - Run lint analysis with only the fatal issues enabled on the CB500Release variant +lintVitalAnalyzeNX700Release - Run lint analysis with only the fatal issues enabled on the NX700Release variant +lintVitalCB500Release - Print text output from the corresponding lint report task +lintVitalNX700Release - Print text output from the corresponding lint report task +lintVitalReportCB500Release - Run lint with only the fatal issues enabled on the CB500Release variant +lintVitalReportNX700Release - Run lint with only the fatal issues enabled on the NX700Release variant +test - Run unit tests for all variants. +testCB500DebugUnitTest - Run unit tests for the CB500Debug build. +testCB500ProfileUnitTest - Run unit tests for the CB500Profile build. +testCB500ReleaseUnitTest - Run unit tests for the CB500Release build. +testNX700DebugUnitTest - Run unit tests for the NX700Debug build. +testNX700ProfileUnitTest - Run unit tests for the NX700Profile build. +testNX700ReleaseUnitTest - Run unit tests for the NX700Release build. +updateLintBaseline - Updates the lint baseline using the default variant. +updateLintBaselineCB500Debug - Update the lint baseline using the CB500Debug variant +updateLintBaselineCB500Profile - Update the lint baseline using the CB500Profile variant +updateLintBaselineCB500Release - Update the lint baseline using the CB500Release variant +updateLintBaselineNX700Debug - Update the lint baseline using the NX700Debug variant +updateLintBaselineNX700Profile - Update the lint baseline using the NX700Profile variant +updateLintBaselineNX700Release - Update the lint baseline using the NX700Release variant + +Other tasks +----------- +analyticsRecordingCB500Release +analyticsRecordingNX700Release +analyzeCB500DebugAndroidTestDependencies +analyzeCB500DebugDependencies +analyzeCB500DebugUnitTestDependencies +analyzeCB500ProfileDependencies +analyzeCB500ProfileUnitTestDependencies +analyzeCB500ReleaseDependencies +analyzeCB500ReleaseUnitTestDependencies +analyzeNX700DebugAndroidTestDependencies +analyzeNX700DebugDependencies +analyzeNX700DebugUnitTestDependencies +analyzeNX700ProfileDependencies +analyzeNX700ProfileUnitTestDependencies +analyzeNX700ReleaseDependencies +analyzeNX700ReleaseUnitTestDependencies +appIdListTask +assembleCB500Debug - Assembles main output for variant CB500Debug +assembleCB500DebugAndroidTest - Assembles main output for variant CB500DebugAndroidTest +assembleCB500DebugUnitTest - Assembles main output for variant CB500DebugUnitTest +assembleCB500Profile - Assembles main output for variant CB500Profile +assembleCB500ProfileUnitTest - Assembles main output for variant CB500ProfileUnitTest +assembleCB500Release - Assembles main output for variant CB500Release +assembleCB500ReleaseUnitTest - Assembles main output for variant CB500ReleaseUnitTest +assembleNX700Debug - Assembles main output for variant NX700Debug +assembleNX700DebugAndroidTest - Assembles main output for variant NX700DebugAndroidTest +assembleNX700DebugUnitTest - Assembles main output for variant NX700DebugUnitTest +assembleNX700Profile - Assembles main output for variant NX700Profile +assembleNX700ProfileUnitTest - Assembles main output for variant NX700ProfileUnitTest +assembleNX700Release - Assembles main output for variant NX700Release +assembleNX700ReleaseUnitTest - Assembles main output for variant NX700ReleaseUnitTest +buildCB500DebugPreBundle +buildCB500ProfilePreBundle +buildCB500ReleasePreBundle +buildNX700DebugPreBundle +buildNX700ProfilePreBundle +buildNX700ReleasePreBundle +bundleCB500Debug - Assembles bundle for variant CB500Debug +bundleCB500DebugAndroidTestClassesToCompileJar +bundleCB500DebugAndroidTestClassesToRuntimeJar +bundleCB500DebugClassesToCompileJar +bundleCB500DebugClassesToRuntimeJar +bundleCB500DebugResources +bundleCB500DebugUnitTestClassesToCompileJar +bundleCB500DebugUnitTestClassesToRuntimeJar +bundleCB500Profile - Assembles bundle for variant CB500Profile +bundleCB500ProfileClassesToCompileJar +bundleCB500ProfileClassesToRuntimeJar +bundleCB500ProfileResources +bundleCB500ProfileUnitTestClassesToCompileJar +bundleCB500ProfileUnitTestClassesToRuntimeJar +bundleCB500Release - Assembles bundle for variant CB500Release +bundleCB500ReleaseClassesToCompileJar +bundleCB500ReleaseClassesToRuntimeJar +bundleCB500ReleaseResources +bundleCB500ReleaseUnitTestClassesToCompileJar +bundleCB500ReleaseUnitTestClassesToRuntimeJar +bundleNX700Debug - Assembles bundle for variant NX700Debug +bundleNX700DebugAndroidTestClassesToCompileJar +bundleNX700DebugAndroidTestClassesToRuntimeJar +bundleNX700DebugClassesToCompileJar +bundleNX700DebugClassesToRuntimeJar +bundleNX700DebugResources +bundleNX700DebugUnitTestClassesToCompileJar +bundleNX700DebugUnitTestClassesToRuntimeJar +bundleNX700Profile - Assembles bundle for variant NX700Profile +bundleNX700ProfileClassesToCompileJar +bundleNX700ProfileClassesToRuntimeJar +bundleNX700ProfileResources +bundleNX700ProfileUnitTestClassesToCompileJar +bundleNX700ProfileUnitTestClassesToRuntimeJar +bundleNX700Release - Assembles bundle for variant NX700Release +bundleNX700ReleaseClassesToCompileJar +bundleNX700ReleaseClassesToRuntimeJar +bundleNX700ReleaseResources +bundleNX700ReleaseUnitTestClassesToCompileJar +bundleNX700ReleaseUnitTestClassesToRuntimeJar +checkCB500DebugAarMetadata +checkCB500DebugAndroidTestAarMetadata +checkCB500DebugAndroidTestDuplicateClasses +checkCB500DebugDuplicateClasses +checkCB500DebugManifest +checkCB500ProfileAarMetadata +checkCB500ProfileDuplicateClasses +checkCB500ProfileManifest +checkCB500ReleaseAarMetadata +checkCB500ReleaseDuplicateClasses +checkCB500ReleaseManifest +checkNX700DebugAarMetadata +checkNX700DebugAndroidTestAarMetadata +checkNX700DebugAndroidTestDuplicateClasses +checkNX700DebugDuplicateClasses +checkNX700DebugManifest +checkNX700ProfileAarMetadata +checkNX700ProfileDuplicateClasses +checkNX700ProfileManifest +checkNX700ReleaseAarMetadata +checkNX700ReleaseDuplicateClasses +checkNX700ReleaseManifest +collectCB500ReleaseDependencies +collectNX700ReleaseDependencies +compileCB500DebugAidl +compileCB500DebugAndroidTestAidl +compileCB500DebugAndroidTestJavaWithJavac +compileCB500DebugAndroidTestKotlin - Compiles the CB500DebugAndroidTest kotlin. +compileCB500DebugAndroidTestRenderscript +compileCB500DebugAndroidTestShaders +compileCB500DebugArtProfile +compileCB500DebugJavaWithJavac +compileCB500DebugKotlin - Compiles the CB500Debug kotlin. +compileCB500DebugRenderscript +compileCB500DebugShaders +compileCB500DebugUnitTestJavaWithJavac +compileCB500DebugUnitTestKotlin - Compiles the CB500DebugUnitTest kotlin. +compileCB500ProfileAidl +compileCB500ProfileArtProfile +compileCB500ProfileJavaWithJavac +compileCB500ProfileKotlin - Compiles the CB500Profile kotlin. +compileCB500ProfileRenderscript +compileCB500ProfileShaders +compileCB500ProfileUnitTestJavaWithJavac +compileCB500ProfileUnitTestKotlin - Compiles the CB500ProfileUnitTest kotlin. +compileCB500ReleaseAidl +compileCB500ReleaseArtProfile +compileCB500ReleaseJavaWithJavac +compileCB500ReleaseKotlin - Compiles the CB500Release kotlin. +compileCB500ReleaseRenderscript +compileCB500ReleaseShaders +compileCB500ReleaseUnitTestJavaWithJavac +compileCB500ReleaseUnitTestKotlin - Compiles the CB500ReleaseUnitTest kotlin. +compileFlutterBuildCB500Debug +compileFlutterBuildCB500Profile +compileFlutterBuildCB500Release +compileFlutterBuildNX700Debug +compileFlutterBuildNX700Profile +compileFlutterBuildNX700Release +compileLint +compileLintChecks +compileNX700DebugAidl +compileNX700DebugAndroidTestAidl +compileNX700DebugAndroidTestJavaWithJavac +compileNX700DebugAndroidTestKotlin - Compiles the NX700DebugAndroidTest kotlin. +compileNX700DebugAndroidTestRenderscript +compileNX700DebugAndroidTestShaders +compileNX700DebugArtProfile +compileNX700DebugJavaWithJavac +compileNX700DebugKotlin - Compiles the NX700Debug kotlin. +compileNX700DebugRenderscript +compileNX700DebugShaders +compileNX700DebugUnitTestJavaWithJavac +compileNX700DebugUnitTestKotlin - Compiles the NX700DebugUnitTest kotlin. +compileNX700ProfileAidl +compileNX700ProfileArtProfile +compileNX700ProfileJavaWithJavac +compileNX700ProfileKotlin - Compiles the NX700Profile kotlin. +compileNX700ProfileRenderscript +compileNX700ProfileShaders +compileNX700ProfileUnitTestJavaWithJavac +compileNX700ProfileUnitTestKotlin - Compiles the NX700ProfileUnitTest kotlin. +compileNX700ReleaseAidl +compileNX700ReleaseArtProfile +compileNX700ReleaseJavaWithJavac +compileNX700ReleaseKotlin - Compiles the NX700Release kotlin. +compileNX700ReleaseRenderscript +compileNX700ReleaseShaders +compileNX700ReleaseUnitTestJavaWithJavac +compileNX700ReleaseUnitTestKotlin - Compiles the NX700ReleaseUnitTest kotlin. +components - Displays the components produced by project ':app'. [deprecated] +compressCB500DebugAndroidTestAssets +compressCB500DebugAssets +compressCB500ProfileAssets +compressCB500ReleaseAssets +compressNX700DebugAndroidTestAssets +compressNX700DebugAssets +compressNX700ProfileAssets +compressNX700ReleaseAssets +configureCB500ReleaseDependencies +configureNX700ReleaseDependencies +consumeConfigAttr +copyFlutterAssetsCB500Debug +copyFlutterAssetsCB500Profile +copyFlutterAssetsCB500Release +copyFlutterAssetsNX700Debug +copyFlutterAssetsNX700Profile +copyFlutterAssetsNX700Release +createCB500DebugAndroidTestApkListingFileRedirect +createCB500DebugApkListingFileRedirect +createCB500DebugApksFromBundleListingFileRedirect +createCB500DebugBundleListingFileRedirect +createCB500DebugCompatibleScreenManifests +createCB500DebugVariantModel +createCB500ProfileApkListingFileRedirect +createCB500ProfileApksFromBundleListingFileRedirect +createCB500ProfileBundleListingFileRedirect +createCB500ProfileCompatibleScreenManifests +createCB500ProfileVariantModel +createCB500ReleaseApkListingFileRedirect +createCB500ReleaseApksFromBundleListingFileRedirect +createCB500ReleaseBundleListingFileRedirect +createCB500ReleaseCompatibleScreenManifests +createCB500ReleaseVariantModel +createMockableJar +createNX700DebugAndroidTestApkListingFileRedirect +createNX700DebugApkListingFileRedirect +createNX700DebugApksFromBundleListingFileRedirect +createNX700DebugBundleListingFileRedirect +createNX700DebugCompatibleScreenManifests +createNX700DebugVariantModel +createNX700ProfileApkListingFileRedirect +createNX700ProfileApksFromBundleListingFileRedirect +createNX700ProfileBundleListingFileRedirect +createNX700ProfileCompatibleScreenManifests +createNX700ProfileVariantModel +createNX700ReleaseApkListingFileRedirect +createNX700ReleaseApksFromBundleListingFileRedirect +createNX700ReleaseBundleListingFileRedirect +createNX700ReleaseCompatibleScreenManifests +createNX700ReleaseVariantModel +dependentComponents - Displays the dependent components of components in project ':app'. [deprecated] +desugarCB500DebugAndroidTestFileDependencies +desugarCB500DebugFileDependencies +desugarCB500ProfileFileDependencies +desugarNX700DebugAndroidTestFileDependencies +desugarNX700DebugFileDependencies +desugarNX700ProfileFileDependencies +dexBuilderCB500Debug +dexBuilderCB500DebugAndroidTest +dexBuilderCB500Profile +dexBuilderNX700Debug +dexBuilderNX700DebugAndroidTest +dexBuilderNX700Profile +extractApksForCB500Debug +extractApksForCB500Profile +extractApksForCB500Release +extractApksForNX700Debug +extractApksForNX700Profile +extractApksForNX700Release +extractApksFromBundleForCB500Debug +extractApksFromBundleForCB500Profile +extractApksFromBundleForCB500Release +extractApksFromBundleForNX700Debug +extractApksFromBundleForNX700Profile +extractApksFromBundleForNX700Release +extractCB500DebugNativeDebugMetadata +extractCB500DebugNativeSymbolTables +extractCB500ProfileNativeDebugMetadata +extractCB500ProfileNativeSymbolTables +extractCB500ReleaseNativeDebugMetadata +extractCB500ReleaseNativeSymbolTables +extractDeepLinksCB500Debug +extractDeepLinksCB500Profile +extractDeepLinksCB500Release +extractDeepLinksNX700Debug +extractDeepLinksNX700Profile +extractDeepLinksNX700Release +extractNX700DebugNativeDebugMetadata +extractNX700DebugNativeSymbolTables +extractNX700ProfileNativeDebugMetadata +extractNX700ProfileNativeSymbolTables +extractNX700ReleaseNativeDebugMetadata +extractNX700ReleaseNativeSymbolTables +extractProguardFiles +generateCB500DebugAndroidTestAssets +generateCB500DebugAndroidTestBuildConfig +generateCB500DebugAndroidTestResources +generateCB500DebugAndroidTestResValues +generateCB500DebugAndroidTestSources +generateCB500DebugAssets +generateCB500DebugBuildConfig +generateCB500DebugFeatureMetadata +generateCB500DebugFeatureTransitiveDeps +generateCB500DebugLintModel +generateCB500DebugManifestClass +generateCB500DebugResources +generateCB500DebugResValues +generateCB500DebugSources +generateCB500DebugUnitTestAssets +generateCB500DebugUnitTestResources +generateCB500DebugUnitTestSources +generateCB500ProfileAssets +generateCB500ProfileBuildConfig +generateCB500ProfileFeatureMetadata +generateCB500ProfileFeatureTransitiveDeps +generateCB500ProfileLintModel +generateCB500ProfileManifestClass +generateCB500ProfileResources +generateCB500ProfileResValues +generateCB500ProfileSources +generateCB500ProfileUnitTestAssets +generateCB500ProfileUnitTestResources +generateCB500ProfileUnitTestSources +generateCB500ReleaseAssets +generateCB500ReleaseBuildConfig +generateCB500ReleaseFeatureMetadata +generateCB500ReleaseFeatureTransitiveDeps +generateCB500ReleaseLintModel +generateCB500ReleaseManifestClass +generateCB500ReleaseResources +generateCB500ReleaseResValues +generateCB500ReleaseSources +generateCB500ReleaseUnitTestAssets +generateCB500ReleaseUnitTestResources +generateCB500ReleaseUnitTestSources +generateNX700DebugAndroidTestAssets +generateNX700DebugAndroidTestBuildConfig +generateNX700DebugAndroidTestResources +generateNX700DebugAndroidTestResValues +generateNX700DebugAndroidTestSources +generateNX700DebugAssets +generateNX700DebugBuildConfig +generateNX700DebugFeatureMetadata +generateNX700DebugFeatureTransitiveDeps +generateNX700DebugLintModel +generateNX700DebugManifestClass +generateNX700DebugResources +generateNX700DebugResValues +generateNX700DebugSources +generateNX700DebugUnitTestAssets +generateNX700DebugUnitTestResources +generateNX700DebugUnitTestSources +generateNX700ProfileAssets +generateNX700ProfileBuildConfig +generateNX700ProfileFeatureMetadata +generateNX700ProfileFeatureTransitiveDeps +generateNX700ProfileLintModel +generateNX700ProfileManifestClass +generateNX700ProfileResources +generateNX700ProfileResValues +generateNX700ProfileSources +generateNX700ProfileUnitTestAssets +generateNX700ProfileUnitTestResources +generateNX700ProfileUnitTestSources +generateNX700ReleaseAssets +generateNX700ReleaseBuildConfig +generateNX700ReleaseFeatureMetadata +generateNX700ReleaseFeatureTransitiveDeps +generateNX700ReleaseLintModel +generateNX700ReleaseManifestClass +generateNX700ReleaseResources +generateNX700ReleaseResValues +generateNX700ReleaseSources +generateNX700ReleaseUnitTestAssets +generateNX700ReleaseUnitTestResources +generateNX700ReleaseUnitTestSources +javaPreCompileCB500Debug +javaPreCompileCB500DebugAndroidTest +javaPreCompileCB500DebugUnitTest +javaPreCompileCB500Profile +javaPreCompileCB500ProfileUnitTest +javaPreCompileCB500Release +javaPreCompileCB500ReleaseUnitTest +javaPreCompileNX700Debug +javaPreCompileNX700DebugAndroidTest +javaPreCompileNX700DebugUnitTest +javaPreCompileNX700Profile +javaPreCompileNX700ProfileUnitTest +javaPreCompileNX700Release +javaPreCompileNX700ReleaseUnitTest +javaVersion - Print the current java version used by gradle. +makeApkFromBundleForCB500Debug +makeApkFromBundleForCB500Profile +makeApkFromBundleForCB500Release +makeApkFromBundleForNX700Debug +makeApkFromBundleForNX700Profile +makeApkFromBundleForNX700Release +mapCB500DebugAndroidTestSourceSetPaths +mapCB500DebugSourceSetPaths +mapCB500ProfileSourceSetPaths +mapCB500ReleaseSourceSetPaths +mapNX700DebugAndroidTestSourceSetPaths +mapNX700DebugSourceSetPaths +mapNX700ProfileSourceSetPaths +mapNX700ReleaseSourceSetPaths +mergeCB500DebugAndroidTestAssets +mergeCB500DebugAndroidTestGeneratedProguardFiles +mergeCB500DebugAndroidTestJavaResource +mergeCB500DebugAndroidTestJniLibFolders +mergeCB500DebugAndroidTestNativeLibs +mergeCB500DebugAndroidTestResources +mergeCB500DebugAndroidTestShaders +mergeCB500DebugArtProfile +mergeCB500DebugAssets +mergeCB500DebugGeneratedProguardFiles +mergeCB500DebugJavaResource +mergeCB500DebugJniLibFolders +mergeCB500DebugNativeDebugMetadata +mergeCB500DebugNativeLibs +mergeCB500DebugResources +mergeCB500DebugShaders +mergeCB500ProfileArtProfile +mergeCB500ProfileAssets +mergeCB500ProfileGeneratedProguardFiles +mergeCB500ProfileJavaResource +mergeCB500ProfileJniLibFolders +mergeCB500ProfileNativeDebugMetadata +mergeCB500ProfileNativeLibs +mergeCB500ProfileResources +mergeCB500ProfileShaders +mergeCB500ReleaseArtProfile +mergeCB500ReleaseAssets +mergeCB500ReleaseGeneratedProguardFiles +mergeCB500ReleaseJavaResource +mergeCB500ReleaseJniLibFolders +mergeCB500ReleaseNativeDebugMetadata +mergeCB500ReleaseNativeLibs +mergeCB500ReleaseResources +mergeCB500ReleaseShaders +mergeExtDexCB500Debug +mergeExtDexCB500DebugAndroidTest +mergeExtDexCB500Profile +mergeExtDexNX700Debug +mergeExtDexNX700DebugAndroidTest +mergeExtDexNX700Profile +mergeLibDexCB500Debug +mergeLibDexCB500DebugAndroidTest +mergeLibDexCB500Profile +mergeLibDexNX700Debug +mergeLibDexNX700DebugAndroidTest +mergeLibDexNX700Profile +mergeNX700DebugAndroidTestAssets +mergeNX700DebugAndroidTestGeneratedProguardFiles +mergeNX700DebugAndroidTestJavaResource +mergeNX700DebugAndroidTestJniLibFolders +mergeNX700DebugAndroidTestNativeLibs +mergeNX700DebugAndroidTestResources +mergeNX700DebugAndroidTestShaders +mergeNX700DebugArtProfile +mergeNX700DebugAssets +mergeNX700DebugGeneratedProguardFiles +mergeNX700DebugJavaResource +mergeNX700DebugJniLibFolders +mergeNX700DebugNativeDebugMetadata +mergeNX700DebugNativeLibs +mergeNX700DebugResources +mergeNX700DebugShaders +mergeNX700ProfileArtProfile +mergeNX700ProfileAssets +mergeNX700ProfileGeneratedProguardFiles +mergeNX700ProfileJavaResource +mergeNX700ProfileJniLibFolders +mergeNX700ProfileNativeDebugMetadata +mergeNX700ProfileNativeLibs +mergeNX700ProfileResources +mergeNX700ProfileShaders +mergeNX700ReleaseArtProfile +mergeNX700ReleaseAssets +mergeNX700ReleaseGeneratedProguardFiles +mergeNX700ReleaseJavaResource +mergeNX700ReleaseJniLibFolders +mergeNX700ReleaseNativeDebugMetadata +mergeNX700ReleaseNativeLibs +mergeNX700ReleaseResources +mergeNX700ReleaseShaders +mergeProjectDexCB500Debug +mergeProjectDexCB500DebugAndroidTest +mergeProjectDexCB500Profile +mergeProjectDexNX700Debug +mergeProjectDexNX700DebugAndroidTest +mergeProjectDexNX700Profile +minifyCB500ReleaseWithR8 +minifyNX700ReleaseWithR8 +model - Displays the configuration model of project ':app'. [deprecated] +optimizeCB500ReleaseResources +optimizeNX700ReleaseResources +outputCB500DebugAppLinkSettings - stores app links settings for the given build variant of this Android project into a json file. +outputCB500ProfileAppLinkSettings - stores app links settings for the given build variant of this Android project into a json file. +outputCB500ReleaseAppLinkSettings - stores app links settings for the given build variant of this Android project into a json file. +outputNX700DebugAppLinkSettings - stores app links settings for the given build variant of this Android project into a json file. +outputNX700ProfileAppLinkSettings - stores app links settings for the given build variant of this Android project into a json file. +outputNX700ReleaseAppLinkSettings - stores app links settings for the given build variant of this Android project into a json file. +packageCB500Debug +packageCB500DebugAndroidTest +packageCB500DebugBundle +packageCB500DebugUniversalApk +packageCB500Profile +packageCB500ProfileBundle +packageCB500ProfileUniversalApk +packageCB500Release +packageCB500ReleaseBundle +packageCB500ReleaseUniversalApk +packageNX700Debug +packageNX700DebugAndroidTest +packageNX700DebugBundle +packageNX700DebugUniversalApk +packageNX700Profile +packageNX700ProfileBundle +packageNX700ProfileUniversalApk +packageNX700Release +packageNX700ReleaseBundle +packageNX700ReleaseUniversalApk +packJniLibsflutterBuildCB500Debug +packJniLibsflutterBuildCB500Profile +packJniLibsflutterBuildCB500Release +packJniLibsflutterBuildNX700Debug +packJniLibsflutterBuildNX700Profile +packJniLibsflutterBuildNX700Release +parseCB500DebugIntegrityConfig +parseCB500ProfileIntegrityConfig +parseCB500ReleaseIntegrityConfig +parseNX700DebugIntegrityConfig +parseNX700ProfileIntegrityConfig +parseNX700ReleaseIntegrityConfig +preBuild +preCB500DebugAndroidTestBuild +preCB500DebugBuild +preCB500DebugUnitTestBuild +preCB500ProfileBuild +preCB500ProfileUnitTestBuild +preCB500ReleaseBuild +preCB500ReleaseUnitTestBuild +preNX700DebugAndroidTestBuild +preNX700DebugBuild +preNX700DebugUnitTestBuild +preNX700ProfileBuild +preNX700ProfileUnitTestBuild +preNX700ReleaseBuild +preNX700ReleaseUnitTestBuild +prepareLintJarForPublish +printBuildVariants - Prints out all build variants for this Android project +processApplicationManifestCB500DebugForBundle +processApplicationManifestCB500ProfileForBundle +processApplicationManifestCB500ReleaseForBundle +processApplicationManifestNX700DebugForBundle +processApplicationManifestNX700ProfileForBundle +processApplicationManifestNX700ReleaseForBundle +processCB500DebugAndroidTestJavaRes +processCB500DebugAndroidTestManifest +processCB500DebugAndroidTestResources +processCB500DebugJavaRes +processCB500DebugMainManifest +processCB500DebugManifest +processCB500DebugManifestForInstantApp +processCB500DebugManifestForPackage +processCB500DebugResources +processCB500DebugUnitTestJavaRes +processCB500ProfileJavaRes +processCB500ProfileMainManifest +processCB500ProfileManifest +processCB500ProfileManifestForInstantApp +processCB500ProfileManifestForPackage +processCB500ProfileResources +processCB500ProfileUnitTestJavaRes +processCB500ReleaseJavaRes +processCB500ReleaseMainManifest +processCB500ReleaseManifest +processCB500ReleaseManifestForInstantApp +processCB500ReleaseManifestForPackage +processCB500ReleaseResources +processCB500ReleaseUnitTestJavaRes +processManifestCB500DebugForFeature +processManifestCB500ProfileForFeature +processManifestCB500ReleaseForFeature +processManifestNX700DebugForFeature +processManifestNX700ProfileForFeature +processManifestNX700ReleaseForFeature +processNX700DebugAndroidTestJavaRes +processNX700DebugAndroidTestManifest +processNX700DebugAndroidTestResources +processNX700DebugJavaRes +processNX700DebugMainManifest +processNX700DebugManifest +processNX700DebugManifestForInstantApp +processNX700DebugManifestForPackage +processNX700DebugResources +processNX700DebugUnitTestJavaRes +processNX700ProfileJavaRes +processNX700ProfileMainManifest +processNX700ProfileManifest +processNX700ProfileManifestForInstantApp +processNX700ProfileManifestForPackage +processNX700ProfileResources +processNX700ProfileUnitTestJavaRes +processNX700ReleaseJavaRes +processNX700ReleaseMainManifest +processNX700ReleaseManifest +processNX700ReleaseManifestForInstantApp +processNX700ReleaseManifestForPackage +processNX700ReleaseResources +processNX700ReleaseUnitTestJavaRes +produceCB500DebugBundleIdeListingFile +produceCB500ProfileBundleIdeListingFile +produceCB500ReleaseBundleIdeListingFile +produceNX700DebugBundleIdeListingFile +produceNX700ProfileBundleIdeListingFile +produceNX700ReleaseBundleIdeListingFile +resolveConfigAttr +sdkCB500ReleaseDependencyData +sdkNX700ReleaseDependencyData +shrinkBundleCB500ReleaseResources +shrinkBundleNX700ReleaseResources +shrinkCB500ReleaseRes +shrinkNX700ReleaseRes +signCB500DebugBundle +signCB500ProfileBundle +signCB500ReleaseBundle +signingConfigWriterCB500Debug +signingConfigWriterCB500DebugAndroidTest +signingConfigWriterCB500Profile +signingConfigWriterCB500Release +signingConfigWriterNX700Debug +signingConfigWriterNX700DebugAndroidTest +signingConfigWriterNX700Profile +signingConfigWriterNX700Release +signNX700DebugBundle +signNX700ProfileBundle +signNX700ReleaseBundle +stripCB500DebugDebugSymbols +stripCB500ProfileDebugSymbols +stripCB500ReleaseDebugSymbols +stripNX700DebugDebugSymbols +stripNX700ProfileDebugSymbols +stripNX700ReleaseDebugSymbols +validateSigningCB500Debug +validateSigningCB500DebugAndroidTest +validateSigningCB500Profile +validateSigningCB500Release +validateSigningNX700Debug +validateSigningNX700DebugAndroidTest +validateSigningNX700Profile +validateSigningNX700Release +writeCB500DebugAndroidTestSigningConfigVersions +writeCB500DebugApplicationId +writeCB500DebugAppMetadata +writeCB500DebugModuleMetadata +writeCB500DebugSigningConfigVersions +writeCB500ProfileApplicationId +writeCB500ProfileAppMetadata +writeCB500ProfileModuleMetadata +writeCB500ProfileSigningConfigVersions +writeCB500ReleaseApplicationId +writeCB500ReleaseAppMetadata +writeCB500ReleaseModuleMetadata +writeCB500ReleaseSigningConfigVersions +writeNX700DebugAndroidTestSigningConfigVersions +writeNX700DebugApplicationId +writeNX700DebugAppMetadata +writeNX700DebugModuleMetadata +writeNX700DebugSigningConfigVersions +writeNX700ProfileApplicationId +writeNX700ProfileAppMetadata +writeNX700ProfileModuleMetadata +writeNX700ProfileSigningConfigVersions +writeNX700ReleaseApplicationId +writeNX700ReleaseAppMetadata +writeNX700ReleaseModuleMetadata +writeNX700ReleaseSigningConfigVersions +zipApksForCB500Debug +zipApksForCB500Profile +zipApksForCB500Release +zipApksForNX700Debug +zipApksForNX700Profile +zipApksForNX700Release + +Rules +----- +Pattern: clean: Cleans the output files of a task. +Pattern: build: Assembles the artifacts of a configuration. + +BUILD SUCCESSFUL in 1s +5 actionable tasks: 1 executed, 4 up-to-date diff --git a/packages/shorebird_cli/test/fixtures/gradle/gradle_app_tasks_upper_case_flavors.txt b/packages/shorebird_cli/test/fixtures/gradle/gradle_app_tasks_upper_case_flavors.txt new file mode 100644 index 00000000..0961fb0c --- /dev/null +++ b/packages/shorebird_cli/test/fixtures/gradle/gradle_app_tasks_upper_case_flavors.txt @@ -0,0 +1,807 @@ +> Task :gradle:compileJava NO-SOURCE +> Task :gradle:compileGroovy UP-TO-DATE +> Task :gradle:pluginDescriptors UP-TO-DATE +> Task :gradle:processResources UP-TO-DATE +> Task :gradle:classes UP-TO-DATE +> Task :gradle:jar UP-TO-DATE + +> Task :app:tasks + +------------------------------------------------------------ +Tasks runnable from project ':app' +------------------------------------------------------------ + +Android tasks +------------- +androidDependencies - Displays the Android dependencies of the project. +signingReport - Displays the signing info for the base and test modules +sourceSets - Prints out all the source sets defined in this project. + +Build tasks +----------- +assemble - Assemble main outputs for all the variants. +assembleAndroidTest - Assembles all the Test applications. +assembleDebug - Assembles main outputs for all Debug variants. +assembleProfile - Assembles main outputs for all Profile variants. +assembleRelease - Assembles main outputs for all Release variants. +assembleRJ - Assembles main outputs for all RJ variants. +assembleSP - Assembles main outputs for all SP variants. +build - Assembles and tests this project. +buildDependents - Assembles and tests this project and all projects that depend on it. +buildKotlinToolingMetadata - Build metadata json file containing information about the used Kotlin tooling +buildNeeded - Assembles and tests this project and all projects it depends on. +bundle - Assemble bundles for all the variants. +bundleDebug - Assembles bundles for all Debug variants. +bundleProfile - Assembles bundles for all Profile variants. +bundleRelease - Assembles bundles for all Release variants. +bundleRJ - Assembles bundles for all RJ variants. +bundleSP - Assembles bundles for all SP variants. +clean - Deletes the build directory. +compileRJDebugAndroidTestSources +compileRJDebugSources +compileRJDebugUnitTestSources +compileRJProfileSources +compileRJProfileUnitTestSources +compileRJReleaseSources +compileRJReleaseUnitTestSources +compileSPDebugAndroidTestSources +compileSPDebugSources +compileSPDebugUnitTestSources +compileSPProfileSources +compileSPProfileUnitTestSources +compileSPReleaseSources +compileSPReleaseUnitTestSources + +Help tasks +---------- +buildEnvironment - Displays all buildscript dependencies declared in project ':app'. +dependencies - Displays all dependencies declared in project ':app'. +dependencyInsight - Displays the insight into a specific dependency in project ':app'. +help - Displays a help message. +javaToolchains - Displays the detected java toolchains. +kotlinDslAccessorsReport - Prints the Kotlin code for accessing the currently available project extensions and conventions. +outgoingVariants - Displays the outgoing variants of project ':app'. +projects - Displays the sub-projects of project ':app'. +properties - Displays the properties of project ':app'. +resolvableConfigurations - Displays the configurations that can be resolved in project ':app'. +tasks - Displays the tasks runnable from project ':app'. + +Install tasks +------------- +installRJDebug - Installs the DebugRJDebug build. +installRJDebugAndroidTest - Installs the android (on device) tests for the RJDebug build. +installRJProfile - Installs the ProfileRJProfile build. +installRJRelease - Installs the ReleaseRJRelease build. +installSPDebug - Installs the DebugSPDebug build. +installSPDebugAndroidTest - Installs the android (on device) tests for the SPDebug build. +installSPProfile - Installs the ProfileSPProfile build. +installSPRelease - Installs the ReleaseSPRelease build. +uninstallAll - Uninstall all applications. +uninstallRJDebug - Uninstalls the DebugRJDebug build. +uninstallRJDebugAndroidTest - Uninstalls the android (on device) tests for the RJDebug build. +uninstallRJProfile - Uninstalls the ProfileRJProfile build. +uninstallRJRelease - Uninstalls the ReleaseRJRelease build. +uninstallSPDebug - Uninstalls the DebugSPDebug build. +uninstallSPDebugAndroidTest - Uninstalls the android (on device) tests for the SPDebug build. +uninstallSPProfile - Uninstalls the ProfileSPProfile build. +uninstallSPRelease - Uninstalls the ReleaseSPRelease build. + +Verification tasks +------------------ +check - Runs all checks. +checkJetifier - Checks whether Jetifier is needed for the current project +connectedAndroidTest - Installs and runs instrumentation tests for all flavors on connected devices. +connectedCheck - Runs all device checks on currently connected devices. +connectedRJDebugAndroidTest - Installs and runs the tests for RJDebug on connected devices. +connectedSPDebugAndroidTest - Installs and runs the tests for SPDebug on connected devices. +deviceAndroidTest - Installs and runs instrumentation tests using all Device Providers. +deviceCheck - Runs all device checks using Device Providers and Test Servers. +lint - Runs lint on the default variant. +lintAnalyzeRJDebug - Run lint analysis on the RJDebug variant +lintAnalyzeRJProfile - Run lint analysis on the RJProfile variant +lintAnalyzeRJRelease - Run lint analysis on the RJRelease variant +lintAnalyzeSPDebug - Run lint analysis on the SPDebug variant +lintAnalyzeSPProfile - Run lint analysis on the SPProfile variant +lintAnalyzeSPRelease - Run lint analysis on the SPRelease variant +lintFix - Runs lint on the default variant and applies any safe suggestions to the source code. +lintFixRJDebug - Fix lint on the RJDebug variant +lintFixRJProfile - Fix lint on the RJProfile variant +lintFixRJRelease - Fix lint on the RJRelease variant +lintFixSPDebug - Fix lint on the SPDebug variant +lintFixSPProfile - Fix lint on the SPProfile variant +lintFixSPRelease - Fix lint on the SPRelease variant +lintReportRJDebug - Run lint on the RJDebug variant +lintReportRJProfile - Run lint on the RJProfile variant +lintReportRJRelease - Run lint on the RJRelease variant +lintReportSPDebug - Run lint on the SPDebug variant +lintReportSPProfile - Run lint on the SPProfile variant +lintReportSPRelease - Run lint on the SPRelease variant +lintRJDebug - Print text output from the corresponding lint report task +lintRJProfile - Print text output from the corresponding lint report task +lintRJRelease - Print text output from the corresponding lint report task +lintSPDebug - Print text output from the corresponding lint report task +lintSPProfile - Print text output from the corresponding lint report task +lintSPRelease - Print text output from the corresponding lint report task +lintVitalAnalyzeRJRelease - Run lint analysis with only the fatal issues enabled on the RJRelease variant +lintVitalAnalyzeSPRelease - Run lint analysis with only the fatal issues enabled on the SPRelease variant +lintVitalReportRJRelease - Run lint with only the fatal issues enabled on the RJRelease variant +lintVitalReportSPRelease - Run lint with only the fatal issues enabled on the SPRelease variant +lintVitalRJRelease - Print text output from the corresponding lint report task +lintVitalSPRelease - Print text output from the corresponding lint report task +test - Run unit tests for all variants. +testRJDebugUnitTest - Run unit tests for the RJDebug build. +testRJProfileUnitTest - Run unit tests for the RJProfile build. +testRJReleaseUnitTest - Run unit tests for the RJRelease build. +testSPDebugUnitTest - Run unit tests for the SPDebug build. +testSPProfileUnitTest - Run unit tests for the SPProfile build. +testSPReleaseUnitTest - Run unit tests for the SPRelease build. +updateLintBaseline - Updates the lint baseline using the default variant. +updateLintBaselineRJDebug - Update the lint baseline using the RJDebug variant +updateLintBaselineRJProfile - Update the lint baseline using the RJProfile variant +updateLintBaselineRJRelease - Update the lint baseline using the RJRelease variant +updateLintBaselineSPDebug - Update the lint baseline using the SPDebug variant +updateLintBaselineSPProfile - Update the lint baseline using the SPProfile variant +updateLintBaselineSPRelease - Update the lint baseline using the SPRelease variant + +Other tasks +----------- +analyticsRecordingRJRelease +analyticsRecordingSPRelease +analyzeRJDebugAndroidTestDependencies +analyzeRJDebugDependencies +analyzeRJDebugUnitTestDependencies +analyzeRJProfileDependencies +analyzeRJProfileUnitTestDependencies +analyzeRJReleaseDependencies +analyzeRJReleaseUnitTestDependencies +analyzeSPDebugAndroidTestDependencies +analyzeSPDebugDependencies +analyzeSPDebugUnitTestDependencies +analyzeSPProfileDependencies +analyzeSPProfileUnitTestDependencies +analyzeSPReleaseDependencies +analyzeSPReleaseUnitTestDependencies +appIdListTask +assembleRJDebug - Assembles main output for variant RJDebug +assembleRJDebugAndroidTest - Assembles main output for variant RJDebugAndroidTest +assembleRJDebugUnitTest - Assembles main output for variant RJDebugUnitTest +assembleRJProfile - Assembles main output for variant RJProfile +assembleRJProfileUnitTest - Assembles main output for variant RJProfileUnitTest +assembleRJRelease - Assembles main output for variant RJRelease +assembleRJReleaseUnitTest - Assembles main output for variant RJReleaseUnitTest +assembleSPDebug - Assembles main output for variant SPDebug +assembleSPDebugAndroidTest - Assembles main output for variant SPDebugAndroidTest +assembleSPDebugUnitTest - Assembles main output for variant SPDebugUnitTest +assembleSPProfile - Assembles main output for variant SPProfile +assembleSPProfileUnitTest - Assembles main output for variant SPProfileUnitTest +assembleSPRelease - Assembles main output for variant SPRelease +assembleSPReleaseUnitTest - Assembles main output for variant SPReleaseUnitTest +buildRJDebugPreBundle +buildRJProfilePreBundle +buildRJReleasePreBundle +buildSPDebugPreBundle +buildSPProfilePreBundle +buildSPReleasePreBundle +bundleRJDebug - Assembles bundle for variant RJDebug +bundleRJDebugAndroidTestClassesToCompileJar +bundleRJDebugAndroidTestClassesToRuntimeJar +bundleRJDebugClassesToCompileJar +bundleRJDebugClassesToRuntimeJar +bundleRJDebugResources +bundleRJDebugUnitTestClassesToCompileJar +bundleRJDebugUnitTestClassesToRuntimeJar +bundleRJProfile - Assembles bundle for variant RJProfile +bundleRJProfileClassesToCompileJar +bundleRJProfileClassesToRuntimeJar +bundleRJProfileResources +bundleRJProfileUnitTestClassesToCompileJar +bundleRJProfileUnitTestClassesToRuntimeJar +bundleRJRelease - Assembles bundle for variant RJRelease +bundleRJReleaseClassesToCompileJar +bundleRJReleaseClassesToRuntimeJar +bundleRJReleaseResources +bundleRJReleaseUnitTestClassesToCompileJar +bundleRJReleaseUnitTestClassesToRuntimeJar +bundleSPDebug - Assembles bundle for variant SPDebug +bundleSPDebugAndroidTestClassesToCompileJar +bundleSPDebugAndroidTestClassesToRuntimeJar +bundleSPDebugClassesToCompileJar +bundleSPDebugClassesToRuntimeJar +bundleSPDebugResources +bundleSPDebugUnitTestClassesToCompileJar +bundleSPDebugUnitTestClassesToRuntimeJar +bundleSPProfile - Assembles bundle for variant SPProfile +bundleSPProfileClassesToCompileJar +bundleSPProfileClassesToRuntimeJar +bundleSPProfileResources +bundleSPProfileUnitTestClassesToCompileJar +bundleSPProfileUnitTestClassesToRuntimeJar +bundleSPRelease - Assembles bundle for variant SPRelease +bundleSPReleaseClassesToCompileJar +bundleSPReleaseClassesToRuntimeJar +bundleSPReleaseResources +bundleSPReleaseUnitTestClassesToCompileJar +bundleSPReleaseUnitTestClassesToRuntimeJar +checkRJDebugAarMetadata +checkRJDebugAndroidTestAarMetadata +checkRJDebugAndroidTestDuplicateClasses +checkRJDebugDuplicateClasses +checkRJDebugManifest +checkRJProfileAarMetadata +checkRJProfileDuplicateClasses +checkRJProfileManifest +checkRJReleaseAarMetadata +checkRJReleaseDuplicateClasses +checkRJReleaseManifest +checkSPDebugAarMetadata +checkSPDebugAndroidTestAarMetadata +checkSPDebugAndroidTestDuplicateClasses +checkSPDebugDuplicateClasses +checkSPDebugManifest +checkSPProfileAarMetadata +checkSPProfileDuplicateClasses +checkSPProfileManifest +checkSPReleaseAarMetadata +checkSPReleaseDuplicateClasses +checkSPReleaseManifest +collectRJReleaseDependencies +collectSPReleaseDependencies +compileFlutterBuildRJDebug +compileFlutterBuildRJProfile +compileFlutterBuildRJRelease +compileFlutterBuildSPDebug +compileFlutterBuildSPProfile +compileFlutterBuildSPRelease +compileLint +compileLintChecks +compileRJDebugAidl +compileRJDebugAndroidTestAidl +compileRJDebugAndroidTestJavaWithJavac +compileRJDebugAndroidTestKotlin - Compiles the RJDebugAndroidTest kotlin. +compileRJDebugAndroidTestRenderscript +compileRJDebugAndroidTestShaders +compileRJDebugArtProfile +compileRJDebugJavaWithJavac +compileRJDebugKotlin - Compiles the RJDebug kotlin. +compileRJDebugRenderscript +compileRJDebugShaders +compileRJDebugUnitTestJavaWithJavac +compileRJDebugUnitTestKotlin - Compiles the RJDebugUnitTest kotlin. +compileRJProfileAidl +compileRJProfileArtProfile +compileRJProfileJavaWithJavac +compileRJProfileKotlin - Compiles the RJProfile kotlin. +compileRJProfileRenderscript +compileRJProfileShaders +compileRJProfileUnitTestJavaWithJavac +compileRJProfileUnitTestKotlin - Compiles the RJProfileUnitTest kotlin. +compileRJReleaseAidl +compileRJReleaseArtProfile +compileRJReleaseJavaWithJavac +compileRJReleaseKotlin - Compiles the RJRelease kotlin. +compileRJReleaseRenderscript +compileRJReleaseShaders +compileRJReleaseUnitTestJavaWithJavac +compileRJReleaseUnitTestKotlin - Compiles the RJReleaseUnitTest kotlin. +compileSPDebugAidl +compileSPDebugAndroidTestAidl +compileSPDebugAndroidTestJavaWithJavac +compileSPDebugAndroidTestKotlin - Compiles the SPDebugAndroidTest kotlin. +compileSPDebugAndroidTestRenderscript +compileSPDebugAndroidTestShaders +compileSPDebugArtProfile +compileSPDebugJavaWithJavac +compileSPDebugKotlin - Compiles the SPDebug kotlin. +compileSPDebugRenderscript +compileSPDebugShaders +compileSPDebugUnitTestJavaWithJavac +compileSPDebugUnitTestKotlin - Compiles the SPDebugUnitTest kotlin. +compileSPProfileAidl +compileSPProfileArtProfile +compileSPProfileJavaWithJavac +compileSPProfileKotlin - Compiles the SPProfile kotlin. +compileSPProfileRenderscript +compileSPProfileShaders +compileSPProfileUnitTestJavaWithJavac +compileSPProfileUnitTestKotlin - Compiles the SPProfileUnitTest kotlin. +compileSPReleaseAidl +compileSPReleaseArtProfile +compileSPReleaseJavaWithJavac +compileSPReleaseKotlin - Compiles the SPRelease kotlin. +compileSPReleaseRenderscript +compileSPReleaseShaders +compileSPReleaseUnitTestJavaWithJavac +compileSPReleaseUnitTestKotlin - Compiles the SPReleaseUnitTest kotlin. +components - Displays the components produced by project ':app'. [deprecated] +compressRJDebugAndroidTestAssets +compressRJDebugAssets +compressRJProfileAssets +compressRJReleaseAssets +compressSPDebugAndroidTestAssets +compressSPDebugAssets +compressSPProfileAssets +compressSPReleaseAssets +configureRJReleaseDependencies +configureSPReleaseDependencies +consumeConfigAttr +copyFlutterAssetsRJDebug +copyFlutterAssetsRJProfile +copyFlutterAssetsRJRelease +copyFlutterAssetsSPDebug +copyFlutterAssetsSPProfile +copyFlutterAssetsSPRelease +createMockableJar +createRJDebugAndroidTestApkListingFileRedirect +createRJDebugApkListingFileRedirect +createRJDebugApksFromBundleListingFileRedirect +createRJDebugBundleListingFileRedirect +createRJDebugCompatibleScreenManifests +createRJDebugVariantModel +createRJProfileApkListingFileRedirect +createRJProfileApksFromBundleListingFileRedirect +createRJProfileBundleListingFileRedirect +createRJProfileCompatibleScreenManifests +createRJProfileVariantModel +createRJReleaseApkListingFileRedirect +createRJReleaseApksFromBundleListingFileRedirect +createRJReleaseBundleListingFileRedirect +createRJReleaseCompatibleScreenManifests +createRJReleaseVariantModel +createSPDebugAndroidTestApkListingFileRedirect +createSPDebugApkListingFileRedirect +createSPDebugApksFromBundleListingFileRedirect +createSPDebugBundleListingFileRedirect +createSPDebugCompatibleScreenManifests +createSPDebugVariantModel +createSPProfileApkListingFileRedirect +createSPProfileApksFromBundleListingFileRedirect +createSPProfileBundleListingFileRedirect +createSPProfileCompatibleScreenManifests +createSPProfileVariantModel +createSPReleaseApkListingFileRedirect +createSPReleaseApksFromBundleListingFileRedirect +createSPReleaseBundleListingFileRedirect +createSPReleaseCompatibleScreenManifests +createSPReleaseVariantModel +dependentComponents - Displays the dependent components of components in project ':app'. [deprecated] +desugarRJDebugAndroidTestFileDependencies +desugarRJDebugFileDependencies +desugarRJProfileFileDependencies +desugarSPDebugAndroidTestFileDependencies +desugarSPDebugFileDependencies +desugarSPProfileFileDependencies +dexBuilderRJDebug +dexBuilderRJDebugAndroidTest +dexBuilderRJProfile +dexBuilderSPDebug +dexBuilderSPDebugAndroidTest +dexBuilderSPProfile +extractApksForRJDebug +extractApksForRJProfile +extractApksForRJRelease +extractApksForSPDebug +extractApksForSPProfile +extractApksForSPRelease +extractApksFromBundleForRJDebug +extractApksFromBundleForRJProfile +extractApksFromBundleForRJRelease +extractApksFromBundleForSPDebug +extractApksFromBundleForSPProfile +extractApksFromBundleForSPRelease +extractDeepLinksRJDebug +extractDeepLinksRJProfile +extractDeepLinksRJRelease +extractDeepLinksSPDebug +extractDeepLinksSPProfile +extractDeepLinksSPRelease +extractProguardFiles +extractRJDebugNativeDebugMetadata +extractRJDebugNativeSymbolTables +extractRJProfileNativeDebugMetadata +extractRJProfileNativeSymbolTables +extractRJReleaseNativeDebugMetadata +extractRJReleaseNativeSymbolTables +extractSPDebugNativeDebugMetadata +extractSPDebugNativeSymbolTables +extractSPProfileNativeDebugMetadata +extractSPProfileNativeSymbolTables +extractSPReleaseNativeDebugMetadata +extractSPReleaseNativeSymbolTables +generateRJDebugAndroidTestAssets +generateRJDebugAndroidTestBuildConfig +generateRJDebugAndroidTestResources +generateRJDebugAndroidTestResValues +generateRJDebugAndroidTestSources +generateRJDebugAssets +generateRJDebugBuildConfig +generateRJDebugFeatureMetadata +generateRJDebugFeatureTransitiveDeps +generateRJDebugLintModel +generateRJDebugManifestClass +generateRJDebugResources +generateRJDebugResValues +generateRJDebugSources +generateRJDebugUnitTestAssets +generateRJDebugUnitTestResources +generateRJDebugUnitTestSources +generateRJProfileAssets +generateRJProfileBuildConfig +generateRJProfileFeatureMetadata +generateRJProfileFeatureTransitiveDeps +generateRJProfileLintModel +generateRJProfileManifestClass +generateRJProfileResources +generateRJProfileResValues +generateRJProfileSources +generateRJProfileUnitTestAssets +generateRJProfileUnitTestResources +generateRJProfileUnitTestSources +generateRJReleaseAssets +generateRJReleaseBuildConfig +generateRJReleaseFeatureMetadata +generateRJReleaseFeatureTransitiveDeps +generateRJReleaseLintModel +generateRJReleaseManifestClass +generateRJReleaseResources +generateRJReleaseResValues +generateRJReleaseSources +generateRJReleaseUnitTestAssets +generateRJReleaseUnitTestResources +generateRJReleaseUnitTestSources +generateSPDebugAndroidTestAssets +generateSPDebugAndroidTestBuildConfig +generateSPDebugAndroidTestResources +generateSPDebugAndroidTestResValues +generateSPDebugAndroidTestSources +generateSPDebugAssets +generateSPDebugBuildConfig +generateSPDebugFeatureMetadata +generateSPDebugFeatureTransitiveDeps +generateSPDebugLintModel +generateSPDebugManifestClass +generateSPDebugResources +generateSPDebugResValues +generateSPDebugSources +generateSPDebugUnitTestAssets +generateSPDebugUnitTestResources +generateSPDebugUnitTestSources +generateSPProfileAssets +generateSPProfileBuildConfig +generateSPProfileFeatureMetadata +generateSPProfileFeatureTransitiveDeps +generateSPProfileLintModel +generateSPProfileManifestClass +generateSPProfileResources +generateSPProfileResValues +generateSPProfileSources +generateSPProfileUnitTestAssets +generateSPProfileUnitTestResources +generateSPProfileUnitTestSources +generateSPReleaseAssets +generateSPReleaseBuildConfig +generateSPReleaseFeatureMetadata +generateSPReleaseFeatureTransitiveDeps +generateSPReleaseLintModel +generateSPReleaseManifestClass +generateSPReleaseResources +generateSPReleaseResValues +generateSPReleaseSources +generateSPReleaseUnitTestAssets +generateSPReleaseUnitTestResources +generateSPReleaseUnitTestSources +javaPreCompileRJDebug +javaPreCompileRJDebugAndroidTest +javaPreCompileRJDebugUnitTest +javaPreCompileRJProfile +javaPreCompileRJProfileUnitTest +javaPreCompileRJRelease +javaPreCompileRJReleaseUnitTest +javaPreCompileSPDebug +javaPreCompileSPDebugAndroidTest +javaPreCompileSPDebugUnitTest +javaPreCompileSPProfile +javaPreCompileSPProfileUnitTest +javaPreCompileSPRelease +javaPreCompileSPReleaseUnitTest +javaVersion - Print the current java version used by gradle. +makeApkFromBundleForRJDebug +makeApkFromBundleForRJProfile +makeApkFromBundleForRJRelease +makeApkFromBundleForSPDebug +makeApkFromBundleForSPProfile +makeApkFromBundleForSPRelease +mapRJDebugAndroidTestSourceSetPaths +mapRJDebugSourceSetPaths +mapRJProfileSourceSetPaths +mapRJReleaseSourceSetPaths +mapSPDebugAndroidTestSourceSetPaths +mapSPDebugSourceSetPaths +mapSPProfileSourceSetPaths +mapSPReleaseSourceSetPaths +mergeExtDexRJDebug +mergeExtDexRJDebugAndroidTest +mergeExtDexRJProfile +mergeExtDexSPDebug +mergeExtDexSPDebugAndroidTest +mergeExtDexSPProfile +mergeLibDexRJDebug +mergeLibDexRJDebugAndroidTest +mergeLibDexRJProfile +mergeLibDexSPDebug +mergeLibDexSPDebugAndroidTest +mergeLibDexSPProfile +mergeProjectDexRJDebug +mergeProjectDexRJDebugAndroidTest +mergeProjectDexRJProfile +mergeProjectDexSPDebug +mergeProjectDexSPDebugAndroidTest +mergeProjectDexSPProfile +mergeRJDebugAndroidTestAssets +mergeRJDebugAndroidTestGeneratedProguardFiles +mergeRJDebugAndroidTestJavaResource +mergeRJDebugAndroidTestJniLibFolders +mergeRJDebugAndroidTestNativeLibs +mergeRJDebugAndroidTestResources +mergeRJDebugAndroidTestShaders +mergeRJDebugArtProfile +mergeRJDebugAssets +mergeRJDebugGeneratedProguardFiles +mergeRJDebugJavaResource +mergeRJDebugJniLibFolders +mergeRJDebugNativeDebugMetadata +mergeRJDebugNativeLibs +mergeRJDebugResources +mergeRJDebugShaders +mergeRJProfileArtProfile +mergeRJProfileAssets +mergeRJProfileGeneratedProguardFiles +mergeRJProfileJavaResource +mergeRJProfileJniLibFolders +mergeRJProfileNativeDebugMetadata +mergeRJProfileNativeLibs +mergeRJProfileResources +mergeRJProfileShaders +mergeRJReleaseArtProfile +mergeRJReleaseAssets +mergeRJReleaseGeneratedProguardFiles +mergeRJReleaseJavaResource +mergeRJReleaseJniLibFolders +mergeRJReleaseNativeDebugMetadata +mergeRJReleaseNativeLibs +mergeRJReleaseResources +mergeRJReleaseShaders +mergeSPDebugAndroidTestAssets +mergeSPDebugAndroidTestGeneratedProguardFiles +mergeSPDebugAndroidTestJavaResource +mergeSPDebugAndroidTestJniLibFolders +mergeSPDebugAndroidTestNativeLibs +mergeSPDebugAndroidTestResources +mergeSPDebugAndroidTestShaders +mergeSPDebugArtProfile +mergeSPDebugAssets +mergeSPDebugGeneratedProguardFiles +mergeSPDebugJavaResource +mergeSPDebugJniLibFolders +mergeSPDebugNativeDebugMetadata +mergeSPDebugNativeLibs +mergeSPDebugResources +mergeSPDebugShaders +mergeSPProfileArtProfile +mergeSPProfileAssets +mergeSPProfileGeneratedProguardFiles +mergeSPProfileJavaResource +mergeSPProfileJniLibFolders +mergeSPProfileNativeDebugMetadata +mergeSPProfileNativeLibs +mergeSPProfileResources +mergeSPProfileShaders +mergeSPReleaseArtProfile +mergeSPReleaseAssets +mergeSPReleaseGeneratedProguardFiles +mergeSPReleaseJavaResource +mergeSPReleaseJniLibFolders +mergeSPReleaseNativeDebugMetadata +mergeSPReleaseNativeLibs +mergeSPReleaseResources +mergeSPReleaseShaders +minifyRJReleaseWithR8 +minifySPReleaseWithR8 +model - Displays the configuration model of project ':app'. [deprecated] +optimizeRJReleaseResources +optimizeSPReleaseResources +outputRJDebugAppLinkSettings - stores app links settings for the given build variant of this Android project into a json file. +outputRJProfileAppLinkSettings - stores app links settings for the given build variant of this Android project into a json file. +outputRJReleaseAppLinkSettings - stores app links settings for the given build variant of this Android project into a json file. +outputSPDebugAppLinkSettings - stores app links settings for the given build variant of this Android project into a json file. +outputSPProfileAppLinkSettings - stores app links settings for the given build variant of this Android project into a json file. +outputSPReleaseAppLinkSettings - stores app links settings for the given build variant of this Android project into a json file. +packageRJDebug +packageRJDebugAndroidTest +packageRJDebugBundle +packageRJDebugUniversalApk +packageRJProfile +packageRJProfileBundle +packageRJProfileUniversalApk +packageRJRelease +packageRJReleaseBundle +packageRJReleaseUniversalApk +packageSPDebug +packageSPDebugAndroidTest +packageSPDebugBundle +packageSPDebugUniversalApk +packageSPProfile +packageSPProfileBundle +packageSPProfileUniversalApk +packageSPRelease +packageSPReleaseBundle +packageSPReleaseUniversalApk +packJniLibsflutterBuildRJDebug +packJniLibsflutterBuildRJProfile +packJniLibsflutterBuildRJRelease +packJniLibsflutterBuildSPDebug +packJniLibsflutterBuildSPProfile +packJniLibsflutterBuildSPRelease +parseRJDebugIntegrityConfig +parseRJProfileIntegrityConfig +parseRJReleaseIntegrityConfig +parseSPDebugIntegrityConfig +parseSPProfileIntegrityConfig +parseSPReleaseIntegrityConfig +preBuild +prepareLintJarForPublish +preRJDebugAndroidTestBuild +preRJDebugBuild +preRJDebugUnitTestBuild +preRJProfileBuild +preRJProfileUnitTestBuild +preRJReleaseBuild +preRJReleaseUnitTestBuild +preSPDebugAndroidTestBuild +preSPDebugBuild +preSPDebugUnitTestBuild +preSPProfileBuild +preSPProfileUnitTestBuild +preSPReleaseBuild +preSPReleaseUnitTestBuild +printBuildVariants - Prints out all build variants for this Android project +processApplicationManifestRJDebugForBundle +processApplicationManifestRJProfileForBundle +processApplicationManifestRJReleaseForBundle +processApplicationManifestSPDebugForBundle +processApplicationManifestSPProfileForBundle +processApplicationManifestSPReleaseForBundle +processManifestRJDebugForFeature +processManifestRJProfileForFeature +processManifestRJReleaseForFeature +processManifestSPDebugForFeature +processManifestSPProfileForFeature +processManifestSPReleaseForFeature +processRJDebugAndroidTestJavaRes +processRJDebugAndroidTestManifest +processRJDebugAndroidTestResources +processRJDebugJavaRes +processRJDebugMainManifest +processRJDebugManifest +processRJDebugManifestForInstantApp +processRJDebugManifestForPackage +processRJDebugResources +processRJDebugUnitTestJavaRes +processRJProfileJavaRes +processRJProfileMainManifest +processRJProfileManifest +processRJProfileManifestForInstantApp +processRJProfileManifestForPackage +processRJProfileResources +processRJProfileUnitTestJavaRes +processRJReleaseJavaRes +processRJReleaseMainManifest +processRJReleaseManifest +processRJReleaseManifestForInstantApp +processRJReleaseManifestForPackage +processRJReleaseResources +processRJReleaseUnitTestJavaRes +processSPDebugAndroidTestJavaRes +processSPDebugAndroidTestManifest +processSPDebugAndroidTestResources +processSPDebugJavaRes +processSPDebugMainManifest +processSPDebugManifest +processSPDebugManifestForInstantApp +processSPDebugManifestForPackage +processSPDebugResources +processSPDebugUnitTestJavaRes +processSPProfileJavaRes +processSPProfileMainManifest +processSPProfileManifest +processSPProfileManifestForInstantApp +processSPProfileManifestForPackage +processSPProfileResources +processSPProfileUnitTestJavaRes +processSPReleaseJavaRes +processSPReleaseMainManifest +processSPReleaseManifest +processSPReleaseManifestForInstantApp +processSPReleaseManifestForPackage +processSPReleaseResources +processSPReleaseUnitTestJavaRes +produceRJDebugBundleIdeListingFile +produceRJProfileBundleIdeListingFile +produceRJReleaseBundleIdeListingFile +produceSPDebugBundleIdeListingFile +produceSPProfileBundleIdeListingFile +produceSPReleaseBundleIdeListingFile +resolveConfigAttr +sdkRJReleaseDependencyData +sdkSPReleaseDependencyData +shrinkBundleRJReleaseResources +shrinkBundleSPReleaseResources +shrinkRJReleaseRes +shrinkSPReleaseRes +signingConfigWriterRJDebug +signingConfigWriterRJDebugAndroidTest +signingConfigWriterRJProfile +signingConfigWriterRJRelease +signingConfigWriterSPDebug +signingConfigWriterSPDebugAndroidTest +signingConfigWriterSPProfile +signingConfigWriterSPRelease +signRJDebugBundle +signRJProfileBundle +signRJReleaseBundle +signSPDebugBundle +signSPProfileBundle +signSPReleaseBundle +stripRJDebugDebugSymbols +stripRJProfileDebugSymbols +stripRJReleaseDebugSymbols +stripSPDebugDebugSymbols +stripSPProfileDebugSymbols +stripSPReleaseDebugSymbols +validateSigningRJDebug +validateSigningRJDebugAndroidTest +validateSigningRJProfile +validateSigningRJRelease +validateSigningSPDebug +validateSigningSPDebugAndroidTest +validateSigningSPProfile +validateSigningSPRelease +writeRJDebugAndroidTestSigningConfigVersions +writeRJDebugApplicationId +writeRJDebugAppMetadata +writeRJDebugModuleMetadata +writeRJDebugSigningConfigVersions +writeRJProfileApplicationId +writeRJProfileAppMetadata +writeRJProfileModuleMetadata +writeRJProfileSigningConfigVersions +writeRJReleaseApplicationId +writeRJReleaseAppMetadata +writeRJReleaseModuleMetadata +writeRJReleaseSigningConfigVersions +writeSPDebugAndroidTestSigningConfigVersions +writeSPDebugApplicationId +writeSPDebugAppMetadata +writeSPDebugModuleMetadata +writeSPDebugSigningConfigVersions +writeSPProfileApplicationId +writeSPProfileAppMetadata +writeSPProfileModuleMetadata +writeSPProfileSigningConfigVersions +writeSPReleaseApplicationId +writeSPReleaseAppMetadata +writeSPReleaseModuleMetadata +writeSPReleaseSigningConfigVersions +zipApksForRJDebug +zipApksForRJProfile +zipApksForRJRelease +zipApksForSPDebug +zipApksForSPProfile +zipApksForSPRelease + +Rules +----- +Pattern: clean: Cleans the output files of a task. +Pattern: build: Assembles the artifacts of a configuration. + +BUILD SUCCESSFUL in 503ms +5 actionable tasks: 1 executed, 4 up-to-date diff --git a/packages/shorebird_cli/test/src/executables/gradlew_test.dart b/packages/shorebird_cli/test/src/executables/gradlew_test.dart index da209c4e..c4ec0911 100644 --- a/packages/shorebird_cli/test/src/executables/gradlew_test.dart +++ b/packages/shorebird_cli/test/src/executables/gradlew_test.dart @@ -195,7 +195,7 @@ Make sure you have run "flutter build apk" at least once.''', when(() => platform.environment).thenReturn({'JAVA_HOME': javaHome}); when(() => result.stdout).thenReturn( File( - p.join('test', 'fixtures', 'gradle_app_tasks.txt'), + p.join('test', 'fixtures', 'gradle', 'gradle_app_tasks.txt'), ).readAsStringSync(), ); await expectLater( @@ -221,6 +221,113 @@ Make sure you have run "flutter build apk" at least once.''', ), ).called(1); }); + + group('when flavors are all upper case', () { + test('extracts flavors', () async { + when(() => platform.isLinux).thenReturn(true); + when(() => platform.isMacOS).thenReturn(false); + when(() => platform.isWindows).thenReturn(false); + final tempDir = setUpAppTempDir(); + File( + p.join(tempDir.path, 'android', 'gradlew'), + ).createSync(recursive: true); + const javaHome = 'test_java_home'; + when(() => platform.environment).thenReturn({'JAVA_HOME': javaHome}); + when(() => result.stdout).thenReturn( + File( + p.join( + 'test', + 'fixtures', + 'gradle', + 'gradle_app_tasks_upper_case_flavors.txt', + ), + ).readAsStringSync(), + ); + await expectLater( + runWithOverrides(() => gradlew.productFlavors(tempDir.path)), + completion( + equals({ + 'SP', + 'RJ', + }), + ), + ); + }); + }); + + group( + 'when flavors are mixed, starting with upper case, finishin with camel', + () { + test('extracts flavors', () async { + when(() => platform.isLinux).thenReturn(true); + when(() => platform.isMacOS).thenReturn(false); + when(() => platform.isWindows).thenReturn(false); + final tempDir = setUpAppTempDir(); + File( + p.join(tempDir.path, 'android', 'gradlew'), + ).createSync(recursive: true); + const javaHome = 'test_java_home'; + when(() => platform.environment) + .thenReturn({'JAVA_HOME': javaHome}); + when(() => result.stdout).thenReturn( + File( + p.join( + 'test', + 'fixtures', + 'gradle', + 'gradle_app_tasks_mixed_case_flavors.txt', + ), + ).readAsStringSync(), + ); + await expectLater( + runWithOverrides(() => gradlew.productFlavors(tempDir.path)), + completion( + equals({ + 'SPaulo', + 'RJaneiro', + }), + ), + ); + }); + }, + ); + + group( + 'when flavors starts with upper case, finishing with numbers', + () { + test('extracts flavors', () async { + when(() => platform.isLinux).thenReturn(true); + when(() => platform.isMacOS).thenReturn(false); + when(() => platform.isWindows).thenReturn(false); + final tempDir = setUpAppTempDir(); + File( + p.join(tempDir.path, 'android', 'gradlew'), + ).createSync(recursive: true); + const javaHome = 'test_java_home'; + when(() => platform.environment) + .thenReturn({'JAVA_HOME': javaHome}); + when(() => result.stdout).thenReturn( + File( + p.join( + 'test', + 'fixtures', + 'gradle', + 'gradle_app_tasks_numbers_upper_case_flavors.txt', + ), + ).readAsStringSync(), + ); + await expectLater( + runWithOverrides(() => gradlew.productFlavors(tempDir.path)), + completion( + equals({ + 'CB500', + 'NX700', + }), + ), + ); + }); + }, + ); }); }); } diff --git a/packages/shorebird_cli/test/src/extensions/string_test.dart b/packages/shorebird_cli/test/src/extensions/string_test.dart index 616be44a..a563309d 100644 --- a/packages/shorebird_cli/test/src/extensions/string_test.dart +++ b/packages/shorebird_cli/test/src/extensions/string_test.dart @@ -3,8 +3,14 @@ import 'package:test/test.dart'; void main() { test('IsNullOrEmpty', () async { - expect(null.isNullOrEmpty, true); - expect(''.isNullOrEmpty, true); - expect('test'.isNullOrEmpty, false); + expect(null.isNullOrEmpty, isTrue); + expect(''.isNullOrEmpty, isTrue); + expect('test'.isNullOrEmpty, isFalse); + }); + + test('IsUpperCase', () async { + expect('TEST'.isUpperCase(), isTrue); + expect('test'.isUpperCase(), isFalse); + expect('Test'.isUpperCase(), isFalse); }); }