forked from jobobby04/TachiyomiSY
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
51 changed files
with
1,783 additions
and
5 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
{ | ||
"version": 3, | ||
"artifactType": { | ||
"type": "APK", | ||
"kind": "Directory" | ||
}, | ||
"applicationId": "eu.kanade.tachiyomi.sy", | ||
"variantName": "devRelease", | ||
"elements": [ | ||
{ | ||
"type": "UNIVERSAL", | ||
"filters": [], | ||
"attributes": [], | ||
"versionCode": 67, | ||
"versionName": "1.10.5", | ||
"outputFile": "app-dev-universal-release.apk" | ||
}, | ||
{ | ||
"type": "ONE_OF_MANY", | ||
"filters": [ | ||
{ | ||
"filterType": "ABI", | ||
"value": "x86" | ||
} | ||
], | ||
"attributes": [], | ||
"versionCode": 67, | ||
"versionName": "1.10.5", | ||
"outputFile": "app-dev-x86-release.apk" | ||
}, | ||
{ | ||
"type": "ONE_OF_MANY", | ||
"filters": [ | ||
{ | ||
"filterType": "ABI", | ||
"value": "arm64-v8a" | ||
} | ||
], | ||
"attributes": [], | ||
"versionCode": 67, | ||
"versionName": "1.10.5", | ||
"outputFile": "app-dev-arm64-v8a-release.apk" | ||
}, | ||
{ | ||
"type": "ONE_OF_MANY", | ||
"filters": [ | ||
{ | ||
"filterType": "ABI", | ||
"value": "armeabi-v7a" | ||
} | ||
], | ||
"attributes": [], | ||
"versionCode": 67, | ||
"versionName": "1.10.5", | ||
"outputFile": "app-dev-armeabi-v7a-release.apk" | ||
}, | ||
{ | ||
"type": "ONE_OF_MANY", | ||
"filters": [ | ||
{ | ||
"filterType": "ABI", | ||
"value": "x86_64" | ||
} | ||
], | ||
"attributes": [], | ||
"versionCode": 67, | ||
"versionName": "1.10.5", | ||
"outputFile": "app-dev-x86_64-release.apk" | ||
} | ||
], | ||
"elementType": "File", | ||
"baselineProfiles": [ | ||
{ | ||
"minApi": 28, | ||
"maxApi": 30, | ||
"baselineProfiles": [ | ||
"baselineProfiles/1/app-dev-universal-release.dm", | ||
"baselineProfiles/1/app-dev-x86-release.dm", | ||
"baselineProfiles/1/app-dev-arm64-v8a-release.dm", | ||
"baselineProfiles/1/app-dev-armeabi-v7a-release.dm", | ||
"baselineProfiles/1/app-dev-x86_64-release.dm" | ||
] | ||
}, | ||
{ | ||
"minApi": 31, | ||
"maxApi": 2147483647, | ||
"baselineProfiles": [ | ||
"baselineProfiles/0/app-dev-universal-release.dm", | ||
"baselineProfiles/0/app-dev-x86-release.dm", | ||
"baselineProfiles/0/app-dev-arm64-v8a-release.dm", | ||
"baselineProfiles/0/app-dev-armeabi-v7a-release.dm", | ||
"baselineProfiles/0/app-dev-x86_64-release.dm" | ||
] | ||
} | ||
], | ||
"minSdkVersionForDexing": 23 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
app/src/main/java/eu/kanade/domain/connections/service/ConnectionsPreferences.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package eu.kanade.domain.connections.service | ||
|
||
import eu.kanade.tachiyomi.data.connections.ConnectionsService | ||
import tachiyomi.core.common.preference.PreferenceStore | ||
|
||
class ConnectionsPreferences( | ||
private val preferenceStore: PreferenceStore, | ||
) { | ||
fun connectionsUsername(sync: ConnectionsService) = preferenceStore.getString( | ||
connectionsUsername(sync.id), | ||
"", | ||
) | ||
|
||
fun connectionsPassword(sync: ConnectionsService) = preferenceStore.getString( | ||
connectionsPassword(sync.id), | ||
"", | ||
) | ||
|
||
fun setConnectionsCredentials(sync: ConnectionsService, username: String, password: String) { | ||
connectionsUsername(sync).set(username) | ||
connectionsPassword(sync).set(password) | ||
} | ||
|
||
fun connectionsToken(sync: ConnectionsService) = preferenceStore.getString(connectionsToken(sync.id), "") | ||
|
||
fun enableDiscordRPC() = preferenceStore.getBoolean("pref_enable_discord_rpc", false) | ||
|
||
fun discordRPCStatus() = preferenceStore.getInt("pref_discord_rpc_status", 1) | ||
|
||
fun discordRPCIncognito() = preferenceStore.getBoolean("pref_discord_rpc_incognito", false) | ||
|
||
fun discordRPCIncognitoCategories() = preferenceStore.getStringSet("discord_rpc_incognito_categories", emptySet()) | ||
|
||
fun useChapterTitles() = preferenceStore.getBoolean("pref_discord_rpc_use_chapter_titles", true) | ||
|
||
companion object { | ||
|
||
fun connectionsUsername(syncId: Long) = "pref_connections_username_$syncId" | ||
|
||
private fun connectionsPassword(syncId: Long) = "pref_connections_password_$syncId" | ||
|
||
private fun connectionsToken(syncId: Long) = "connection_token_$syncId" | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
app/src/main/java/eu/kanade/presentation/components/ConnectionLogoIcon.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package eu.kanade.presentation.components | ||
|
||
import androidx.compose.foundation.Image | ||
import androidx.compose.foundation.background | ||
import androidx.compose.foundation.layout.Box | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.foundation.layout.size | ||
import androidx.compose.material3.MaterialTheme | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Alignment | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.graphics.Color | ||
import androidx.compose.ui.res.painterResource | ||
import androidx.compose.ui.unit.dp | ||
import eu.kanade.tachiyomi.data.connections.ConnectionsService | ||
import tachiyomi.presentation.core.i18n.stringResource | ||
import tachiyomi.presentation.core.util.clickableNoIndication | ||
|
||
@Composable | ||
fun ConnectionsLogoIcon( | ||
service: ConnectionsService, | ||
onClick: (() -> Unit)? = null, | ||
) { | ||
val modifier = if (onClick != null) { | ||
Modifier.clickableNoIndication(onClick = onClick) | ||
} else { | ||
Modifier | ||
} | ||
|
||
Box( | ||
modifier = modifier | ||
.size(48.dp) | ||
.background(color = Color(service.getLogoColor()), shape = MaterialTheme.shapes.medium) | ||
.padding(4.dp), | ||
contentAlignment = Alignment.Center, | ||
) { | ||
Image( | ||
painter = painterResource(service.getLogo()), | ||
contentDescription = stringResource(service.nameRes()), | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.