...
Clone the Repo → git clone https://github.com/misdwss/punjab-mgramseva.git
Navigate to mgramseva Folder → cd punjab-mgramseva/frontend/mgramseva
.upgrading the version in the pubspec.yml ( version: 1.0.2+3)
1.0.2 => version name (which displayed in playstore)+3 => version code (increment by +1 every time)
Replace the base Url with Prod Url.
File → app.config.dart
_baseUrl: window.location.origin + "/", => _baseUrl: "https://mgramseva-dwss.punjab.gov.in/ "Comment the below line
File → link
export 'dart:js' show allowInterop, allowInteropCaptureThis;Executing flutter clean command → flutter clean
Execute the flutter pub get command. → flutter pub get
Download the key-store .properties file from the below link
https://drive.google.com/file/d/14teTA0nqHaFLEkgg_LCHTcji5cRJDnXR/view?usp=sharing
attachments
Add this properties file to the android app folder as shown in below image
android → key.propertiesDownload the google-service.json file from below link
https://drive.google.com/file/d/1USBY0a2sluHh2VwWxVcKhR7nzjkYnAmW/view?usp=sharing attachments
Add this json file to the android app folder as shown in below image
android → app → google-services.jsonBelow are the steps to build the App bundle(Playstore) and IPA(AppStore).
App Bundle Creation
Build the prod app bundle using this command → flutter build appbundle
Path → D:\mgramseva_prod\punjab-mgramseva\frontend\mgramseva\build\app\outputs\bundle\release\app-release.aabIPA Creation
1.Open the mgramseva IOS folder using xcode.
Path → punjab-mgramseva/frontend/mgramseva/ios
2.In Runner navigate to general tab, check the identity properties(Version, build, app name, build identifier).
3.Navigate to signing & capabilities tab, check whether provisioning profile is set properly or not.
4.From Xcode tool bar, select Product option, in that select Archive option it will generate the build and automatically deploy the build to App store connect (where can test and deploy the app to App store).
Note :
Kindly check the attached drive link mgramseva release version sheet below which includes key-store, version tracker and also updated the version and release date in sheet.
https://docs.google.com/spreadsheets/d/1aH596FxtPISIlQzxw9jO_Ex1dttpJJvweib2F9nJj9o/edit#gid=0
Attachments
View file | ||
---|---|---|
|
View file | ||
---|---|---|
|
View file | ||
---|---|---|
|
Steps to build Web
...
Check the release version in Package.json whether it is sync with Mobile application or not.
Navigate to Jenkins frontend mgramseva builds.
Select build with parameter option and select the master branch from filter as shown in screenshot and tap on build button, it will take some time to build.
Once successfully build happen, copy the build id and share it with the implementation team, they will take care of Prod deployment.
...