Skip to content

Commit

Permalink
Merge pull request #27 from amardeshbd/feature/update-versions
Browse files Browse the repository at this point in the history
[UPDATE] Muzei plugin versions and other gradle lib versions
  • Loading branch information
hossain-khan authored Jun 24, 2020
2 parents 2ab5f14 + 066d526 commit 44457f8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Android CI](https://github.com/amardeshbd/android-hk-vision-muzei-plugin/workflows/Android%20CI/badge.svg?branch=master)](https://github.com/amardeshbd/android-hk-vision-muzei-plugin/actions) [![CodeFactor](https://www.codefactor.io/repository/github/amardeshbd/android-hk-vision-muzei-plugin/badge)](https://www.codefactor.io/repository/github/amardeshbd/android-hk-vision-muzei-plugin) [![Muzei.co](https://img.shields.io/badge/muzei.co-API%203.2%2B-blue)](http://api.muzei.co/)
[![Android CI](https://github.com/amardeshbd/android-hk-vision-muzei-plugin/workflows/Android%20CI/badge.svg?branch=master)](https://github.com/amardeshbd/android-hk-vision-muzei-plugin/actions) [![CodeFactor](https://www.codefactor.io/repository/github/amardeshbd/android-hk-vision-muzei-plugin/badge)](https://www.codefactor.io/repository/github/amardeshbd/android-hk-vision-muzei-plugin) [![Muzei.co](https://img.shields.io/badge/muzei.co-API%203.4%2B-blue)](http://api.muzei.co/)

# HK Vision - Muzei Plugin
Muzei wallpaper source plugin for [vision.hossainkhan.com](https://vision.hossainkhan.com/) site.
Expand All @@ -22,7 +22,8 @@ Once installed, go back to **Muzei** app, then the source should show up. Choose
To build and install locally, use following command:

```
./gradlew clean assembleDebug
adb uninstall com.hossainkhan.vision && \
./gradlew clean assembleDebug && \
adb install app/build/outputs/apk/debug/app-debug.apk
```

Expand Down
14 changes: 7 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ android {
applicationId "com.hossainkhan.vision"
minSdkVersion 21
targetSdkVersion 29
versionCode 4
versionName "1.2"
versionCode 5
versionName "1.3"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down Expand Up @@ -67,22 +67,22 @@ android {
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.2.0'
implementation 'androidx.core:core-ktx:1.3.0'
implementation 'androidx.appcompat:appcompat:1.1.0'

// Muzei Plugin
// https://github.com/romannurik/muzei/releases
implementation "com.google.android.apps.muzei:muzei-api:3.2.0"
implementation "com.google.android.apps.muzei:muzei-api:3.4.0-alpha02"

// AndroidX Work Manager
// https://developer.android.com/jetpack/androidx/releases/work
implementation "androidx.work:work-runtime-ktx:2.3.4"

// Retrofit for web API access
// https://github.com/square/retrofit
implementation "com.squareup.retrofit2:retrofit:2.7.1"
implementation "com.squareup.retrofit2:retrofit:2.9.0"
// JSON Converter - https://github.com/square/moshi/
implementation "com.squareup.retrofit2:converter-moshi:2.7.1"
implementation "com.squareup.retrofit2:converter-moshi:2.7.2"

// Firebase Google Analytics
// https://firebase.google.com/docs/analytics/get-started?platform=android
Expand All @@ -91,7 +91,7 @@ dependencies {

// Add the Firebase Crashlytics SDK.
// https://firebase.google.com/docs/crashlytics/get-started?platform=android
implementation "com.google.firebase:firebase-crashlytics:17.0.0"
implementation "com.google.firebase:firebase-crashlytics:17.1.0"

//
// Unit tests and related libraries
Expand Down
15 changes: 8 additions & 7 deletions app/src/main/java/com/hossainkhan/vision/data/HkVisionWorker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,14 @@ class HkVisionWorker constructor(
visionPhotos.featuredPhotos
.plus(visionPhotos.blogPhotos)
.map { photo ->
Artwork().apply {
token = photo.rawSource
title = photo.title
byline = photo.subtitle
persistentUri = photo.rawSource.toUri()
webUri = photo.webUrl.toUri()
}
Artwork(
token = photo.rawSource,
title = photo.title,
byline = photo.subtitle,
persistentUri = photo.rawSource.toUri(),
webUri = photo.webUrl.toUri(),
attribution = "H.K. Vision (vision.hossainkhan.com)"
)
})

return Result.success()
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ buildscript {
classpath "com.google.gms:google-services:4.3.3"

// Add the Crashlytics Gradle plugin.
classpath "com.google.firebase:firebase-crashlytics-gradle:2.1.1"
classpath "com.google.firebase:firebase-crashlytics-gradle:2.2.0"

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down

0 comments on commit 44457f8

Please sign in to comment.