java-james / flutter_dotenv

Loads environment variables from `.env`.
https://pub.dartlang.org/packages/flutter_dotenv
MIT License
209 stars 46 forks source link

Using .env variables in Swift #48

Open ldemyanenko opened 2 years ago

ldemyanenko commented 2 years ago

How can I use .env settings from Swift code? For example to user this plugin https://pub.dev/packages/google_maps_flutter I have to setup AppDelegate.swift adding GMSServices.provideAPIKey("YOUR KEY HERE") there

mohadel92 commented 2 years ago

i have the same question here i would like to hide sensitive api keys which is required to be inside .swift file or mainfest file in android how to hide them any answers found ? @ldemyanenko @java-james

Jay-flow commented 2 years ago

@mohadel92 I'm also curious about it.

app-createur-pro commented 2 years ago

I have the same need, for Swift/Kotlin