Unity-Technologies / com.unity.mobile.notifications

Mobile Notifications Package
https://docs.unity3d.com/Packages/com.unity.mobile.notifications@2.1/manual/index.html
Other
131 stars 42 forks source link

Add support for Unity with Gradle 8+ #300

Closed manugildev closed 9 months ago

manugildev commented 9 months ago

Starting with AGP 8+, module's build.gradle files are required to have the namespace property. This is supposed to replace the package attribute on the AndroidManifest.xml file.

Error before:

A problem occurred configuring project ':unityLibrary:mobilenotifications.androidlib'.
> 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.

Manual testing:

Automated tests: