How to use the ern-container-gen.AndroidGenerator function in ern-container-gen

To help you get started, we’ve selected a few ern-container-gen examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github electrode-io / electrode-native / ern-local-cli / src / lib / publication.js View on Github external
function getGeneratorForPlatform (platform: string) : ContainerGenerator {
  switch (platform) {
    case 'android': return new AndroidGenerator()
    case 'ios': return new IosGenerator()
    default: throw new Error(`Unsupported platform : ${platform}`)
  }
}