Albert221 / app_group_directory

Retrieve App Group directory on iOS. Port of FileManager.containerURL to Flutter.
https://pub.dev/packages/app_group_directory
Other
1 stars 9 forks source link

"namespace" missing for Gradle 8 #6

Open chickahoona opened 2 months ago

chickahoona commented 2 months ago

Hi, first of all thank you very much for the plugin, it was / is really helpful!

I am currently upgrading from Grade 7.2 to Gradle 8.2. There is now a paramter "namespace" that needs to be present and as you can see in the error below gradle is complaining that ':app_group_directory' doesn't have it.

Is there a chance that you could take a look?

./gradlew assembleDebug

> Configure project :app
Signing with debug keys

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app_group_directory'.
> Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
   > Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

     If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.5/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 781ms
4 actionable tasks: 4 up-to-date
eifachmache commented 1 month ago

Hi @chickahoona Alternatively, you could use: https://pub.dev/packages/path_provider_foundation

This is from the flutter team.

    final PathProviderFoundation provider = PathProviderFoundation();

    final appGroupDirectory = await provider.getContainerPath(
      appGroupIdentifier: appGroupId,
    );