agora.config.dart 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /// Get your own App ID at https://dashboard.agora.io/
  2. String get appId {
  3. // Allow pass an `appId` as an environment variable with name `TEST_APP_ID` by using --dart-define
  4. return const String.fromEnvironment('TEST_APP_ID',
  5. defaultValue: '<TEST_APP_ID>');
  6. }
  7. /// Please refer to https://docs.agora.io/en/Agora%20Platform/token
  8. String get token {
  9. // Allow pass a `token` as an environment variable with name `TEST_TOKEN` by using --dart-define
  10. return const String.fromEnvironment('TEST_TOKEN',
  11. defaultValue: '<TEST_TOKEN>');
  12. }
  13. /// Your channel ID
  14. String get channelId {
  15. // Allow pass a `channelId` as an environment variable with name `TEST_CHANNEL_ID` by using --dart-define
  16. return const String.fromEnvironment(
  17. 'TEST_CHANNEL_ID',
  18. defaultValue: '<TEST_CHANNEL_ID>',
  19. );
  20. }
  21. /// Your int user ID
  22. const int uid = 0;
  23. /// Your user ID for the screen sharing
  24. const int screenSharingUid = 10;
  25. /// Your string user ID
  26. const String stringUid = '0';
  27. String get musicCenterAppId {
  28. // Allow pass a `token` as an environment variable with name `TEST_TOKEN` by using --dart-define
  29. return const String.fromEnvironment('MUSIC_CENTER_APPID',
  30. defaultValue: '<MUSIC_CENTER_APPID>');
  31. }