Skip to content

Commit

Permalink
Update the Burundi EUSM flavor (#3553)
Browse files Browse the repository at this point in the history
* - Add the EUSM Burundi flavour
- Rename the exisiting EUSM flavour

* - Update the app naming

* - update the flavour naming

* - Update the flavor naming
- Update the documentation

* - Update the flavors section of the documentation to clarify on the naming convention
  • Loading branch information
dubdabasoduba authored Oct 9, 2024
1 parent d691046 commit d68a811
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
8 changes: 4 additions & 4 deletions android/quest/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -323,15 +323,15 @@ android {

create("eusmMg") {
dimension = "apps"
applicationIdSuffix = ".eusm-mg"
versionNameSuffix = "-eusm-mg"
applicationIdSuffix = ".eusmMg"
versionNameSuffix = "-eusmMg"
manifestPlaceholders["appLabel"] = "EUSM Madagascar"
}

create("eusmBi") {
dimension = "apps"
applicationIdSuffix = ".eusm-bi"
versionNameSuffix = "-eusm-bi"
applicationIdSuffix = ".eusmBi"
versionNameSuffix = "-eusmBi"
manifestPlaceholders["appLabel"] = "EUSM Burundi"
}

Expand Down
9 changes: 6 additions & 3 deletions docs/engineering/app/automated-releases.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,15 @@ To add a flavor, add an entry to the `productFlavors` map in [`android/opensrp/b
```
create("newFlavor") {
dimension = "apps"
applicationIdSuffix = ".new-flavor"
versionNameSuffix = "-new-flavor"
applicationIdSuffix = ".newFlavor"
versionNameSuffix = "-newFlavor"
manifestPlaceholders["appLabel"] = "New Flavor App Name"
}
```
Note, flavor names should always be camel cased

:::tip
Remember to use **[camelCase](https://en.wikipedia.org/wiki/Camel_case)** when adding the **flavor name** e.g `newFlavor`, **`applicationIdSuffix`** e.g `.newFlavor` and **`versionNameSuffix`** e.g `-newFlavor`
:::

You can add the following resources:

Expand Down
10 changes: 7 additions & 3 deletions docs/engineering/app/configuring/add-application-flavors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,18 @@ productFlavors {
The product flavors are easily modigied to the specified app flavor e.g.

```
create("afyayangu") {
create("afyaYangu") {
dimension = "apps"
applicationIdSuffix = ".afyayangu"
versionNameSuffix = "-afyayangu"
applicationIdSuffix = ".afyaYangu"
versionNameSuffix = "-afyaYangu"
manifestPlaceholders["appLabel"] = "Afya Yangu"
}
```

:::tip
Remember to use **[camelCase](https://en.wikipedia.org/wiki/Camel_case)** when adding the **flavor name** e.g `newFlavor`, **`applicationIdSuffix`** e.g `.newFlavor` and **`versionNameSuffix`** e.g `-newFlavor`
:::

### Config properties of productFlavors
|Property | Description | Required | Default |
|--|--|:--:|:--:|
Expand Down

0 comments on commit d68a811

Please sign in to comment.