Skip to content

Commit 9cc045e

Browse files
committed
update deps & publish v1.8.1
1 parent 88d86a7 commit 9cc045e

File tree

5 files changed

+36
-38
lines changed

5 files changed

+36
-38
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Change log
22

3+
+ v1.8.1
4+
- Fix mime type when save image to gallery;
35
+ v1.8.0
46
- Migrate to MavenCentral;
57
+ v1.7.1

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,22 @@ allprojects {
3030
}
3131
}
3232
33-
implementation 'com.github.piasy:BigImageViewer:1.8.0'
33+
implementation 'com.github.piasy:BigImageViewer:1.8.1'
3434
3535
// load with fresco
36-
implementation 'com.github.piasy:FrescoImageLoader:1.8.0'
36+
implementation 'com.github.piasy:FrescoImageLoader:1.8.1'
3737
3838
// load with glide
39-
implementation 'com.github.piasy:GlideImageLoader:1.8.0'
39+
implementation 'com.github.piasy:GlideImageLoader:1.8.1'
4040
4141
// progress pie indicator
42-
implementation 'com.github.piasy:ProgressPieIndicator:1.8.0'
42+
implementation 'com.github.piasy:ProgressPieIndicator:1.8.1'
4343
4444
// support thumbnail, gif and webp with Fresco
45-
implementation 'com.github.piasy:FrescoImageViewFactory:1.8.0'
45+
implementation 'com.github.piasy:FrescoImageViewFactory:1.8.1'
4646
4747
// support thumbnail and gif with Glide
48-
implementation 'com.github.piasy:GlideImageViewFactory:1.8.0'
48+
implementation 'com.github.piasy:GlideImageViewFactory:1.8.1'
4949
```
5050

5151
### Initialize

app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ dependencies {
8787
implementation "androidx.recyclerview:recyclerview:1.1.0"
8888
implementation "com.google.android.material:material:1.3.0"
8989

90-
implementation('com.tbruyelle.rxpermissions2:rxpermissions:0.9.5') {
90+
implementation('com.github.tbruyelle:rxpermissions:0.11') {
9191
exclude module: 'rxjava'
9292
}
9393
implementation('com.github.akarnokd:rxjava2-interop:0.13.7') {
@@ -96,7 +96,7 @@ dependencies {
9696

9797
implementation 'io.reactivex.rxjava2:rxjava:2.2.21'
9898
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
99-
implementation 'com.github.piasy:RxQrCode:1.3.0'
99+
// implementation 'com.github.piasy:RxQrCode:1.3.0'
100100

101101
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.6'
102102

app/src/main/java/com/github/piasy/biv/example/LongImageActivity.java

+22-23
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import android.view.LayoutInflater;
3131
import android.view.View;
3232
import android.view.ViewGroup;
33-
import android.view.WindowManager;
3433
import android.widget.TextView;
3534
import android.widget.Toast;
3635

@@ -42,8 +41,8 @@
4241
import com.github.piasy.biv.loader.fresco.FrescoImageLoader;
4342
import com.github.piasy.biv.view.BigImageView;
4443
import com.github.piasy.biv.view.ImageSaveCallback;
45-
import com.github.piasy.rxqrcode.RxQrCode;
46-
import com.google.zxing.Result;
44+
//import com.github.piasy.rxqrcode.RxQrCode;
45+
//import com.google.zxing.Result;
4746
import com.tbruyelle.rxpermissions2.RxPermissions;
4847
import hu.akarnokd.rxjava.interop.RxJavaInterop;
4948
import io.reactivex.android.schedulers.AndroidSchedulers;
@@ -128,26 +127,26 @@ private void decodeQrCode() {
128127
return;
129128
}
130129
disposeQrCodeDecode();
131-
mQrCodeDecode = RxJavaInterop
132-
.toV2Observable(RxQrCode.scanFromPicture(
133-
mBigImageView.getCurrentImageFile().getAbsolutePath()))
134-
.subscribeOn(Schedulers.io())
135-
.observeOn(AndroidSchedulers.mainThread())
136-
.subscribe(new Consumer<Result>() {
137-
@Override
138-
public void accept(Result result) throws Exception {
139-
Toast.makeText(LongImageActivity.this,
140-
"Found " + result.getText(),
141-
Toast.LENGTH_SHORT).show();
142-
}
143-
}, new Consumer<Throwable>() {
144-
@Override
145-
public void accept(Throwable throwable) throws Exception {
146-
Toast.makeText(LongImageActivity.this,
147-
"Not found",
148-
Toast.LENGTH_SHORT).show();
149-
}
150-
});
130+
//mQrCodeDecode = RxJavaInterop
131+
// .toV2Observable(RxQrCode.scanFromPicture(
132+
// mBigImageView.getCurrentImageFile().getAbsolutePath()))
133+
// .subscribeOn(Schedulers.io())
134+
// .observeOn(AndroidSchedulers.mainThread())
135+
// .subscribe(new Consumer<Result>() {
136+
// @Override
137+
// public void accept(Result result) throws Exception {
138+
// Toast.makeText(LongImageActivity.this,
139+
// "Found " + result.getText(),
140+
// Toast.LENGTH_SHORT).show();
141+
// }
142+
// }, new Consumer<Throwable>() {
143+
// @Override
144+
// public void accept(Throwable throwable) throws Exception {
145+
// Toast.makeText(LongImageActivity.this,
146+
// "Not found",
147+
// Toast.LENGTH_SHORT).show();
148+
// }
149+
// });
151150
}
152151

153152
@SuppressWarnings("MissingPermission")

build.gradle

+4-7
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
buildscript {
2828
repositories {
29-
jcenter()
3029
google()
3130
maven {
3231
url "https://plugins.gradle.org/m2/"
@@ -49,11 +48,9 @@ buildscript {
4948

5049
allprojects {
5150
repositories {
52-
jcenter()
5351
google()
5452
mavenCentral()
55-
56-
maven { url "http://dl.bintray.com/piasy/maven" }
53+
maven { url 'https://jitpack.io' }
5754
}
5855
}
5956

@@ -69,8 +66,8 @@ ext {
6966
'usage and full featured image loading choices. Powered by Subsampling Scale ' +
7067
'Image View, Fresco, Glide, and Picasso.'
7168

72-
releaseVersionCode = 44
73-
releaseVersionName = '1.8.0'
69+
releaseVersionCode = 45
70+
releaseVersionName = '1.8.1'
7471

7572
PUBLISH_GROUP_ID = groupName
7673
PUBLISH_VERSION = releaseVersionName
@@ -82,7 +79,7 @@ ext {
8279

8380
annotationVersion = '1.1.0'
8481

85-
frescoVersion = '2.4.0'
82+
frescoVersion = '2.5.0'
8683
glideVersion = '4.12.0'
8784
// OkHttp drops support before 5.0 since 3.13.0
8885
okhttpVersion = '3.12.6'

0 commit comments

Comments
 (0)