feat: Discord Rich Presence ueber das Discord Social SDK (v1.1.0)
This commit is contained in:
+18
-2
@@ -19,12 +19,25 @@ android {
|
||||
applicationId = "de.fojadrachi.playtube"
|
||||
minSdk = 26
|
||||
targetSdk = 36
|
||||
versionCode = 1
|
||||
versionName = "1.0.0"
|
||||
versionCode = 2
|
||||
versionName = "1.1.0"
|
||||
|
||||
// Update-Quelle: eigener Gitea-Server (kein GitHub/Google Play).
|
||||
buildConfigField("String", "UPDATE_SERVER", "\"https://git.fojadrachi.de\"")
|
||||
buildConfigField("String", "REPO_SLUG", "\"Fojadrachi/Playtube-Android\"")
|
||||
// Discord-Anwendung von Playtube (gleiche wie in der Desktop-Version; die ID ist oeffentlich).
|
||||
buildConfigField("long", "DISCORD_APPLICATION_ID", "1548023494976086127L")
|
||||
|
||||
// Discord liefert nur diese ABIs mit; x86 wird nur von Emulatoren gebraucht.
|
||||
ndk { abiFilters += listOf("arm64-v8a", "armeabi-v7a") }
|
||||
}
|
||||
|
||||
ndkVersion = "29.0.14206865"
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
path = file("src/main/cpp/CMakeLists.txt")
|
||||
version = "3.31.6"
|
||||
}
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
@@ -47,6 +60,7 @@ android {
|
||||
|
||||
buildFeatures {
|
||||
buildConfig = true
|
||||
prefab = true
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
@@ -64,6 +78,8 @@ dependencies {
|
||||
implementation("androidx.appcompat:appcompat:1.7.0")
|
||||
implementation("androidx.webkit:webkit:1.12.1")
|
||||
implementation("androidx.media:media:1.7.0")
|
||||
// Discord Social SDK (Rich Presence): nicht im Repo, siehe README "Discord-SDK".
|
||||
implementation(files("../libs/discord_partner_sdk.aar"))
|
||||
|
||||
testImplementation("junit:junit:4.13.2")
|
||||
// Auf der JVM sind die org.json-Klassen von Android nur Attrappen - echte Bibliothek fuer Tests.
|
||||
|
||||
Reference in New Issue
Block a user