Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

Commit e0244ad

Browse files
committed
Add deprecation warning
1 parent 4684a5c commit e0244ad

File tree

2 files changed

+37
-3
lines changed

2 files changed

+37
-3
lines changed

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# LibrePass Android
22

3+
> [!WARNING]
4+
> Deprecated
5+
36
LibrePass represents an innovative cloud-based password manager known for its user-friendly
47
simplicity and performance.
58
It functions not only as a tool for generating secure passwords
@@ -31,9 +34,6 @@ It will be also available in Google Play Store soon.
3134

3235
## 📝 Translations
3336

34-
> [!WARNING]
35-
> The application is currently under reconstruction and translations are temporarily blocked due to a major change in the code.
36-
3737
<a href="https://hosted.weblate.org/projects/librepass/#languages">
3838
<img src="https://hosted.weblate.org/widgets/librepass/-/287x66-black.png" alt="Translation status" />
3939
</a>

Diff for: app/src/main/java/dev/medzik/librepass/android/MainActivity.kt

+34
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,18 @@ import android.util.Log
55
import androidx.activity.compose.setContent
66
import androidx.activity.enableEdgeToEdge
77
import androidx.compose.foundation.isSystemInDarkTheme
8+
import androidx.compose.material3.AlertDialog
9+
import androidx.compose.material3.Text
10+
import androidx.compose.material3.TextButton
11+
import androidx.compose.runtime.getValue
12+
import androidx.compose.runtime.mutableStateOf
13+
import androidx.compose.runtime.remember
14+
import androidx.compose.runtime.setValue
815
import androidx.fragment.app.FragmentActivity
916
import androidx.navigation.NavController
1017
import dagger.hilt.android.AndroidEntryPoint
1118
import dev.medzik.android.utils.openEmailApplication
19+
import dev.medzik.android.utils.showToast
1220
import dev.medzik.librepass.android.business.VaultCache
1321
import dev.medzik.librepass.android.common.popUpToDestination
1422
import dev.medzik.librepass.android.database.Repository
@@ -48,11 +56,37 @@ class MainActivity : FragmentActivity() {
4856
// retrieves aes key for vault decryption if key is valid
4957
vault.getSecretsIfNotExpired(this)
5058

59+
this.showToast("This application is deprecated.")
60+
5161
setContent {
5262
LibrePassTheme(
5363
darkTheme = isSystemInDarkTheme(),
5464
dynamicColor = true
5565
) {
66+
var showDeprecatedWarning by remember { mutableStateOf(true) }
67+
if (showDeprecatedWarning) {
68+
AlertDialog(
69+
onDismissRequest = {
70+
showDeprecatedWarning = false
71+
},
72+
confirmButton = {
73+
TextButton(
74+
onClick = {
75+
showDeprecatedWarning = false
76+
}
77+
) {
78+
Text("OK")
79+
}
80+
},
81+
title = {
82+
Text("Warning")
83+
},
84+
text = {
85+
Text("This application is deprecated. Please migrate all passwords before December 2024")
86+
}
87+
)
88+
}
89+
5690
LibrePassNavigation()
5791
}
5892
}

0 commit comments

Comments
 (0)