Skip to content

Commit

Permalink
Release v0.1.4
Browse files Browse the repository at this point in the history
---------------
Dependencies updated.
Using KRecyclerFragment from KUtil library.
  • Loading branch information
jsaura committed Jan 17, 2021
1 parent 9752855 commit 84dd25f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 87 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Change Log
==========
Version 0.1.4 *(2021-01-16)*
----------------------------
Dependencies updated.
Using KRecyclerFragment from KUtil library.

Version 0.1.3 *(2021-01-16)*
----------------------------
Layout renamed to avoid view binding conflict.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ A simple and useful Android Gallery based on [Picasso](https://github.com/square
```gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.jdsdhp:gallery-droid:$version'
implementation "com.github.jdsdhp:kutil:0.1.9"
implementation 'com.github.jdsdhp:gallery-droid:0.1.4'
}
```

Expand Down
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'com.google.android.material:material:1.3.0-beta01'
implementation "com.github.jdsdhp:kutil:0.1.9" //KUtil
implementation project(':gallerydroid')
}
4 changes: 2 additions & 2 deletions gallerydroid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ android {
minSdkVersion 17
targetSdkVersion 30
versionCode 1
versionName "0.1.3"
versionName "0.1.4"
multiDexEnabled = true
consumerProguardFiles "consumer-rules.pro"
vectorDrawables.useSupportLibrary = true
Expand Down Expand Up @@ -63,7 +63,7 @@ dependencies {
implementation "androidx.fragment:fragment-ktx:1.2.5"
implementation "androidx.recyclerview:recyclerview:1.2.0-beta01"

implementation "com.github.jdsdhp:kutil:0.1.6" //KUtil
implementation "com.github.jdsdhp:kutil:0.1.9" //KUtil
implementation 'com.github.chrisbanes:PhotoView:2.3.0' //PhotoView
implementation 'com.squareup.picasso:picasso:2.71828' //Picasso

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ import com.jesusd0897.gallerydroid.view.adapter.PicturesBaseAdapter
import com.jesusd0897.gallerydroid.view.adapter.StaggeredPicturesAdapter
import com.jesusd0897.gallerydroid.view.decoration.GalleryRecyclerDecoration
import com.jesusd0897.gallerydroid.view.viewmodel.GalleryViewModel
import com.jesusd0897.kutil.log
import com.jesusd0897.kutil.model.StatusResource
import com.jesusd0897.kutil.ui.KRecyclerFragment

interface OnPictureItemClickListener {
fun onClick(picture: Picture, position: Int)
fun onLongClick(picture: Picture, position: Int) = Unit
}

class GalleryFragment : RecyclerFragment() {
class GalleryFragment : KRecyclerFragment() {

companion object {
fun newInstance() = GalleryFragment()
Expand Down Expand Up @@ -88,7 +88,6 @@ class GalleryFragment : RecyclerFragment() {
onItemClickListener?.onLongClick(picture, position)
}
}
log("GalleryFragment", "${galleryDroid?.layoutManager}")
adapter =
if (galleryDroid?.layoutManager == GalleryDroid.LAYOUT_STAGGERED_GRID)
StaggeredPicturesAdapter(clickListener)
Expand Down

0 comments on commit 84dd25f

Please sign in to comment.