Skip to content

Commit 067f8eb

Browse files
committed
update deps
1 parent 9cc045e commit 067f8eb

File tree

12 files changed

+35
-44
lines changed

12 files changed

+35
-44
lines changed

BigImageViewer/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ apply from: "$rootProject.rootDir/gradle/publish-maven-central.gradle"
2828

2929
android {
3030
compileSdkVersion rootProject.ext.androidCompileSdkVersion
31-
buildToolsVersion rootProject.ext.androidBuildToolsVersion
3231

3332
defaultConfig {
3433
minSdkVersion rootProject.ext.minSdkVersion

FrescoImageLoader/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ apply from: "$rootProject.rootDir/gradle/publish-maven-central.gradle"
2828

2929
android {
3030
compileSdkVersion rootProject.ext.androidCompileSdkVersion
31-
buildToolsVersion rootProject.ext.androidBuildToolsVersion
3231

3332
defaultConfig {
3433
minSdkVersion rootProject.ext.minSdkVersion

FrescoImageViewFactory/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ apply from: "$rootProject.rootDir/gradle/publish-maven-central.gradle"
2828

2929
android {
3030
compileSdkVersion rootProject.ext.androidCompileSdkVersion
31-
buildToolsVersion rootProject.ext.androidBuildToolsVersion
3231

3332
defaultConfig {
3433
minSdkVersion rootProject.ext.minSdkVersion

GlideImageLoader/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ apply from: "$rootProject.rootDir/gradle/publish-maven-central.gradle"
2828

2929
android {
3030
compileSdkVersion rootProject.ext.androidCompileSdkVersion
31-
buildToolsVersion rootProject.ext.androidBuildToolsVersion
3231

3332
defaultConfig {
3433
minSdkVersion rootProject.ext.minSdkVersion

GlideImageViewFactory/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ apply from: "$rootProject.rootDir/gradle/publish-maven-central.gradle"
2828

2929
android {
3030
compileSdkVersion rootProject.ext.androidCompileSdkVersion
31-
buildToolsVersion rootProject.ext.androidBuildToolsVersion
3231

3332
defaultConfig {
3433
minSdkVersion rootProject.ext.minSdkVersion

ProgressPieIndicator/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ apply from: "$rootProject.rootDir/gradle/publish-maven-central.gradle"
2828

2929
android {
3030
compileSdkVersion rootProject.ext.androidCompileSdkVersion
31-
buildToolsVersion rootProject.ext.androidBuildToolsVersion
3231

3332
defaultConfig {
3433
minSdkVersion rootProject.ext.minSdkVersion

app/build.gradle

+2-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ apply plugin: 'kotlin-android'
2828

2929
android {
3030
compileSdkVersion rootProject.ext.androidCompileSdkVersion
31-
buildToolsVersion rootProject.ext.androidBuildToolsVersion
3231

3332
defaultConfig {
3433
minSdkVersion 15
@@ -82,7 +81,7 @@ android {
8281
}
8382

8483
dependencies {
85-
implementation "androidx.core:core-ktx:1.3.2"
84+
implementation "androidx.core:core-ktx:1.9.0"
8685
implementation "androidx.appcompat:appcompat:1.2.0"
8786
implementation "androidx.recyclerview:recyclerview:1.1.0"
8887
implementation "com.google.android.material:material:1.3.0"
@@ -98,7 +97,7 @@ dependencies {
9897
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
9998
// implementation 'com.github.piasy:RxQrCode:1.3.0'
10099

101-
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.6'
100+
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.10'
102101

103102
// implementation 'com.github.piasy:BigImageViewer:1.8.0'
104103
// implementation 'com.github.piasy:FrescoImageLoader:1.8.0'

app/src/main/AndroidManifest.xml

+2-4
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,16 @@
2525
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2626
package="com.github.piasy.biv.example">
2727

28-
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
29-
3028
<application
3129
android:allowBackup="true"
32-
android:usesCleartextTraffic="true"
3330
android:icon="@mipmap/ic_launcher"
3431
android:label="@string/app_name"
3532
android:supportsRtl="true"
3633
android:theme="@style/AppTheme"
3734
>
3835

39-
<activity android:name=".MainActivity">
36+
<activity android:name=".MainActivity"
37+
android:exported="true">
4038
<intent-filter>
4139
<action android:name="android.intent.action.MAIN"/>
4240

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

+18-17
Original file line numberDiff line numberDiff line change
@@ -151,23 +151,24 @@ private void decodeQrCode() {
151151

152152
@SuppressWarnings("MissingPermission")
153153
private void saveImage() {
154-
disposePermissionRequest();
155-
mPermissionRequest = new RxPermissions(this)
156-
.request(Manifest.permission.WRITE_EXTERNAL_STORAGE)
157-
.observeOn(Schedulers.io())
158-
.subscribe(new Consumer<Boolean>() {
159-
@Override
160-
public void accept(Boolean granted) throws Exception {
161-
if (granted) {
162-
mBigImageView.saveImageIntoGallery();
163-
}
164-
}
165-
}, new Consumer<Throwable>() {
166-
@Override
167-
public void accept(Throwable throwable) throws Exception {
168-
throwable.printStackTrace();
169-
}
170-
});
154+
mBigImageView.saveImageIntoGallery();
155+
//disposePermissionRequest();
156+
//mPermissionRequest = new RxPermissions(this)
157+
// .request(Manifest.permission.WRITE_EXTERNAL_STORAGE)
158+
// .observeOn(Schedulers.io())
159+
// .subscribe(new Consumer<Boolean>() {
160+
// @Override
161+
// public void accept(Boolean granted) throws Exception {
162+
// if (granted) {
163+
// mBigImageView.saveImageIntoGallery();
164+
// }
165+
// }
166+
// }, new Consumer<Throwable>() {
167+
// @Override
168+
// public void accept(Throwable throwable) throws Exception {
169+
// throwable.printStackTrace();
170+
// }
171+
// });
171172
}
172173

173174
private AlertDialog showDialog() {

build.gradle

+11-12
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ buildscript {
3333
mavenCentral()
3434
}
3535
dependencies {
36-
classpath 'com.android.tools.build:gradle:4.1.3'
37-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.30"
36+
classpath 'com.android.tools.build:gradle:7.3.0'
37+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.21"
3838

3939
// ./gradlew dependencyUpdates
40-
classpath 'com.github.ben-manes:gradle-versions-plugin:0.25.0'
40+
classpath 'com.github.ben-manes:gradle-versions-plugin:0.44.0'
4141

4242
// ./gradlew publishReleasePublicationToSonatypeRepository
4343
// ./gradlew closeAndReleaseRepository
44-
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.4.30'
45-
classpath 'io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.22.0'
44+
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.7.20'
45+
classpath 'io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0'
4646
}
4747
}
4848

@@ -67,20 +67,19 @@ ext {
6767
'Image View, Fresco, Glide, and Picasso.'
6868

6969
releaseVersionCode = 45
70-
releaseVersionName = '1.8.1'
70+
releaseVersionName = '1.9.0'
7171

7272
PUBLISH_GROUP_ID = groupName
7373
PUBLISH_VERSION = releaseVersionName
7474

75-
androidCompileSdkVersion = 29
76-
androidBuildToolsVersion = '29.0.3'
75+
androidCompileSdkVersion = 33
7776
minSdkVersion = 14
78-
targetSdkVersion = 29
77+
targetSdkVersion = 33
7978

80-
annotationVersion = '1.1.0'
79+
annotationVersion = '1.5.0'
8180

82-
frescoVersion = '2.5.0'
83-
glideVersion = '4.12.0'
81+
frescoVersion = '2.6.0'
82+
glideVersion = '4.14.2'
8483
// OkHttp drops support before 5.0 since 3.13.0
8584
okhttpVersion = '3.12.6'
8685
ssivVersion = '3.10.0'

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ android.enableR8=true
2424
android.enableD8.desugaring=true
2525

2626
#enables AGP to use gradle workers
27-
android.enableGradleWorkers=true
27+
android.enableGradleWorkers=true

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip

0 commit comments

Comments
 (0)