From c3b0427adc416a8985243ddd5aba876749b373dc Mon Sep 17 00:00:00 2001 From: sangcomz Date: Wed, 6 Mar 2019 23:16:05 +0900 Subject: [PATCH 1/5] feat (fishbun): update picasso, glide, gradle version (#139) --- .../fishbun/adapter/image/ImageAdapter.java | 5 ++--- .../adapter/image/impl/GlideAdapter.java | 17 ++++++----------- .../adapter/image/impl/PicassoAdapter.java | 10 ++++------ .../fishbun/adapter/view/AlbumListAdapter.java | 4 +--- .../adapter/view/DetailViewPagerAdapter.java | 4 +--- .../fishbun/adapter/view/PickerGridAdapter.java | 6 ++---- .../com/sangcomz/fishbundemo/ImageAdapter.java | 2 +- .../sangcomz/fishbundemo/ImageController.java | 7 ++----- .../com/sangcomz/fishbundemo/SubFragment.java | 2 +- .../fishbundemo/WithActivityActivity.java | 3 ++- build.gradle | 7 +++---- gradle/wrapper/gradle-wrapper.properties | 4 ++-- 12 files changed, 27 insertions(+), 44 deletions(-) diff --git a/FishBun/src/main/java/com/sangcomz/fishbun/adapter/image/ImageAdapter.java b/FishBun/src/main/java/com/sangcomz/fishbun/adapter/image/ImageAdapter.java index f09db3be..aca3f1df 100644 --- a/FishBun/src/main/java/com/sangcomz/fishbun/adapter/image/ImageAdapter.java +++ b/FishBun/src/main/java/com/sangcomz/fishbun/adapter/image/ImageAdapter.java @@ -1,6 +1,5 @@ package com.sangcomz.fishbun.adapter.image; -import android.content.Context; import android.net.Uri; import android.widget.ImageView; @@ -9,6 +8,6 @@ */ public interface ImageAdapter { - void loadImage(Context context, ImageView target, Uri loadUrl); - void loadDetailImage(Context context, ImageView target, Uri loadUrl); + void loadImage(ImageView target, Uri loadUrl); + void loadDetailImage(ImageView target, Uri loadUrl); } diff --git a/FishBun/src/main/java/com/sangcomz/fishbun/adapter/image/impl/GlideAdapter.java b/FishBun/src/main/java/com/sangcomz/fishbun/adapter/image/impl/GlideAdapter.java index 5a13724c..ba3e77b7 100644 --- a/FishBun/src/main/java/com/sangcomz/fishbun/adapter/image/impl/GlideAdapter.java +++ b/FishBun/src/main/java/com/sangcomz/fishbun/adapter/image/impl/GlideAdapter.java @@ -1,6 +1,5 @@ package com.sangcomz.fishbun.adapter.image.impl; -import android.content.Context; import android.net.Uri; import android.widget.ImageView; @@ -14,24 +13,20 @@ public class GlideAdapter implements ImageAdapter { @Override - public void loadImage(Context context, - ImageView target, - Uri loadUrl) { - RequestOptions options = new RequestOptions(); - options.centerCrop(); + public void loadImage(ImageView target, Uri loadUrl) { + RequestOptions options = new RequestOptions().centerCrop(); Glide - .with(context) + .with(target.getContext()) .load(loadUrl) .apply(options) .into(target); } @Override - public void loadDetailImage(Context context, ImageView target, Uri loadUrl) { - RequestOptions options = new RequestOptions(); - options.centerInside(); + public void loadDetailImage(ImageView target, Uri loadUrl) { + RequestOptions options = new RequestOptions().centerInside(); Glide - .with(context) + .with(target.getContext()) .load(loadUrl) .apply(options) .into(target); diff --git a/FishBun/src/main/java/com/sangcomz/fishbun/adapter/image/impl/PicassoAdapter.java b/FishBun/src/main/java/com/sangcomz/fishbun/adapter/image/impl/PicassoAdapter.java index 190afc19..2c4c7ea9 100644 --- a/FishBun/src/main/java/com/sangcomz/fishbun/adapter/image/impl/PicassoAdapter.java +++ b/FishBun/src/main/java/com/sangcomz/fishbun/adapter/image/impl/PicassoAdapter.java @@ -1,6 +1,5 @@ package com.sangcomz.fishbun.adapter.image.impl; -import android.content.Context; import android.net.Uri; import android.widget.ImageView; @@ -13,9 +12,9 @@ public class PicassoAdapter implements ImageAdapter { @Override - public void loadImage(Context context, ImageView target, Uri loadUrl) { + public void loadImage(ImageView target, Uri loadUrl) { Picasso - .with(context) + .get() .load(loadUrl) .fit() .centerCrop() @@ -23,9 +22,8 @@ public void loadImage(Context context, ImageView target, Uri loadUrl) { } @Override - public void loadDetailImage(Context context, ImageView target, Uri loadUrl) { - Picasso - .with(context) + public void loadDetailImage(ImageView target, Uri loadUrl) { + Picasso.get() .load(loadUrl) .fit() .centerInside() diff --git a/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/AlbumListAdapter.java b/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/AlbumListAdapter.java index 4d6392dd..5669f268 100644 --- a/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/AlbumListAdapter.java +++ b/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/AlbumListAdapter.java @@ -48,9 +48,7 @@ public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { public void onBindViewHolder(final ViewHolder holder, final int position) { holder.imgAlbumThumb.setImageDrawable(null); Fishton.getInstance().imageAdapter - .loadImage(holder.imgAlbumThumb.getContext(), - holder.imgAlbumThumb, - Uri.parse(albumList.get(position).thumbnailPath)); + .loadImage(holder.imgAlbumThumb, Uri.parse(albumList.get(position).thumbnailPath)); holder.view.setTag(albumList.get(position)); Album a = (Album) holder.view.getTag(); diff --git a/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/DetailViewPagerAdapter.java b/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/DetailViewPagerAdapter.java index 726c797c..2ed3c09a 100644 --- a/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/DetailViewPagerAdapter.java +++ b/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/DetailViewPagerAdapter.java @@ -39,9 +39,7 @@ public Object instantiateItem(ViewGroup container, int position) { fishton .imageAdapter - .loadDetailImage(itemView.getContext(), - imageView, - images[position]); + .loadDetailImage(imageView, images[position]); return itemView; } diff --git a/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/PickerGridAdapter.java b/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/PickerGridAdapter.java index 4bb6735a..594e3f8f 100644 --- a/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/PickerGridAdapter.java +++ b/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/PickerGridAdapter.java @@ -88,9 +88,7 @@ public void onClick(View v) { initState(fishton.selectedImages.indexOf(image), vh); if (image != null) Fishton.getInstance().imageAdapter - .loadImage(vh.imgThumbImage.getContext(), - vh.imgThumbImage, - image); + .loadImage(vh.imgThumbImage, image); vh.btnThumbCount.setOnClickListener(new View.OnClickListener() { @@ -257,7 +255,7 @@ public ViewHolderImage(View view) { super(view); item = view; imgThumbImage = view.findViewById(R.id.img_thumb_image); - btnThumbCount = view.findViewById(R.id.btn_thumb_count); + btnThumbCount = view.findViewById(R.id.btn_thumb_count); } } diff --git a/FishBunDemo/src/main/java/com/sangcomz/fishbundemo/ImageAdapter.java b/FishBunDemo/src/main/java/com/sangcomz/fishbundemo/ImageAdapter.java index 892926f0..d56c21dd 100644 --- a/FishBunDemo/src/main/java/com/sangcomz/fishbundemo/ImageAdapter.java +++ b/FishBunDemo/src/main/java/com/sangcomz/fishbundemo/ImageAdapter.java @@ -37,7 +37,7 @@ public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { public void onBindViewHolder(final ViewHolder holder, final int position) { final Uri imagePath = imagePaths.get(position); Picasso - .with(context) + .get() .load(imagePath) .fit() .centerCrop() diff --git a/FishBunDemo/src/main/java/com/sangcomz/fishbundemo/ImageController.java b/FishBunDemo/src/main/java/com/sangcomz/fishbundemo/ImageController.java index 94a8e050..4669e51d 100644 --- a/FishBunDemo/src/main/java/com/sangcomz/fishbundemo/ImageController.java +++ b/FishBunDemo/src/main/java/com/sangcomz/fishbundemo/ImageController.java @@ -1,6 +1,5 @@ package com.sangcomz.fishbundemo; -import android.content.Context; import android.net.Uri; import android.widget.ImageView; @@ -10,17 +9,15 @@ * Created by sangc on 2015-11-06. */ class ImageController { - Context context; ImageView imgMain; - ImageController(Context context, ImageView imgMain) { - this.context = context; + ImageController(ImageView imgMain) { this.imgMain = imgMain; } void setImgMain(Uri path) { Picasso - .with(context) + .get() .load(path) .fit() .centerCrop() diff --git a/FishBunDemo/src/main/java/com/sangcomz/fishbundemo/SubFragment.java b/FishBunDemo/src/main/java/com/sangcomz/fishbundemo/SubFragment.java index 107a49e1..87047110 100644 --- a/FishBunDemo/src/main/java/com/sangcomz/fishbundemo/SubFragment.java +++ b/FishBunDemo/src/main/java/com/sangcomz/fishbundemo/SubFragment.java @@ -44,7 +44,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, recyclerView = (RecyclerView) rootView.findViewById(R.id.recyclerview); btnAddImages = (Button) rootView.findViewById(R.id.btn_add_images); linearLayoutManager = new LinearLayoutManager(getActivity(), LinearLayoutManager.HORIZONTAL, false); - withActivityController = new ImageController(getActivity(), imgMain); + withActivityController = new ImageController(imgMain); imageAdapter = new ImageAdapter(getActivity(), withActivityController, path); recyclerView.setLayoutManager(linearLayoutManager); recyclerView.setAdapter(imageAdapter); diff --git a/FishBunDemo/src/main/java/com/sangcomz/fishbundemo/WithActivityActivity.java b/FishBunDemo/src/main/java/com/sangcomz/fishbundemo/WithActivityActivity.java index fba85485..866e9287 100644 --- a/FishBunDemo/src/main/java/com/sangcomz/fishbundemo/WithActivityActivity.java +++ b/FishBunDemo/src/main/java/com/sangcomz/fishbundemo/WithActivityActivity.java @@ -14,6 +14,7 @@ import android.widget.ImageView; import com.sangcomz.fishbun.FishBun; +import com.sangcomz.fishbun.FishBunCreator; import com.sangcomz.fishbun.adapter.image.impl.GlideAdapter; import com.sangcomz.fishbun.adapter.image.impl.PicassoAdapter; import com.sangcomz.fishbun.define.Define; @@ -38,7 +39,7 @@ protected void onCreate(Bundle savedInstanceState) { imgMain = findViewById(R.id.img_main); recyclerView = findViewById(R.id.recyclerview); linearLayoutManager = new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false); - mainController = new ImageController(this, imgMain); + mainController = new ImageController(imgMain); imageAdapter = new ImageAdapter(this, mainController, path); recyclerView.setLayoutManager(linearLayoutManager); recyclerView.setAdapter(imageAdapter); diff --git a/build.gradle b/build.gradle index 1b8f8ebc..fa60619a 100644 --- a/build.gradle +++ b/build.gradle @@ -4,9 +4,8 @@ buildscript { ext { support_version = '28.0.0' - picasso_version = '2.5.2' - glide_version = '4.8.0' - fresco_version = '1.3.0' + picasso_version = '2.71828' + glide_version = '4.9.0' constraint_version = '1.1.3' } repositories { @@ -14,7 +13,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:3.2.1' + classpath 'com.android.tools.build:gradle:3.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 81f89b36..22e081fd 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Sat Dec 29 18:30:33 KST 2018 +#Wed Mar 06 22:49:29 KST 2019 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip From 980f11600bd925fc6581059b5a1f7c7164dc815d Mon Sep 17 00:00:00 2001 From: sangcomz Date: Sun, 10 Mar 2019 00:07:43 +0900 Subject: [PATCH 2/5] chore (fishbun): update android gradle plugin --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index fa60619a..8e25576d 100644 --- a/build.gradle +++ b/build.gradle @@ -13,7 +13,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:3.3.1' + classpath 'com.android.tools.build:gradle:3.3.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } From 30a3ef8b736e99474d9400761fb3bf54b4d8f8d7 Mon Sep 17 00:00:00 2001 From: sangcomz Date: Sun, 10 Mar 2019 00:25:53 +0900 Subject: [PATCH 3/5] fix (ImageAdapter): fix loadImage NullPointerException (#138) --- .../fishbun/adapter/view/AlbumListAdapter.java | 13 +++++++++---- .../adapter/view/DetailViewPagerAdapter.java | 12 ++++++++---- .../fishbun/adapter/view/PickerGridAdapter.java | 3 ++- FishBun/src/main/res/layout/detail_item.xml | 4 ++-- 4 files changed, 21 insertions(+), 11 deletions(-) diff --git a/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/AlbumListAdapter.java b/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/AlbumListAdapter.java index 5669f268..866d1f3d 100644 --- a/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/AlbumListAdapter.java +++ b/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/AlbumListAdapter.java @@ -4,6 +4,7 @@ import android.content.Context; import android.content.Intent; import android.net.Uri; +import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; @@ -45,10 +46,14 @@ public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { } @Override - public void onBindViewHolder(final ViewHolder holder, final int position) { + public void onBindViewHolder(@NonNull final ViewHolder holder, final int position) { holder.imgAlbumThumb.setImageDrawable(null); - Fishton.getInstance().imageAdapter - .loadImage(holder.imgAlbumThumb, Uri.parse(albumList.get(position).thumbnailPath)); + + Uri loadUrl = Uri.parse(albumList.get(position).thumbnailPath); + + if (holder.imgAlbumThumb != null && loadUrl != null) + Fishton.getInstance().imageAdapter + .loadImage(holder.imgAlbumThumb, loadUrl); holder.view.setTag(albumList.get(position)); Album a = (Album) holder.view.getTag(); @@ -93,7 +98,7 @@ public ViewHolder(View view, int albumSize) { imgAlbumThumb.setLayoutParams(new LinearLayout.LayoutParams(albumSize, albumSize)); txtAlbumName = view.findViewById(R.id.txt_album_name); - txtAlbumCount = view.findViewById(R.id.txt_album_count); + txtAlbumCount = view.findViewById(R.id.txt_album_count); } } } diff --git a/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/DetailViewPagerAdapter.java b/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/DetailViewPagerAdapter.java index 2ed3c09a..3241ae8f 100644 --- a/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/DetailViewPagerAdapter.java +++ b/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/DetailViewPagerAdapter.java @@ -1,6 +1,7 @@ package com.sangcomz.fishbun.adapter.view; import android.net.Uri; +import android.support.annotation.NonNull; import android.support.constraint.ConstraintLayout; import android.support.v4.view.PagerAdapter; import android.support.v4.view.ViewPager; @@ -29,17 +30,20 @@ public DetailViewPagerAdapter(LayoutInflater inflater, Uri[] images) { } + @NonNull @Override - public Object instantiateItem(ViewGroup container, int position) { + public Object instantiateItem(@NonNull ViewGroup container, int position) { View itemView = inflater.inflate(R.layout.detail_item, container, false); container.addView(itemView); TouchImageView imageView = itemView.findViewById(R.id.img_detail_image); - fishton - .imageAdapter - .loadDetailImage(imageView, images[position]); + if (imageView != null + && images[position] != null) + fishton + .imageAdapter + .loadDetailImage(imageView, images[position]); return itemView; } diff --git a/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/PickerGridAdapter.java b/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/PickerGridAdapter.java index 594e3f8f..66444ec8 100644 --- a/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/PickerGridAdapter.java +++ b/FishBun/src/main/java/com/sangcomz/fishbun/adapter/view/PickerGridAdapter.java @@ -86,7 +86,8 @@ public void onClick(View v) { vh.btnThumbCount.setTextColor(fishton.colorActionBarTitle); initState(fishton.selectedImages.indexOf(image), vh); - if (image != null) + if (image != null + && vh.imgThumbImage != null) Fishton.getInstance().imageAdapter .loadImage(vh.imgThumbImage, image); diff --git a/FishBun/src/main/res/layout/detail_item.xml b/FishBun/src/main/res/layout/detail_item.xml index f2dbf734..7f115b8b 100644 --- a/FishBun/src/main/res/layout/detail_item.xml +++ b/FishBun/src/main/res/layout/detail_item.xml @@ -8,10 +8,10 @@ android:id="@+id/img_detail_image" android:layout_width="0dp" android:layout_height="0dp" - android:layout_marginBottom="0dp" android:layout_marginLeft="0dp" - android:layout_marginRight="0dp" android:layout_marginTop="0dp" + android:layout_marginRight="0dp" + android:layout_marginBottom="0dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" From d2c4015955136d2f0ad45ea5c37c174c68e45470 Mon Sep 17 00:00:00 2001 From: sangcomz Date: Sun, 10 Mar 2019 00:52:53 +0900 Subject: [PATCH 4/5] fix (DetailActivity): fix detail view null pointer exception (#137) --- .../com/sangcomz/fishbun/permission/PermissionCheck.java | 6 +++--- .../com/sangcomz/fishbun/ui/detail/DetailActivity.java | 7 +++++++ FishBun/src/main/res/values-ko/strings.xml | 4 +++- FishBun/src/main/res/values/strings.xml | 4 +++- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/FishBun/src/main/java/com/sangcomz/fishbun/permission/PermissionCheck.java b/FishBun/src/main/java/com/sangcomz/fishbun/permission/PermissionCheck.java index dd592c19..3c057fd4 100644 --- a/FishBun/src/main/java/com/sangcomz/fishbun/permission/PermissionCheck.java +++ b/FishBun/src/main/java/com/sangcomz/fishbun/permission/PermissionCheck.java @@ -10,6 +10,7 @@ import android.support.v4.content.ContextCompat; import android.widget.Toast; +import com.sangcomz.fishbun.R; import com.sangcomz.fishbun.define.Define; @@ -17,7 +18,7 @@ * Created by sangc on 2015-10-12. */ public class PermissionCheck { - Context context; + private Context context; public PermissionCheck(Context context) { this.context = context; @@ -42,7 +43,6 @@ public boolean CheckStoragePermission() { define.PERMISSION_STORAGE); } else { // No explanation needed, we can request the permission. - ActivityCompat.requestPermissions((Activity) context, new String[]{Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE}, define.PERMISSION_STORAGE); @@ -58,7 +58,7 @@ public boolean CheckStoragePermission() { public void showPermissionDialog() { - Toast.makeText(context, "permission deny", Toast.LENGTH_SHORT).show(); + Toast.makeText(context, R.string.msg_permission, Toast.LENGTH_SHORT).show(); } diff --git a/FishBun/src/main/java/com/sangcomz/fishbun/ui/detail/DetailActivity.java b/FishBun/src/main/java/com/sangcomz/fishbun/ui/detail/DetailActivity.java index 6fc50b08..08f4a354 100644 --- a/FishBun/src/main/java/com/sangcomz/fishbun/ui/detail/DetailActivity.java +++ b/FishBun/src/main/java/com/sangcomz/fishbun/ui/detail/DetailActivity.java @@ -10,6 +10,7 @@ import android.view.View; import android.view.Window; import android.widget.ImageButton; +import android.widget.Toast; import com.sangcomz.fishbun.BaseActivity; import com.sangcomz.fishbun.R; @@ -73,6 +74,12 @@ private void initToolBar() { } private void initAdapter() { + if (fishton.pickerImages == null) { + Toast.makeText(this, R.string.msg_error, Toast.LENGTH_SHORT).show(); + finish(); + return; + } + onCheckStateChange(fishton.pickerImages[initPosition]); DetailViewPagerAdapter adapter = new DetailViewPagerAdapter(getLayoutInflater(), fishton.pickerImages); diff --git a/FishBun/src/main/res/values-ko/strings.xml b/FishBun/src/main/res/values-ko/strings.xml index 7fba8528..812ae347 100644 --- a/FishBun/src/main/res/values-ko/strings.xml +++ b/FishBun/src/main/res/values-ko/strings.xml @@ -5,7 +5,9 @@ 완료 선택된 이미지가 없습니다. 전체사진 - 권한 거부 + 권한이 거부 됐습니다. 앨범이 없습니다.\n사진을 찍어보세요! 더 이상 선택할 수 없습니다. + 일시적인 오류가 발생했습니다. 잠시후에 다시 시도해주세요. + diff --git a/FishBun/src/main/res/values/strings.xml b/FishBun/src/main/res/values/strings.xml index 81118d54..2ac7e102 100644 --- a/FishBun/src/main/res/values/strings.xml +++ b/FishBun/src/main/res/values/strings.xml @@ -4,9 +4,11 @@ done There is no selected image. All view - permission deny + Permission denied. There is no album.\nTake a Picture! Selection full. Deselect an image to choose another. Loading... image + + There was a temporary error. Please try again in a few minutes. From fbb99a0fd36b69c8fdb5bbaa624a4acec520216a Mon Sep 17 00:00:00 2001 From: sangcomz Date: Sun, 10 Mar 2019 01:21:05 +0900 Subject: [PATCH 5/5] chore (fishbun): release 0.8.8 --- README.md | 17 +++++++++-------- gradle/release.gradle | 3 ++- settings.gradle | 4 ++-- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index b62c9bdc..5530725b 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,10 @@ _FishBun_ is a highly customizable image picker for Android. -## What's New in _FishBun_ 0.8.7? +## What's New in _FishBun_ 0.8.8? -- Fix fishton +- Fix Bug (#138, #137) +- Update Glide / Picasso (#139) @@ -110,18 +111,18 @@ Setting up _FishBun_ requires to add this Gradle configuration: dependencies { // Under the Android Plugin 3.0.0. - compile 'com.sangcomz:FishBun:0.8.6' + compile 'com.sangcomz:FishBun:0.8.8' - compile 'com.squareup.picasso:picasso:2.5.2' + compile 'com.squareup.picasso:picasso:2.71828' or - compile 'com.github.bumptech.glide:glide:4.5.0' + compile 'com.github.bumptech.glide:glide:4.9.0' // Android plugin 3.0.0 or higher. - implementation 'com.sangcomz:FishBun:0.8.6' + implementation 'com.sangcomz:FishBun:0.8.8' - implementation 'com.squareup.picasso:picasso:2.5.2' + implementation 'com.squareup.picasso:picasso:2.71828' or - implementation 'com.github.bumptech.glide:glide:4.5.0' + implementation 'com.github.bumptech.glide:glide:4.9.0' } diff --git a/gradle/release.gradle b/gradle/release.gradle index 053b3619..9bfd71fc 100644 --- a/gradle/release.gradle +++ b/gradle/release.gradle @@ -99,7 +99,8 @@ if (project.rootProject.file('local.properties').isFile()) { tagName = version targetCommitish = 'master' body = """## Release Note -* Fix Fishton """ +* Fix Bug (#138, #137) +* Update Glide / Picasso (#139) """ name = version } } diff --git a/settings.gradle b/settings.gradle index 3d7df69f..9945e85e 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,7 +1,7 @@ include ':FishBunDemo', ':FishBun' -gradle.ext.versionCode = 21 -gradle.ext.versionName = '0.8.7' +gradle.ext.versionCode = 22 +gradle.ext.versionName = '0.8.8' gradle.ext.set('minSdk', 15) gradle.ext.set('targetSdk', 28)