Skip to content

Commit

Permalink
Merge pull request #744 from tchapgouv/hotfix/tchap_v2.4.3
Browse files Browse the repository at this point in the history
Hotfix/tchap v2.4.3
  • Loading branch information
appndigital authored Sep 23, 2022
2 parents dc462eb + ec365b0 commit 342e14a
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 10 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request: { }
push:
branches: [ main, develop ]
tags: [tchap_v*]
tags: [ tchap_v* ]

# Enrich gradle.properties for CI/CD
env:
Expand Down Expand Up @@ -54,10 +54,10 @@ jobs:
fail-fast: false
matrix:
target: [ GplayBtchapWithoutvoipWithpinning, GplayTchapWithoutvoipWithpinning, FdroidBtchapWithoutvoipWithoutpinning, FdroidTchapWithoutvoipWithoutpinning, GplayBtchapWithvoipWithpinning ]
# Only runs on main, no concurrency.
concurrency:
group: ${{ github.ref == 'refs/head/main' && format('build-release-apk-main-{0}', github.sha) || github.ref == 'refs/heads/develop' && format('build-release-apk-develop-{0}', github.sha) || format('build-debug-{0}', github.ref) }}
cancel-in-progress: ${{ github.ref != 'refs/head/main' }}
# Tchap: custom group
group: ${{ github.ref == 'refs/head/main' && format('build-release-apk-main-{0}-{1}', github.sha, matrix.target) || startsWith(github.ref, 'refs/tags/tchap_v') && format('build-release-apk-tag-{0}-{1}', github.sha, matrix.target) }}
cancel-in-progress: ${{ github.ref != 'refs/head/main' && !startsWith(github.ref, 'refs/tags/tchap_v') }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
Expand All @@ -80,18 +80,26 @@ jobs:
exodus:
runs-on: ubuntu-latest
needs: release
env:
# Tchap: only generate exodus report for the following target
TARGET_NAME: "GplayTchapWithoutvoipWithpinning"
TARGET_FOLDER: "gplayTchapWithoutvoipWithpinning"
steps:
- name: Obtain apk from artifact
id: download
uses: actions/download-artifact@v3
with:
name: vector-gplay-release-unsigned
name: ${{ env.TARGET_NAME }}-release-unsigned
- name: Show apks in artifact
run: ls -R ${{steps.download.outputs.download-path}}
id: list-apks
# Tchap: Find apks in artifacts
run: |
ls -R ${{steps.download.outputs.download-path}} | grep ".apk"
echo ::set-output name=FIRST_APK_NAME::$(ls -R ${{steps.download.outputs.download-path}} | grep ".apk" | head -1)
- name: Execute exodus-standalone
uses: docker://exodusprivacy/exodus-standalone:latest
with:
args: /github/workspace/gplay/release/vector-gplay-universal-release-unsigned.apk -j -o /github/workspace/exodus.json
args: /github/workspace/${{ env.TARGET_FOLDER }}/release/${{ steps.list-apks.outputs.FIRST_APK_NAME }} -j -o /github/workspace/exodus.json
- name: Upload exodus json report
uses: actions/upload-artifact@v3
with:
Expand Down
12 changes: 12 additions & 0 deletions TCHAP_CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
Changes in Tchap 2.4.3 (2022-09-23)
===================================

Bugfixes 🐛
----------
- Create DM by selecting an email is not working anymore ([#672](https://github.com/tchapgouv/tchap-android-v2/issues/672))

Other changes
-------------
- CI - Fix build APKs script ([#724](https://github.com/tchapgouv/tchap-android-v2/issues/724))


Changes in Tchap 2.4.2 (2022-08-29)
===================================

Expand Down
2 changes: 1 addition & 1 deletion towncrier.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.towncrier]
version = "2.4.2"
version = "2.4.3"
directory = "changelog.d"
filename = "TCHAP_CHANGES.md"
name = "Changes in Tchap"
Expand Down
5 changes: 3 additions & 2 deletions vector/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ext.versionMinor = 4
// Note: even values are reserved for regular release, odd values for hotfix release.
// When creating a hotfix, you should decrease the value, since the current value
// is the value for the next regular release.
ext.versionPatch = 2
ext.versionPatch = 3

static def getGitTimestamp() {
def cmd = 'git show -s --format=%ct'
Expand Down Expand Up @@ -224,7 +224,8 @@ android {

applicationVariants.all { variant ->
// assign different version code for each output
def baseVariantVersion = variant.versionCode * 10
// Tchap : Increase the factor from 10 to 100 due to Neo users integration
def baseVariantVersion = variant.versionCode * 100
variant.outputs.each { output ->
def baseAbiVersionCode = project.ext.abiVersionCodes.get(output.getFilter(OutputFile.ABI))
// Known limitation: it does not modify the value in the BuildConfig.java generated file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ class HomeActivityViewModel @AssistedInject constructor(
.onEach { status ->
when (status) {
is SyncRequestState.Idle -> {
// Tchap edition : Force Identity server definition
updateIdentityServer()

maybeVerifyOrBootstrapCrossSigning()
}
else -> Unit
Expand Down

0 comments on commit 342e14a

Please sign in to comment.