- 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 getsince a new package has been added (namedflutter_dotenv) - Create a file
.envat the root of the project. (at the same level aspubspec.yamlfile). 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.envis:
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 addthe changes manually, ensuring that credentials have not been exposed in the code. Do not add.envfile. -
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.