amplifyconfig property

String amplifyconfig

Implementation

String get amplifyconfig {
  switch (appFlavor) {
    case Flavor.dev:
      return '''{
"auth": {
  "plugins": {
    "awsCognitoAuthPlugin": {
      "CognitoUserPool": {
        "Default": {
          "PoolId": "ap-northeast-1_GwaQY7ArF",
          "AppClientId": "1l9og2v3ndmn7u9hjfq93s0315",
          "AppClientSecret": "gj4hmos104g25nji16mo46m0rp7usi5n6hr92jndd8r1mp2i6dc",
          "Region": "ap-northeast-1"
        }
      },
      "Auth": {
        "Default": {
          "authenticationFlowType": "USER_SRP_AUTH",
          "socialProviders": [],
          "usernameAttributes": [],
          "signupAttributes": [
            "email"
          ],
          "passwordProtectionSettings": {
            "passwordPolicyMinLength": 8,
            "passwordPolicyCharacters": []
          },
          "mfaConfiguration": "OFF",
          "mfaTypes": [
            "SMS"
          ],
          "verificationMechanisms": [
            "EMAIL"
          ]
        }
      }
    }
  }
}
}''';

    case Flavor.stg:
      return '''{
"auth": {
  "plugins": {
    "awsCognitoAuthPlugin": {
      "CognitoUserPool": {
        "Default": {
          "PoolId": "ap-northeast-1_15UZfZOvC",
          "AppClientId": "h7ojo9n7me0mds8mvmj9c81jd",
          "AppClientSecret": "1nkjfh4e69sic07h5elgdi3csktalcd9800fljs6ug9r45ldifgd",
          "Region": "ap-northeast-1"
        }
      },
      "Auth": {
        "Default": {
          "authenticationFlowType": "USER_SRP_AUTH",
          "socialProviders": [],
          "usernameAttributes": [],
          "signupAttributes": [
            "email"
          ],
          "passwordProtectionSettings": {
            "passwordPolicyMinLength": 8,
            "passwordPolicyCharacters": []
          },
          "mfaConfiguration": "OFF",
          "mfaTypes": [
            "SMS"
          ],
          "verificationMechanisms": [
            "EMAIL"
          ]
        }
      }
    }
  }
}
}''';

    case Flavor.prod:
      return '';

    default:
      return '';
  }
}