Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation outdated regarding AndroidSetup/AndroidX #2525

Open
1 of 2 tasks
BjGoCraft opened this issue Feb 10, 2025 · 0 comments
Open
1 of 2 tasks

Documentation outdated regarding AndroidSetup/AndroidX #2525

BjGoCraft opened this issue Feb 10, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@BjGoCraft
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The following documentation seems to be outdated:
https://inappwebview.dev/docs/intro/#setup-android
There is no --androidx flag with the flutter create command anymore:

flutter create --androidx -i swift
Could not find an option named "androidx".


Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.
flutter create -h
Create a new Flutter project.

If run on a project that already exists, this will repair the project, recreating any files that are missing.

Global options:
-h, --help                  Print this usage information.
-v, --verbose               Noisy logging, including all shell commands executed.
                            If used with "--help", shows hidden options. If used with "flutter doctor",
                            shows additional diagnostic information. (Use "-vv" to force verbose logging in
                            those cases.)
-d, --device-id             Target device id or name (prefixes allowed).
    --version               Reports the version of this tool.
    --enable-analytics      Enable telemetry reporting each time a flutter or dart command runs.
    --disable-analytics     Disable telemetry reporting each time a flutter or dart command runs, until it
                            is re-enabled.
    --suppress-analytics    Suppress analytics reporting for the current CLI invocation.

Usage: flutter create <output directory>
-h, --help                   Print this usage information.
    --[no-]pub               Whether to run "flutter pub get" after the project has been created.
                             (defaults to on)
    --[no-]offline           When "flutter pub get" is run by the create command, this indicates whether to
                             run it in offline mode or not. In offline mode, it will need to have all
                             dependencies already available in the pub cache to succeed.
    --[no-]overwrite         When performing operations, overwrite existing files.
    --description            The description to use for your new Flutter project. This string ends up in
                             the pubspec.yaml file.
                             (defaults to "A new Flutter project.")
    --org                    The organization responsible for your new Flutter project, in reverse domain
                             name notation. This string is used in Java package names and as prefix in the
                             iOS bundle identifier.
                             (defaults to "com.example")
    --project-name           The project name for this new Flutter project. This must be a valid dart
                             package name.
-a, --android-language       The language to use for Android-specific code, either Kotlin (recommended) or
                             Java (legacy).
                             [java, kotlin (default)]
    --platforms              The platforms supported by this project. Platform folders (e.g. android/) will
                             be generated in the target project. This argument only works when "--template"
                             is set to app or plugin. When adding platforms to a plugin project, the
                             pubspec.yaml will be updated with the requested platform. Adding desktop
                             platforms requires the corresponding desktop config setting to be enabled.
                             [ios (default), android (default), windows (default), linux (default), macos
                             (default), web (default)]
-t, --template=<type>        Specify the type of project to create.

          [app]              (default) Generate a Flutter application.
          [module]           Generate a project to add a Flutter module to an existing Android or iOS
                             application.
          [package]          Generate a shareable Flutter project containing modular Dart code.
          [plugin]           Generate a shareable Flutter project containing an API in Dart code with a
                             platform-specific implementation through method channels for Android, iOS,
                             Linux, macOS, Windows, web, or any combination of these.
          [plugin_ffi]       Generate a shareable Flutter project containing an API in Dart code with a
                             platform-specific implementation through dart:ffi for Android, iOS, Linux,
                             macOS, Windows, or any combination of these.
          [skeleton]         Generate a List View / Detail View Flutter application that follows community
                             best practices.

-s, --sample=<id>            Specifies the Flutter code sample to use as the "main.dart" for an
                             application. Implies "--template=app". The value should be the sample ID of
                             the desired sample from the API documentation website
                             (https://api.flutter.dev/). An example can be found at:
                             https://api.flutter.dev/flutter/widgets/SingleChildScrollView-class.html
-e, --[no-]empty             Specifies creating using an application template with a main.dart that is
                             minimal, including no comments, as a starting point for a new application.
                             Implies "--template=app".
    --list-samples=<path>    Specifies a JSON output file for a listing of Flutter code samples that can be
                             created with "--sample".

Run "flutter help" to see global options.

Also the link to AndroidX Mitigation no longer links to an existing site.
Does this plugin also work without the androidx flag?

Expected Behavior

The documentation should be updated to the current state of flutter and this plugin.

Steps with code example to reproduce

See current behaviour

Stacktrace/Logs

No logs

Flutter version

v3.27.4

Operating System, Device-specific and/or Tool

Running on Ubuntu dev machine

Plugin version

Additional information

No response

Self grab

  • I'm ready to work on this issue!
@BjGoCraft BjGoCraft added the bug Something isn't working label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant