Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: NAMESPACE and APIKEY set in the .env file #23

Open
wants to merge 82 commits into
base: trunk
Choose a base branch
from

Conversation

CurtlyCritchlow
Copy link
Collaborator

- What I did

- How I did it
- How to verify it

  1. create .env file if it doesn't exist
  2. add NAMESPACE=at_dude in .env file
  3. add API_KEY =
  4. Run the app, you should not see a .env not loaded nor warning set API_KEY before using app in production warning message in the debug console.

- Description for the changelog

NAMESPACE and API_KEY set for the dude app

Copy link
Member

@XavierChanth XavierChanth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure not to commit .DS_Store files, please add an entry for it in .gitignore

lib/main.dart Outdated
@@ -24,22 +24,25 @@ import 'services/services.dart';
import 'utils/utils.dart';
import 'widgets/widgets.dart';

final AtSignLogger _logger = AtSignLogger(AtEnv.appNamespace);
AtSignLogger _logger = AtSignLogger(AtEnv.appNamespace);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is going to cause the same issue, since AtEnv.appNamespace is still being called before AtEnv.load(). Instead of passing AtEnv.appNamespace, pass a String.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

lib/main.dart Outdated

Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await AtEnv.load();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already called on line 39, no need to call it again.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@XavierChanth
Copy link
Member

assets/.DS_Store as well please

CurtlyCritchlow and others added 30 commits March 8, 2023 11:15
chore: pane workflow updated with comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set app namespace and api_key
3 participants