ShadeUpload turns a shared content:// URI into meta and an upload job; KeystoreSecretFile keeps the owner seed under a Keystore key. The demo app takes SEND/SEND_MULTIPLE of video, images, audio and documents, uploads in a foreground service with progress, and its done notification plays the file or shares the link; the player gets a Share button. The live cross-check also uploads a content:// share under Robolectric. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
47 lines
1.1 KiB
Kotlin
47 lines
1.1 KiB
Kotlin
plugins {
|
|
id("com.android.application")
|
|
kotlin("android")
|
|
}
|
|
|
|
// Demo player for sealed Shade media: open a `…/watch/#shade=…` link and
|
|
// play it with ExoPlayer through `ShadeMediaDataSource`. Debug-signed, for
|
|
// the dev phone; not a product.
|
|
|
|
android {
|
|
namespace = "no.zyon.shade.mediademo"
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
applicationId = "no.zyon.shade.mediademo"
|
|
minSdk = 28 // the owner key lives in the Keystore (:shade-android-keystore)
|
|
targetSdk = 35
|
|
versionCode = 1
|
|
versionName = "4.15.0"
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
}
|
|
}
|
|
|
|
packaging {
|
|
resources.excludes += setOf("META-INF/versions/9/OSGI-INF/MANIFEST.MF")
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":shade-android-media"))
|
|
implementation(project(":shade-android-keystore"))
|
|
implementation("androidx.media3:media3-ui:1.5.1")
|
|
}
|