rogerluan / arkana

Use dotenv files for Android and iOS projects.
BSD 2-Clause "Simplified" License
362 stars 18 forks source link

Don't generate unnecessary extensions #45

Open dalewking opened 9 months ago

dalewking commented 9 months ago

If you do not have any keys for global_secrets it still generates an unnecessary extension like:

public extension ArkanaKeys {
    struct Global: ArkanaKeysGlobalProtocol {
        public init() {}
    }
}

I presume like wise that if you had no environment_secrets It would also generate similar empty extensions.

You shouldn't generate these useless blocks of code if there are no keys

rogerluan commented 9 months ago

Hi @dalewking ! 👋

Good observation! Thanks for pointing it out!