Skip to content

Commit

Permalink
Updated libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
banasiak committed Dec 27, 2020
1 parent 2062c36 commit 2df5dc1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
18 changes: 9 additions & 9 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 29
compileSdkVersion 30

defaultConfig {
applicationId "com.banasiak.android.muzeisaver"
minSdkVersion 21
targetSdkVersion 29
versionCode 8
versionName "3.0.0"
targetSdkVersion 30
versionCode 9
versionName "3.1.0"
}
buildTypes {
release {
Expand All @@ -29,11 +29,11 @@ android {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4'
implementation 'androidx.core:core-ktx:1.1.0'
implementation 'com.google.android.apps.muzei:muzei-api:3.2.0'
implementation 'com.google.android.material:material:1.2.0-alpha03'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.0-alpha2'
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'com.google.android.apps.muzei:muzei-api:3.4.0'
implementation 'com.google.android.material:material:1.3.0-beta01'
implementation 'com.jakewharton.timber:timber:4.7.1'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,16 @@ class MuzeiSaverApp : Application() {
Timber.plant(Timber.DebugTree())
StrictMode.setThreadPolicy(StrictMode.ThreadPolicy.Builder()
.detectNetwork()
.detectResourceMismatches()
.detectUnbufferedIo()
.also {
if (isAndroidM) it.detectResourceMismatches()
if (isAndroidO) it.detectUnbufferedIo()
}
.penaltyLog()
.penaltyDeath()
.build())

StrictMode.setVmPolicy(StrictMode.VmPolicy.Builder()
.detectAll()
.penaltyLog()
.penaltyDeath()
.build())
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ class DownloadActivity : AppCompatActivity() {
return
}
Intent(this, DownloadService::class.java)
.setFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION)
.also {
it.data = data?.data
startService(it)
it.flags = Intent.FLAG_GRANT_WRITE_URI_PERMISSION
it.data = data?.data
startService(it)
}
finish()
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.3.61'
ext.kotlin_version = '1.4.21'
repositories {
google()
jcenter()
Expand Down

0 comments on commit 2df5dc1

Please sign in to comment.