I'm developing an application in Flutter and I'm facing a problem. I would like to use Google Maps in my application and for that I need an API key. For security reasons, I chose to use dot env to "mask" this key so that it is not exposed in my code. But here comes the problem, the key value must be used in the AndroidManifest.xml file, and according to the flutter_dotenv documentation, to use the key value I must import the dependency
import 'package:flutter_dotenv/flutter_dotenv.dart';
and use the method
dotenv.env\['VAR_NAME'\];
But this is not possible in the AndroidManifest file, since it is not a Flutter code file. I searched for other alternatives, such as a Python script and others, but all of them somehow injected the API key into the file and it was exposed. Can any professional in the area, or someone who has a solution, help me?