Skip to content

Commit

Permalink
download fixes;
Browse files Browse the repository at this point in the history
  • Loading branch information
truefedex committed Oct 20, 2021
1 parent 600ec9d commit a988121
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
18 changes: 9 additions & 9 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ if (localPropertiesFile.exists()) {
}

android {
compileSdkVersion(30)
compileSdk = 30
buildToolsVersion = "30.0.3"

defaultConfig {
applicationId = "com.phlox.tvwebbrowser"
minSdkVersion(21)
targetSdkVersion(30)
minSdk = 21
targetSdk = 30
versionCode = 45
versionName = "1.6.1"

Expand All @@ -42,7 +42,7 @@ android {
}
buildTypes {
getByName("release") {
isDebuggable = false
isDebuggable = true
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
signingConfig=signingConfigs.getByName("release")
Expand All @@ -62,7 +62,7 @@ android {
}
}

lintOptions {
lint {
isAbortOnError = false
}

Expand All @@ -82,9 +82,9 @@ dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))

implementation("androidx.appcompat:appcompat:1.3.1")
implementation("androidx.constraintlayout:constraintlayout:2.1.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.1")

implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.21")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3-native-mt")

implementation("androidx.lifecycle:lifecycle-extensions:2.2.0")
Expand All @@ -102,8 +102,8 @@ dependencies {
implementation("de.halfbit:pinned-section-listview:1.0.0")

//appstore-dependent dependencies
"googleImplementation"("com.google.firebase:firebase-core:19.0.0")
"googleImplementation"("com.google.firebase:firebase-crashlytics-ktx:18.2.1")
"googleImplementation"("com.google.firebase:firebase-core:19.0.2")
"googleImplementation"("com.google.firebase:firebase-crashlytics-ktx:18.2.3")
}

tasks.getByName("check").dependsOn("lint")
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
android:usesCleartextTraffic="true"
android:screenOrientation="sensor"
android:theme="@style/AppTheme"
android:requestLegacyExternalStorage="true"
tools:targetApi="m">
<activity
android:name=".activity.main.MainActivity"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ object DownloadUtils {
}
}
} else {
if (mimeType != null) {
if (mimeType != null && "application/octet-stream" != mimeType) {
// Compare the last segment of the extension against the mime type.
// If there's a mismatch, discard the entire extension.
val lastDotIndex = filename.lastIndexOf('.')
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
}
dependencies {
val kotlinVersion = "1.5.21"
classpath("com.android.tools.build:gradle:7.0.1")
classpath("com.android.tools.build:gradle:7.0.3")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("com.google.gms:google-services:4.3.10")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.7.1")
Expand Down

0 comments on commit a988121

Please sign in to comment.