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

Add support for namespace inside build.gradle file. #1727

Merged
merged 1 commit into from
Oct 27, 2022

Commits on Oct 27, 2022

  1. Add support for namespace inside build.gradle file.

    This commit introduces the support for getting the Android package
    from the `namespace` field inside the build.gradle file.
    
    Starting from the recent version of AGP, users should use namespace
    to setup the package rather than AndroidManifest.xml
    
    Not doing this, is causing this warning on new apps on console:
    ```
    package="com.androidtemplateproject" found in source AndroidManifest.xml: /tmp/AndroidTemplateProject/android/app/src/main/AndroidManifest.xml.
    Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated.
    Please instead set the namespace (or testNamespace) in the module's build.gradle file, as described here: https://developer.android.com/studio/build/configure-app-module#set-namespace
    This migration can be done automatically using the AGP Upgrade Assistant, please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.
    ```
    This commit allows user to setup the namespace inside the build.gradle
    to suppress this resolve this warning and still being able to build.
    cortinico committed Oct 27, 2022
    Configuration menu
    Copy the full SHA
    44c23ff View commit details
    Browse the repository at this point in the history