Loading app/build.gradle +3 −1 Original line number Diff line number Diff line Loading @@ -86,7 +86,9 @@ dependencies { implementation 'androidx.appcompat:appcompat:1.4.1' implementation "androidx.constraintlayout:constraintlayout:2.1.3" implementation 'com.google.android.material:material:1.6.0' implementation 'com.github.bumptech.glide:glide:4.13.1' implementation 'com.github.bumptech.glide:glide:4.14.2' implementation 'com.github.bumptech.glide:annotations:4.14.2' annotationProcessor 'com.github.bumptech.glide:compiler:4.14.2' implementation "androidx.work:work-runtime:2.7.1" implementation 'androidx.test:core:1.4.0' implementation 'com.jakewharton.timber:timber:5.0.1' Loading app/proguard-rules.pro +14 −0 Original line number Diff line number Diff line Loading @@ -19,3 +19,17 @@ # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile -keep public class * implements com.bumptech.glide.module.GlideModule -keep class * extends com.bumptech.glide.module.AppGlideModule { <init>(...); } -keep public enum com.bumptech.glide.load.ImageHeaderParser$** { **[] $VALUES; public *; } -keep class com.bumptech.glide.load.data.ParcelFileDescriptorRewinder$InternalRewinder { *** rewind(); } # Uncomment for DexGuard only #-keepresourcexmlelements manifest/application/meta-data@value=GlideModule No newline at end of file app/src/main/java/foundation/e/drive/configurations/ApplicationGlideModule.java 0 → 100644 +36 −0 Original line number Diff line number Diff line /* * Copyright MURENA SAS 2022 * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ package foundation.e.drive.configurations; import android.content.Context; import android.util.Log; import androidx.annotation.NonNull; import com.bumptech.glide.GlideBuilder; import com.bumptech.glide.annotation.GlideModule; import com.bumptech.glide.module.AppGlideModule; @GlideModule public class ApplicationGlideModule extends AppGlideModule { @Override public void applyOptions(@NonNull Context context, @NonNull GlideBuilder builder) { super.applyOptions(context, builder); builder.setLogLevel(Log.ERROR); } } Loading
app/build.gradle +3 −1 Original line number Diff line number Diff line Loading @@ -86,7 +86,9 @@ dependencies { implementation 'androidx.appcompat:appcompat:1.4.1' implementation "androidx.constraintlayout:constraintlayout:2.1.3" implementation 'com.google.android.material:material:1.6.0' implementation 'com.github.bumptech.glide:glide:4.13.1' implementation 'com.github.bumptech.glide:glide:4.14.2' implementation 'com.github.bumptech.glide:annotations:4.14.2' annotationProcessor 'com.github.bumptech.glide:compiler:4.14.2' implementation "androidx.work:work-runtime:2.7.1" implementation 'androidx.test:core:1.4.0' implementation 'com.jakewharton.timber:timber:5.0.1' Loading
app/proguard-rules.pro +14 −0 Original line number Diff line number Diff line Loading @@ -19,3 +19,17 @@ # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile -keep public class * implements com.bumptech.glide.module.GlideModule -keep class * extends com.bumptech.glide.module.AppGlideModule { <init>(...); } -keep public enum com.bumptech.glide.load.ImageHeaderParser$** { **[] $VALUES; public *; } -keep class com.bumptech.glide.load.data.ParcelFileDescriptorRewinder$InternalRewinder { *** rewind(); } # Uncomment for DexGuard only #-keepresourcexmlelements manifest/application/meta-data@value=GlideModule No newline at end of file
app/src/main/java/foundation/e/drive/configurations/ApplicationGlideModule.java 0 → 100644 +36 −0 Original line number Diff line number Diff line /* * Copyright MURENA SAS 2022 * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ package foundation.e.drive.configurations; import android.content.Context; import android.util.Log; import androidx.annotation.NonNull; import com.bumptech.glide.GlideBuilder; import com.bumptech.glide.annotation.GlideModule; import com.bumptech.glide.module.AppGlideModule; @GlideModule public class ApplicationGlideModule extends AppGlideModule { @Override public void applyOptions(@NonNull Context context, @NonNull GlideBuilder builder) { super.applyOptions(context, builder); builder.setLogLevel(Log.ERROR); } }