support Threema
This commit is contained in:
parent
ff511ca29b
commit
08814abb61
12 changed files with 24 additions and 16 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Red
|
# Red
|
||||||
|
|
||||||
Redirect outgoing calls to Signal/Telegram.
|
Redirect outgoing calls to Signal/Telegram/Threema.
|
||||||
|
|
||||||
[<img
|
[<img
|
||||||
src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png"
|
src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png"
|
||||||
|
@ -16,7 +16,7 @@ Redirect outgoing calls to Signal/Telegram.
|
||||||
width="30%"
|
width="30%"
|
||||||
height="30%">
|
height="30%">
|
||||||
|
|
||||||
Tiny app to redirect outgoing calls to Signal/Telegram if available.
|
Tiny app to redirect outgoing calls to Signal/Telegram/Threema if available.
|
||||||
|
|
||||||
You can cancel redirection by clicking on `Redirecting to..` popup.
|
You can cancel redirection by clicking on `Redirecting to..` popup.
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,8 @@ android {
|
||||||
applicationId "me.lucky.red"
|
applicationId "me.lucky.red"
|
||||||
minSdk 29
|
minSdk 29
|
||||||
targetSdk 32
|
targetSdk 32
|
||||||
versionCode 3
|
versionCode 5
|
||||||
versionName "1.0.2"
|
versionName "1.0.4"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,9 +15,12 @@ class CallRedirectionService : CallRedirectionService() {
|
||||||
"vnd.android.cursor.item/vnd.org.thoughtcrime.securesms.call"
|
"vnd.android.cursor.item/vnd.org.thoughtcrime.securesms.call"
|
||||||
private const val TELEGRAM_MIMETYPE =
|
private const val TELEGRAM_MIMETYPE =
|
||||||
"vnd.android.cursor.item/vnd.org.telegram.messenger.android.call"
|
"vnd.android.cursor.item/vnd.org.telegram.messenger.android.call"
|
||||||
|
private const val THREEMA_MIMETYPE =
|
||||||
|
"vnd.android.cursor.item/vnd.ch.threema.app.call"
|
||||||
private val MIMETYPES = mapOf(
|
private val MIMETYPES = mapOf(
|
||||||
SIGNAL_MIMETYPE to 0,
|
SIGNAL_MIMETYPE to 0,
|
||||||
TELEGRAM_MIMETYPE to 1,
|
TELEGRAM_MIMETYPE to 1,
|
||||||
|
THREEMA_MIMETYPE to 2,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,8 +66,9 @@ class CallRedirectionService : CallRedirectionService() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
window.show(record.uri, when (record.mimetype) {
|
window.show(record.uri, when (record.mimetype) {
|
||||||
SIGNAL_MIMETYPE -> R.string.signal
|
SIGNAL_MIMETYPE -> R.string.destination_signal
|
||||||
TELEGRAM_MIMETYPE -> R.string.telegram
|
TELEGRAM_MIMETYPE -> R.string.destination_telegram
|
||||||
|
THREEMA_MIMETYPE -> R.string.destination_threema
|
||||||
else -> return
|
else -> return
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<string name="app_name">Red</string>
|
<string name="app_name">Red</string>
|
||||||
<string name="description">Приложение будет пытаться перенаправить исходящие вызовы в Signal/Telegram. Для работы ему нужно много разрешений. Кликайте на переключатель и выдавайте разрешения пока он не включится.</string>
|
<string name="description">Приложение будет пытаться перенаправить исходящие вызовы в Signal/Telegram/Threema. Для работы ему нужно много разрешений. Кликайте на переключатель и выдавайте разрешения пока он не включится.</string>
|
||||||
<string name="popup">Перенаправление в %1$s</string>
|
<string name="popup">Перенаправление в %1$s</string>
|
||||||
<string name="signal">Signal</string>
|
<string name="destination_signal">Signal</string>
|
||||||
<string name="telegram">Telegram</string>
|
<string name="destination_telegram">Telegram</string>
|
||||||
|
<string name="destination_threema">Threema</string>
|
||||||
<string name="redirection_delay_description">Задержка до того, как звонок будет перенаправлен.</string>
|
<string name="redirection_delay_description">Задержка до того, как звонок будет перенаправлен.</string>
|
||||||
</resources>
|
</resources>
|
|
@ -1,9 +1,10 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<string name="app_name">Red</string>
|
<string name="app_name">Red</string>
|
||||||
<string name="description">The app will try to redirect outgoing calls to Signal/Telegram if available. For work it requires many permissions. Click on the toggle and grant permissions until it turns ON.</string>
|
<string name="description">The app will try to redirect outgoing calls to Signal/Telegram/Threema if available. For work it requires many permissions. Click on the toggle and grant permissions until it turns ON.</string>
|
||||||
<string name="popup">Redirecting to %1$s</string>
|
<string name="popup">Redirecting to %1$s</string>
|
||||||
<string name="signal">Signal</string>
|
<string name="destination_signal">Signal</string>
|
||||||
<string name="telegram">Telegram</string>
|
<string name="destination_telegram">Telegram</string>
|
||||||
|
<string name="destination_threema">Threema</string>
|
||||||
<string name="redirection_delay_description">Delay before a call will be redirected.</string>
|
<string name="redirection_delay_description">Delay before a call will be redirected.</string>
|
||||||
</resources>
|
</resources>
|
1
fastlane/metadata/android/en-US/changelogs/4.txt
Normal file
1
fastlane/metadata/android/en-US/changelogs/4.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Google dislikes my "Privacy Police" :(
|
1
fastlane/metadata/android/en-US/changelogs/5.txt
Normal file
1
fastlane/metadata/android/en-US/changelogs/5.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
support Threema
|
|
@ -1,4 +1,4 @@
|
||||||
Tiny app to redirect outgoing calls to Signal/Telegram if available.
|
Tiny app to redirect outgoing calls to Signal/Telegram/Threema if available.
|
||||||
|
|
||||||
You can cancel redirection by clicking on "Redirecting to.." popup.
|
You can cancel redirection by clicking on "Redirecting to.." popup.
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
|
@ -1 +1 @@
|
||||||
Redirect outgoing calls to Signal/Telegram
|
Redirect outgoing calls to Signal/Telegram/Threema
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Минимальное приложение для перенаправления исходящих вызовов в Signal/Telegram.
|
Минимальное приложение для перенаправления исходящих вызовов в Signal/Telegram/Threema.
|
||||||
|
|
||||||
Вы можете отменить перенаправление, кликнув на всплывающее сообщение "Перенаправление в..".
|
Вы можете отменить перенаправление, кликнув на всплывающее сообщение "Перенаправление в..".
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Перенаправить исходящие вызовы в Signal/Telegram
|
Перенаправить исходящие вызовы в Signal/Telegram/Threema
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue