Skip to content

Commit

Permalink
Update Work dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldrabik committed Apr 26, 2023
1 parent 8226b3e commit d3e4f57
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
22 changes: 11 additions & 11 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "com.michaldrabik.muzeipixelartextension"
minSdkVersion 21
targetSdkVersion 33
versionCode 14
versionName "1.2.1"
versionCode 15
versionName "1.2.2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

def authorityValue = "com.michaldrabik.muzeipixelartextensionauthority"
Expand Down Expand Up @@ -66,18 +66,18 @@ dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'android.arch.work:work-runtime:1.0.1'
implementation "androidx.appcompat:appcompat:1.6.1"
implementation "androidx.work:work-runtime-ktx:2.8.1"

implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-moshi:2.9.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0'
implementation "com.squareup.retrofit2:retrofit:2.9.0"
implementation "com.squareup.retrofit2:converter-moshi:2.9.0"
implementation "com.squareup.okhttp3:logging-interceptor:4.10.0"

implementation 'com.google.android.apps.muzei:muzei-api:3.4.1'
implementation 'com.google.firebase:firebase-crashlytics:18.3.6'
implementation 'com.google.firebase:firebase-analytics:21.2.2'
implementation "com.google.android.apps.muzei:muzei-api:3.4.1"
implementation "com.google.firebase:firebase-crashlytics:18.3.6"
implementation "com.google.firebase:firebase-analytics:21.2.2"

testImplementation 'junit:junit:4.13.2'
testImplementation "junit:junit:4.13.2"
}

def getLocalProperty(String fileName, String propertyName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ class PixelArtProvider : MuzeiArtProvider() {
private const val COMMAND_DOWNLOAD_ID = 1
}

private val workManager by lazy { WorkManager.getInstance() }

override fun onLoadRequested(initial: Boolean) {
workManager.enqueue(PixelArtWorker.createRequest())
context?.let {
WorkManager.getInstance(it).enqueue(PixelArtWorker.createRequest())
}
}

/* kept for backward compatibility with Muzei 3.3 */
Expand Down Expand Up @@ -56,7 +56,7 @@ class PixelArtProvider : MuzeiArtProvider() {
IconCompat.createWithResource(context, R.drawable.muzei_launch_command),
context.getString(R.string.text_download),
context.getString(R.string.text_download),
PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_IMMUTABLE)
PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE)
).apply {
setShouldShowIcon(false)
}
Expand Down

0 comments on commit d3e4f57

Please sign in to comment.