Initialize Firebase without GoogleService-Info.plist #8603
-
Hi, I am asking because the app I am working on has security as it's highest priority, so we obfuscate everything. Sometimes we aren't able to obfuscate files so it would be helpful to be able to add the info as a struct, and obfuscate it in code, rather than a file on disk. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi there and thanks for the question. Have you considered the |
Beta Was this translation helpful? Give feedback.
Hi there and thanks for the question.
Have you considered the
FirebaseApp.configure(options:)
API? Essentially, you can create aFirebaseOptions
object, set the configuration info (from yourGoogleService-Info.plist
) and then pass that into the above API to configure the Firebase App. This prevents the need for including aGoogleService-Info.plist
file in your project.