(anciènement nommée : Mon Suivi Psy)
Permettre à chacun de mieux connaitre son trouble pour faciliter le choix du bon traitement
Site officiel et présentation grand public : https://jardinmental.fabrique.social.gouv.fr/
Note d'intension du projet : https://beta.gouv.fr/startups/monsuivipsy.html
Both android and ios have two kind of build numbers:
-
android: you can see in
'/android/app/build.gradlefileversionCodeandversionName. Usually,versionCodeis incremented by 1 for every release, andversionNameis basic versioning like1.0.0or whatever. -
ios: you can see in
./ios/BalaBenzine.xcodeproj/project.pbxprojtwo lines calledCURRENT_PROJECT_VERSIONand two other calledMARKETING_VERSION. Usually,CURRENT_PROJECT_VERSIONis incremented by 1 for every release, andMARKETING_VERSIONis basic versioning like1.0.0or whatever.
run yarn update-mobile-app-version with the proper arguments:
yarn update-mobile-app-version bump: it will just increment +1versionCodeandCURRENT_PROJECT_VERSIONyarn update-mobile-app-version patch: it will increment +1versionCodeandCURRENT_PROJECT_VERSIONand incrementMARKETING_VERSIONandversionNamefrom, for example, 1.0.0 to 1.0.1yarn update-mobile-app-version minor: it will increment +1versionCodeandCURRENT_PROJECT_VERSIONand incrementMARKETING_VERSIONandversionNamefrom, for example, 1.0.1 to 1.1.0yarn update-mobile-app-version major: it will increment +1versionCodeandCURRENT_PROJECT_VERSIONand incrementMARKETING_VERSIONandversionNamefrom, for example, 1.1.0 to 2.0.0
Just update manually the versions where you need to do it.
You can't upload twice the same versionCode/CURRENT_PROJECT_VERSION, whereas you can upload twice versionName/MARKETING_VERSION.
In any case, you can't upload any version lower than the previous.
So be careful when you name those.
Just run yarn build:android.
Get the .aab file located at ./android/app/build/outputs/bundle/release/app-release.aab
Upload it in Google Play console, Internal Testing or Production directly, as you prefer. Better to have at least one Internal Testing tester that can check the app is properly compiled (like with a real API connection, not localhost).
(ask SRE Team to get needed files)
- obtain and add
key.propertiesto./app/androidfolder - obtain and add
my-upload-key.jksto./app/android/appfolder - obtain and add
google-cloud-api-key.jsonto./app/android/fastlanefolder - Execute this command from
./appfolder :yarn publish:android
This command will build and upload your app to Google Play Console - internal tests
-
Open
ios/monsuivipsy.xcodeproj, and click Product > Archive -
At the end of archiving, a new window opens: click "Distribute App". Then:
- Select "App Store Connect", and click "Next"
- Select "Upload", and click "Next"
- Select all three checkoxes ("Include bitcode for iOS content", "Strip Swift symbols" and "Upload your app's symbols"), and click "Next"
- In "Distribution certificate", select the default one, and in "monsuivipsy.app", select "iOS provisionning", and click "Next"
- Finally, click on "Upload"
-
Your app is now in the Test Flight tab in your App Store Connect. After it is reviewed, you can use it in your next App Store release.
(ask SRE Team to get needed files)
- First ensure to obtain and install the distribution certificate in your mac keychain (double click .p12 file with password) and the mobile provionning profile in xcode (double click .mobileprovision file it will open xcode).
- obtain and add
appleApiKey.jsonto./app/ios/fastlanefolder - Execute this command from
./appfolder :yarn publish:ios
This command will build and upload your app to App Store Connect - TestFlight.
Sentry runs in the container of the API and in the container of the cron. In the cron it passes as extra params the value: 'reminderCronJob'.
To test Sentry error reporting:
- Enable debug endpoints:
export DEBUG_ENDPOINTS_ENABLED=true - Restart the API
- Test:
curl http://localhost:3000/debug/test-sentry
This will send a test error to Sentry with proper context and tags. Only enable in development/staging environments.