mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-04-30 14:44:35 +02:00
refactor: app links
Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com>
This commit is contained in:
parent
89f2d99aff
commit
ec15b27498
@ -103,7 +103,7 @@ class RemoteSharedLibraryManager(
|
||||
0,
|
||||
Intent().apply {
|
||||
action = Intent.ACTION_VIEW
|
||||
data = "https://codeberg.org/SnapEnhance/resources".toUri()
|
||||
data = "https://github.com/SnapEnhance/resources".toUri()
|
||||
flags = Intent.FLAG_ACTIVITY_NEW_TASK
|
||||
},
|
||||
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
|
||||
|
@ -4,7 +4,6 @@ import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.layout.*
|
||||
import androidx.compose.foundation.rememberScrollState
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.foundation.text.ClickableText
|
||||
import androidx.compose.foundation.verticalScroll
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.automirrored.filled.Help
|
||||
@ -176,13 +175,6 @@ class HomeRootSection : Routes.Route() {
|
||||
.fillMaxWidth()
|
||||
.padding(all = 5.dp)
|
||||
) {
|
||||
ExternalLinkIcon(
|
||||
modifier = Modifier.clickable {
|
||||
context.androidContext.openLink("https://codeberg.org/SnapEnhance/SnapEnhance")
|
||||
},
|
||||
imageVector = ImageVector.vectorResource(id = R.drawable.ic_codeberg),
|
||||
)
|
||||
|
||||
ExternalLinkIcon(
|
||||
modifier = Modifier.clickable {
|
||||
context.androidContext.openLink("https://t.me/snapenhance")
|
||||
@ -279,7 +271,7 @@ class HomeRootSection : Routes.Route() {
|
||||
LinkAnnotation.Clickable(
|
||||
"git_hash",
|
||||
linkInteractionListener = {
|
||||
context.androidContext.openLink("https://codeberg.org/SnapEnhance/SnapEnhance/commit/${BuildConfig.GIT_HASH}")
|
||||
context.androidContext.openLink("https://github.com/rhunk/SnapEnhance/commit/${BuildConfig.GIT_HASH}")
|
||||
}
|
||||
)
|
||||
) {
|
||||
|
@ -576,7 +576,7 @@ class ScriptingRootSection : Routes.Route() {
|
||||
override val topBarActions: @Composable() (RowScope.() -> Unit) = {
|
||||
TopBarActionButton(
|
||||
onClick = {
|
||||
context.androidContext.openLink("https://codeberg.org/SnapEnhance/scripting-docs")
|
||||
context.androidContext.openLink("https://github.com/SnapEnhance/scripting-docs")
|
||||
},
|
||||
icon = Icons.Default.CollectionsBookmark,
|
||||
text = "Documentation",
|
||||
|
@ -30,7 +30,7 @@ android {
|
||||
standardOutput = gitHash
|
||||
}
|
||||
buildConfigField("String", "GIT_HASH", "\"${gitHash.toString(Charsets.UTF_8).trim()}\"")
|
||||
buildConfigField("String", "SIF_ENDPOINT", "\"${properties["debug_sif_endpoint"]?.toString() ?: "https://codeberg.org/SnapEnhance/resources/raw/branch/main/sif"}\"")
|
||||
buildConfigField("String", "SIF_ENDPOINT", "\"${properties["debug_sif_endpoint"]?.toString() ?: "https://github.com/SnapEnhance/resources/raw/refs/heads/main/sif"}\"")
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
|
Loading…
x
Reference in New Issue
Block a user