Compare commits

...

4 commits

Author SHA1 Message Date
0206e47434
Ignore lint checks for dependency version updates
All checks were successful
Build & Test / Validate (pull_request) Successful in 19s
Build & Test / Run Unit Tests (pull_request) Successful in 7m10s
Build & Test / Validate (push) Successful in 20s
Build & Test / Run Unit Tests (push) Successful in 7m42s
Renovate bot is handling this now, no need to fail builds for it
2024-10-01 21:25:44 -06:00
4e0c8ffc00
Bump version for release
Some checks failed
Build & Test / Validate (pull_request) Successful in 17s
Build & Test / Run Unit Tests (pull_request) Failing after 7m17s
2024-09-04 20:11:36 -06:00
d14b747ff1
Explicitly set mime type when sharing PDFs 2024-09-04 20:00:45 -06:00
eb29dffbc1
Remove arbitrary delay when creating PDF 2024-09-04 20:00:05 -06:00
3 changed files with 4 additions and 4 deletions

View file

@ -12,8 +12,8 @@ android {
applicationId = "com.wbrawner.skerge" applicationId = "com.wbrawner.skerge"
minSdk = libs.versions.minSdk.get().toInt() minSdk = libs.versions.minSdk.get().toInt()
targetSdk = libs.versions.maxSdk.get().toInt() targetSdk = libs.versions.maxSdk.get().toInt()
versionCode = 1 versionCode = 2
versionName = "1.0" versionName = "1.1"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables { vectorDrawables {
@ -45,6 +45,7 @@ android {
compose = true compose = true
} }
lint { lint {
disable += listOf("AndroidGradlePluginVersion", "GradleDependency")
warningsAsErrors = true warningsAsErrors = true
} }
} }

View file

@ -90,7 +90,6 @@ class MainActivity : ComponentActivity() {
addButtonClicked = viewModel::requestScan, addButtonClicked = viewModel::requestScan,
shareButtonClicked = { shareButtonClicked = {
pdfShareJob = coroutineScope.launch { pdfShareJob = coroutineScope.launch {
delay(10_000)
val file = if (pages.size == 1) { val file = if (pages.size == 1) {
pages.first().file ?: return@launch pages.first().file ?: return@launch
} else { } else {

View file

@ -41,7 +41,7 @@ fun File.buildShareIntent(context: Context): Intent =
"com.wbrawner.skerge.pdfprovider", "com.wbrawner.skerge.pdfprovider",
this@buildShareIntent this@buildShareIntent
) )
data = uri setDataAndTypeAndNormalize(uri, "application/pdf")
putExtra(Intent.EXTRA_STREAM, uri) putExtra(Intent.EXTRA_STREAM, uri)
addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION) addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
}, name) }, name)