rap2hpoutre / monsuivipsy

Permettre à chacun de mieux connaitre son trouble pour faciliter le choix du bon traitement

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mobile version

Mon Suivi Psy

Permettre à chacun de mieux connaitre son trouble pour faciliter le choix du bon traitement

Deploy

For all: bump versions

Concept

Both android and ios have two kind of build numbers:

  • android: you can see in '/android/app/build.gradle file versionCode and versionName. Usually, versionCode is incremented by 1 for every release, and versionName is basic versioning like 1.0.0 or whatever.

  • ios: you can see in ./ios/BalaBenzine.xcodeproj/project.pbxproj two lines called CURRENT_PROJECT_VERSION and two other called MARKETING_VERSION. Usually, CURRENT_PROJECT_VERSION is incremented by 1 for every release, and MARKETING_VERSION is basic versioning like 1.0.0 or whatever.

Automatic bump

run yarn update-mobile-app-version with the proper arguments:

  • yarn update-mobile-app-version bump: it will just increment +1 versionCode and CURRENT_PROJECT_VERSION
  • yarn update-mobile-app-version patch: it will increment +1 versionCode and CURRENT_PROJECT_VERSION and increment MARKETING_VERSION and versionName from, for example, 1.0.0 to 1.0.1
  • yarn update-mobile-app-version minor: it will increment +1 versionCode and CURRENT_PROJECT_VERSION and increment MARKETING_VERSION and versionName from, for example, 1.0.1 to 1.1.0
  • yarn update-mobile-app-version major: it will increment +1 versionCode and CURRENT_PROJECT_VERSION and increment MARKETING_VERSION and versionName from, for example, 1.1.0 to 2.0.0

Manual bump

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.

Android

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).

iOS

  • 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.

About

Permettre à chacun de mieux connaitre son trouble pour faciliter le choix du bon traitement

License:Apache License 2.0


Languages

Language:JavaScript 96.0%Language:Java 1.9%Language:C++ 0.9%Language:Objective-C 0.8%Language:Makefile 0.2%Language:Ruby 0.2%Language:Starlark 0.1%Language:Shell 0.0%