- Clone the repo https://github.com/theoctober19th/cosmos_astrology at a different location somewhere in your machine. Create a new temporary branch and checkout to the branch.
- Run
flutter pub get
since a new package has been added (namedflutter_dotenv
) - Create a file
.env
at the root of the project. (at the same level aspubspec.yaml
file). This file will contain the credentials as environment variables, but it will not be tracked by git (already added to gitignore). Sample content of the file.env
is:
ESEWA_CLIENT_ID='xxx'
ESEWA_SECRET_KEY='xxx'
KHALTI_PUBLIC_KEY='xxx'
This file will automatically be loaded in main
method of the Flutter app, and will be available everywhere in the app as a map/dictionary. Wherever needed, just import 'package:flutter_dotenv/flutter_dotenv.dart';
and then use variables like env['ESEWA_CLIENT_ID']
.
-
Manually perform the changes you performed in this commit: https://github.com/theoctober19th/astrologer_v2/pull/3/files/a6700ecfca8579a10b7c850cdab68709b82df82f#diff-9526ccfd1d1813ed49c39f8c54dbeb512607376a007d824b905bc8b4e4d202d9R87
-
git add
the changes manually, ensuring that credentials have not been exposed in the code. Do not add.env
file. -
Commit the changes and push to origin (temporary branch named same as the local branch)
-
Create PR from that branch to
payment-gateway-intregration-native
. -
Done.