Skip to content

Commit

Permalink
Merge branch 'release/2.15.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
yostyle committed Dec 16, 2024
2 parents 460eea3 + 389161b commit 93e98d0
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 33 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# Tchap Android

Tchap Android is an Android Matrix Client provided by [DINUM](https://tchap.beta.gouv.fr/). The app can be run on every Android devices with Android OS Lollipop and more (API 21).
Tchap Android is an Android Matrix Client provided by [DINUM](https://tchap.numerique.gouv.fr/). The app can be run on every Android devices with Android OS Lollipop and more (API 21).

[<img src="resources/img/google-play-badge.png" alt="Get it on Google Play" height="60">](https://play.google.com/store/apps/details?id=fr.gouv.tchap.a)

The integrity of APKs obtained from github can be [verified](https://developer.android.com/studio/command-line/apksigner#usage-verify) using the signing certificate fingerprints:
```
SHA-256: 2799b5dc1c4ee23127bffdad325db7096f5d0b4e3856f0000305e23f61f991ac
SHA-1: 48d2a6cb6a779fc8fa3b75cd56a55cc706886205
```

# New Android SDK

Tchap is based on [Element](https://github.com/element-hq/element-android) with a new Android [SDK](https://github.com/matrix-org/matrix-android-sdk2) fully written in Kotlin. In order to make the early development as fast as possible, Tchap and the new SDK currently share the same git repository.
Expand Down
9 changes: 9 additions & 0 deletions TCHAP_CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
Changes in Tchap 2.15.0 (2024-12-16)
====================================

Other changes
-------------
- Ajout de la configuration posthog pour vérifier la charge en production. ([#1140](https://github.com/tchapgouv/tchap-android/issues/1140))
- Mise à jour de realm-gradle-plugin en version 10.19.0 ([#1142](https://github.com/tchapgouv/tchap-android/issues/1142))
- Changement des URLs pour les CGU et la politique de confidentialité. ([#1143](https://github.com/tchapgouv/tchap-android/issues/1143))

Changes in Tchap 2.14.0 (2024-11-26)
====================================

Expand Down
2 changes: 1 addition & 1 deletion matrix-sdk-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {
}
}
dependencies {
classpath "io.realm:realm-gradle-plugin:10.18.0"
classpath "io.realm:realm-gradle-plugin:10.19.0"
}
}

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.14.0"
version = "2.15.0"
directory = "changelog.d"
filename = "TCHAP_CHANGES.md"
name = "Changes in Tchap"
Expand Down
2 changes: 1 addition & 1 deletion vector-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ knit {

// Note: 2 digits max for each value
ext.versionMajor = 2
ext.versionMinor = 14
ext.versionMinor = 15
// 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.
Expand Down
10 changes: 8 additions & 2 deletions vector-config/src/main/java/im/vector/app/config/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ object Config {
val DEBUG_ANALYTICS_CONFIG = Analytics.Enabled(
postHogHost = "https://us.i.posthog.com", // TCHAP dev posthog
postHogApiKey = "phc_eQOeaQiaIxdX9kaQmqYTD7RJLyFubYmGYKUI9czqqQD", // TCHAP dev posthog
policyLink = "https://tchap.beta.gouv.fr/politique-de-confidentialite", // TCHAP dev posthog
policyLink = "https://tchap.numerique.gouv.fr/politique-de-confidentialite",
sentryDSN = "",
sentryEnvironment = "DEBUG"
)
Expand All @@ -95,7 +95,13 @@ object Config {
* The analytics configuration to use for the Release build type.
* Can be disabled by providing Analytics.Disabled
*/
val RELEASE_ANALYTICS_CONFIG = Analytics.Disabled // TCHAP No analytics
val RELEASE_ANALYTICS_CONFIG = Analytics.Enabled(
postHogHost = "https://posthogdev.tchap.incubateur.net", // TCHAP prod posthog
postHogApiKey = "phc_FFa4pkvmuWjF9nZOMmYJWUXMibuYnCnPyf3DqPGZs4L", // TCHAP prod posthog
policyLink = "https://tchap.numerique.gouv.fr/politique-de-confidentialite",
sentryDSN = "",
sentryEnvironment = "RELEASE"
)

/**
* The analytics configuration to use for the Nightly build type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ import im.vector.app.features.spaces.invite.SpaceInviteBottomSheet
import im.vector.app.features.spaces.share.ShareSpaceBottomSheet
import im.vector.app.features.themes.ThemeUtils
import im.vector.app.features.usercode.UserCodeActivity
import im.vector.app.features.webview.VectorWebViewActivity
import im.vector.app.features.workers.signout.ServerBackupStatusViewModel
import im.vector.lib.core.utils.compat.getParcelableExtraCompat
import im.vector.lib.strings.CommonStrings
Expand Down Expand Up @@ -237,12 +236,7 @@ class HomeActivity :
when (sharedAction) {
// TCHAP Custom implementation
is HomeActivitySharedAction.InviteByEmail -> Unit // no-op
HomeActivitySharedAction.OpenTermAndConditions -> {
// TCHAP the Term And Conditions url is detected as a permalink (same prefix), which make the application fail to open it from
// ChromeCustomTab, so we open it here directly in a WebView
val intent = VectorWebViewActivity.getIntent(this, VectorSettingsUrls.TAC, getString(CommonStrings.settings_app_term_conditions))
startActivity(intent)
}
HomeActivitySharedAction.OpenTermAndConditions -> openUrlInChromeCustomTab(this, null, VectorSettingsUrls.TAC)
HomeActivitySharedAction.OpenBugReport -> {
views.drawerLayout.closeDrawer(GravityCompat.START)
bugReporter.openBugReportScreen(this, ReportType.BUG_REPORT, false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
package im.vector.app.features.settings

object VectorSettingsUrls {
// TCHAP Redirect to Tchap FAQ
const val HELP = "https://aide.tchap.beta.gouv.fr"
const val HELP = "https://aide.tchap.beta.gouv.fr" // TCHAP Redirect to FAQ
const val COPYRIGHT = "https://element.io/copyright"
const val TAC = "https://www.tchap.gouv.fr/tac.html"
const val PRIVACY_POLICY = "https://element.io/privacy"
const val TAC = "https://tchap.numerique.gouv.fr/cgu/" // TCHAP Redirect to CGU
const val PRIVACY_POLICY = "https://tchap.numerique.gouv.fr/politique-de-confidentialite" // TCHAP Redirect to privacy
const val THIRD_PARTY_LICENSES = "file:///android_asset/open_source_licenses.html"
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ class ElementLegals @Inject constructor(
*/
fun getData(): List<ServerPolicy> {
return listOf(
ServerPolicy(stringProvider.getString(CommonStrings.settings_app_term_conditions), VectorSettingsUrls.TAC)
ServerPolicy(stringProvider.getString(CommonStrings.settings_app_term_conditions), VectorSettingsUrls.TAC),
// TCHAP Hidden in Tchap
// ServerPolicy(stringProvider.getString(CommonStrings.settings_copyright), VectorSettingsUrls.COPYRIGHT),
// ServerPolicy(stringProvider.getString(CommonStrings.settings_acceptable_use_policy), VectorSettingsUrls.ACCEPTABLE_USE_POLICY),
// ServerPolicy(stringProvider.getString(CommonStrings.settings_privacy_policy), VectorSettingsUrls.PRIVACY_POLICY)
ServerPolicy(stringProvider.getString(CommonStrings.settings_privacy_policy), VectorSettingsUrls.PRIVACY_POLICY)
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import im.vector.app.databinding.FragmentGenericRecyclerBinding
import im.vector.app.features.analytics.plan.MobileScreen
import im.vector.app.features.discovery.ServerPolicy
import im.vector.app.features.settings.VectorSettingsUrls
import im.vector.app.features.webview.VectorWebViewActivity
import im.vector.lib.strings.CommonStrings
import javax.inject.Inject

Expand Down Expand Up @@ -94,19 +93,10 @@ class LegalsFragment :

private fun openUrl(url: String) {
if (firstThrottler.canHandle() is FirstThrottler.CanHandlerResult.Yes) {
when {
url.startsWith("file://") -> {
activity?.displayInWebView(url)
}
url == VectorSettingsUrls.TAC -> {
// TCHAP the Term And Conditions url is detected as a permalink (same prefix), which make the application fail to open it from
// ChromeCustomTab, so we open it here directly in a WebView
val intent = VectorWebViewActivity.getIntent(requireActivity(), url, resources.getString(CommonStrings.settings_app_term_conditions))
activity?.startActivity(intent)
}
else -> {
openUrlInChromeCustomTab(requireContext(), null, url)
}
if (url.startsWith("file://")) {
activity?.displayInWebView(url)
} else {
openUrlInChromeCustomTab(requireContext(), null, url)
}
}
}
Expand Down

0 comments on commit 93e98d0

Please sign in to comment.