-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Arnaud AMBROSELLI <arnaudambroselli@pc72.home>
- Loading branch information
1 parent
62090e4
commit a684540
Showing
23 changed files
with
2,625 additions
and
2,610 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
*.pbxproj -text | ||
# Windows files should use crlf line endings | ||
# https://help.github.com/articles/dealing-with-line-endings/ | ||
*.bat text eol=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,56 @@ | ||
![Mobile version](https://img.shields.io/badge/mobile%20app%20version-1.14.21-blue) | ||
|
||
# Mon Suivi Psy | ||
|
||
Permettre à chacun de mieux connaitre son trouble pour faciliter le choix du bon traitement | ||
|
||
## Run the application in development mode | ||
## Deploy | ||
|
||
### For all: bump versions | ||
|
||
``` | ||
yarn start | ||
``` | ||
#### Concept | ||
|
||
Then, open another terminal and run: | ||
### On iOS | ||
Both android and ios have two kind of build numbers: | ||
|
||
``` | ||
yarn ios | ||
``` | ||
- 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. | ||
|
||
### On Android | ||
- 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. | ||
|
||
``` | ||
yarn android | ||
``` | ||
#### Automatic bump | ||
|
||
## Run tests | ||
``` | ||
yarn test | ||
``` | ||
run `yarn update-mobile-app-version` with the proper arguments: | ||
|
||
## Check lint | ||
``` | ||
yarn lint | ||
``` | ||
- `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 | ||
|
||
## Publish the app | ||
#### Manual bump | ||
|
||
### On Android | ||
Just update manually the versions where you need to do it. | ||
|
||
- Edit `android/app/build.gradle` lines 135 and 136 to change versionCode and version name | ||
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. | ||
|
||
- Edit `android/gradle.properties` lines 29 and 30 to add the keystore password | ||
So be careful when you name those. | ||
|
||
- Then, run the following command : | ||
``` | ||
yarn build:android | ||
``` | ||
### Android | ||
|
||
This will generate a .aab file that you can upload in Google Play Console. This file can be found in `android/app/build/outputs/bundle/release/app.aab` and uploaded in a new Play Store release. | ||
Just run `yarn build:android`. | ||
Get the `.aab` file located at `./android/app/build/outputs/bundle/release/app-release.aab` | ||
|
||
### On iOS | ||
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). | ||
|
||
- Check `ios/monsuivipsy/Info.plist` line 29 to put `NSAllowsArbitraryLoads` to false and remove `localhost` from `NSExceptionDomains` | ||
### 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
{ | ||
"name": "monsuivipsy", | ||
"displayName": "monsuivipsy" | ||
} | ||
"displayName": "Mon Suivi Psy", | ||
"version": { | ||
"buildNumber": 64, | ||
"buildName": "1.14.21" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.