mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-04-30 06:34:29 +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,
|
0,
|
||||||
Intent().apply {
|
Intent().apply {
|
||||||
action = Intent.ACTION_VIEW
|
action = Intent.ACTION_VIEW
|
||||||
data = "https://codeberg.org/SnapEnhance/resources".toUri()
|
data = "https://github.com/SnapEnhance/resources".toUri()
|
||||||
flags = Intent.FLAG_ACTIVITY_NEW_TASK
|
flags = Intent.FLAG_ACTIVITY_NEW_TASK
|
||||||
},
|
},
|
||||||
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
|
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.layout.*
|
||||||
import androidx.compose.foundation.rememberScrollState
|
import androidx.compose.foundation.rememberScrollState
|
||||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||||
import androidx.compose.foundation.text.ClickableText
|
|
||||||
import androidx.compose.foundation.verticalScroll
|
import androidx.compose.foundation.verticalScroll
|
||||||
import androidx.compose.material.icons.Icons
|
import androidx.compose.material.icons.Icons
|
||||||
import androidx.compose.material.icons.automirrored.filled.Help
|
import androidx.compose.material.icons.automirrored.filled.Help
|
||||||
@ -176,13 +175,6 @@ class HomeRootSection : Routes.Route() {
|
|||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.padding(all = 5.dp)
|
.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(
|
ExternalLinkIcon(
|
||||||
modifier = Modifier.clickable {
|
modifier = Modifier.clickable {
|
||||||
context.androidContext.openLink("https://t.me/snapenhance")
|
context.androidContext.openLink("https://t.me/snapenhance")
|
||||||
@ -279,7 +271,7 @@ class HomeRootSection : Routes.Route() {
|
|||||||
LinkAnnotation.Clickable(
|
LinkAnnotation.Clickable(
|
||||||
"git_hash",
|
"git_hash",
|
||||||
linkInteractionListener = {
|
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) = {
|
override val topBarActions: @Composable() (RowScope.() -> Unit) = {
|
||||||
TopBarActionButton(
|
TopBarActionButton(
|
||||||
onClick = {
|
onClick = {
|
||||||
context.androidContext.openLink("https://codeberg.org/SnapEnhance/scripting-docs")
|
context.androidContext.openLink("https://github.com/SnapEnhance/scripting-docs")
|
||||||
},
|
},
|
||||||
icon = Icons.Default.CollectionsBookmark,
|
icon = Icons.Default.CollectionsBookmark,
|
||||||
text = "Documentation",
|
text = "Documentation",
|
||||||
|
@ -30,7 +30,7 @@ android {
|
|||||||
standardOutput = gitHash
|
standardOutput = gitHash
|
||||||
}
|
}
|
||||||
buildConfigField("String", "GIT_HASH", "\"${gitHash.toString(Charsets.UTF_8).trim()}\"")
|
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 {
|
compileOptions {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user