Skip to content

Commit 622425d

Browse files
authoredJan 20, 2024
Merge pull request #21 from zorgluf/dev
Dev
2 parents 978264a + 0bad414 commit 622425d

File tree

6 files changed

+9
-53
lines changed

6 files changed

+9
-53
lines changed
 

‎app/build.gradle

+4-7
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
mavenCentral()
1010
}
1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:7.2.1'
12+
classpath 'com.android.tools.build:gradle:7.4.2'
1313
def nav_version = '2.4.1'
1414
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
1515
}
@@ -21,8 +21,8 @@ android {
2121
applicationId "fr.nuage.souvenirs"
2222
minSdkVersion 24
2323
targetSdkVersion 30
24-
versionCode 29
25-
versionName "2.8.4"
24+
versionCode 30
25+
versionName "2.8.5"
2626
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
2727
setProperty("archivesBaseName", "souvenirs-$versionName")
2828
}
@@ -54,9 +54,6 @@ dependencies {
5454
implementation fileTree(dir: 'libs', include: ['*.jar'])
5555
implementation 'androidx.appcompat:appcompat:1.4.1'
5656
implementation 'androidx.webkit:webkit:1.4.0'
57-
testImplementation 'junit:junit:4.12'
58-
androidTestImplementation 'com.android.support.test:runner:1.0.2'
59-
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
6057
def lifecycle_version = "2.4.1"
6158
implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version"
6259
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
@@ -81,6 +78,6 @@ dependencies {
8178

8279
buildscript {
8380
dependencies {
84-
classpath 'com.android.tools.build:gradle:7.2.1'
81+
classpath 'com.android.tools.build:gradle:7.4.2'
8582
}
8683
}

‎app/src/androidTest/java/fr/nuage/souvenirs/ExampleInstrumentedTest.java

-26
This file was deleted.

‎app/src/main/java/fr/nuage/souvenirs/AlbumListActivity.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package fr.nuage.souvenirs;
22

3+
import static java.lang.Math.min;
4+
35
import android.annotation.SuppressLint;
46
import android.app.NotificationChannel;
57
import android.app.NotificationManager;
@@ -74,7 +76,7 @@ private void updateShorcuts() {
7476
File albumsPath = new File(getApplication().getApplicationContext().getExternalFilesDir(null),"albums");
7577
Albums albums = Albums.getInstance(albumsPath.getPath());
7678
ArrayList<ShortcutInfoCompat> shorcutsList = new ArrayList<>();
77-
for (Album a : albums.getAlbumList().subList(0,MAX_SHORTCUTS-1)) {
79+
for (Album a : albums.getAlbumList().subList(0,min(MAX_SHORTCUTS-1,albums.getAlbumList().size()))) {
7880
//we exclude albums edited more than 30 days ago
7981
long deltaDays = TimeUnit.DAYS.convert((new Date()).getTime() - a.getPagesLastEditDate().getTime(), TimeUnit.MILLISECONDS);
8082
if (deltaDays > DIRECT_SHARE_MAX_DAYS) {

‎app/src/test/java/fr/nuage/souvenirs/ExampleUnitTest.java

-17
This file was deleted.

‎build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
mavenCentral()
99
}
1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:7.2.1'
11+
classpath 'com.android.tools.build:gradle:7.4.2'
1212
def nav_version = '2.4.1'
1313
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
1414

‎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-7.3.3-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip

0 commit comments

Comments
 (0)
Failed to load comments.