Skip to content

Use context to resolve current package name

Description

This MR replaces the use of BuildConfig.APP_ID to obtain the package name using the context.

Motivation and Context

One of Google's requirements to support Android Automotive is to have a unique package name for the automotive build. At present, the hardcoded app id package name blocks the ability to use vlc-android as a library project.

How Has This Been Tested?

Tested with a Pixel 3 running Android 11. Android Auto and onboarding / permissions UIs work as expected. Experimental Android Automotive build loads correctly with this change.

Types of changes

  • Enhancement (non-breaking change which cleans up / improves existing functionality)

Checklist

  • I have read the CONTRIBUTING section of the README document.

Merge request reports