forked from github/szkolny
Compare commits
No commits in common. "c187c0579f0a147edf23c171159963872338e989" and "663243da8bde7a1743e981680e609ef23fb37388" have entirely different histories.
c187c0579f
...
663243da8b
29
app/proguard-rules.pro
vendored
29
app/proguard-rules.pro
vendored
@ -59,7 +59,7 @@
|
|||||||
-keep class com.google.android.material.tabs.** {*;}
|
-keep class com.google.android.material.tabs.** {*;}
|
||||||
|
|
||||||
# ServiceLoader support
|
# ServiceLoader support
|
||||||
-keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {}
|
-keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {}
|
||||||
-keepnames class kotlinx.coroutines.CoroutineExceptionHandler {}
|
-keepnames class kotlinx.coroutines.CoroutineExceptionHandler {}
|
||||||
|
|
||||||
# Most of volatile fields are updated with AFU and should not be mangled
|
# Most of volatile fields are updated with AFU and should not be mangled
|
||||||
@ -73,36 +73,9 @@
|
|||||||
|
|
||||||
-keep class pl.szczodrzynski.edziennik.data.api.szkolny.interceptor.Signing { public final byte[] pleaseStopRightNow(java.lang.String, long); }
|
-keep class pl.szczodrzynski.edziennik.data.api.szkolny.interceptor.Signing { public final byte[] pleaseStopRightNow(java.lang.String, long); }
|
||||||
|
|
||||||
-keepclassmembers class pl.szczodrzynski.edziennik.ui.login.qr.* { *; }
|
|
||||||
-keepclassmembers class pl.szczodrzynski.edziennik.data.api.szkolny.request.** { *; }
|
-keepclassmembers class pl.szczodrzynski.edziennik.data.api.szkolny.request.** { *; }
|
||||||
-keepclassmembers class pl.szczodrzynski.edziennik.data.api.szkolny.response.** { *; }
|
-keepclassmembers class pl.szczodrzynski.edziennik.data.api.szkolny.response.** { *; }
|
||||||
-keepclassmembernames class pl.szczodrzynski.edziennik.ui.login.LoginInfo$Platform { *; }
|
-keepclassmembernames class pl.szczodrzynski.edziennik.ui.login.LoginInfo$Platform { *; }
|
||||||
|
|
||||||
-keepclassmembernames class pl.szczodrzynski.fslogin.realm.RealmData { *; }
|
-keepclassmembernames class pl.szczodrzynski.fslogin.realm.RealmData { *; }
|
||||||
-keepclassmembernames class pl.szczodrzynski.fslogin.realm.RealmData$Type { *; }
|
-keepclassmembernames class pl.szczodrzynski.fslogin.realm.RealmData$Type { *; }
|
||||||
|
|
||||||
# Exclude Retrofit2
|
|
||||||
-keepattributes Signature, InnerClasses, EnclosingMethod
|
|
||||||
-keepattributes RuntimeVisibleAnnotations, RuntimeVisibleParameterAnnotations
|
|
||||||
-keepattributes AnnotationDefault
|
|
||||||
|
|
||||||
-keepclassmembers,allowshrinking,allowobfuscation interface * {
|
|
||||||
@retrofit2.http.* <methods>;
|
|
||||||
}
|
|
||||||
|
|
||||||
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
|
|
||||||
-dontwarn javax.annotation.**
|
|
||||||
-dontwarn kotlin.Unit
|
|
||||||
-dontwarn retrofit2.KotlinExtensions
|
|
||||||
-dontwarn retrofit2.KotlinExtensions$*
|
|
||||||
|
|
||||||
-if interface * { @retrofit2.http.* <methods>; }
|
|
||||||
-keep,allowobfuscation interface <1>
|
|
||||||
|
|
||||||
-if interface * { @retrofit2.http.* <methods>; }
|
|
||||||
-keep,allowobfuscation interface * extends <1>
|
|
||||||
|
|
||||||
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation
|
|
||||||
-if interface * { @retrofit2.http.* public *** *(...); }
|
|
||||||
-keep,allowoptimization,allowshrinking,allowobfuscation class <3>
|
|
||||||
-keep,allowobfuscation,allowshrinking class retrofit2.Response
|
|
@ -228,7 +228,7 @@ class LoginFormFragment : Fragment(), CoroutineScope {
|
|||||||
val qrDecoderClass = credential.qrDecoderClass ?: return
|
val qrDecoderClass = credential.qrDecoderClass ?: return
|
||||||
app.permissionManager.requestCameraPermission(activity, R.string.permissions_qr_scanner) {
|
app.permissionManager.requestCameraPermission(activity, R.string.permissions_qr_scanner) {
|
||||||
QrScannerDialog(activity, onCodeScanned = { code ->
|
QrScannerDialog(activity, onCodeScanned = { code ->
|
||||||
val decoder = qrDecoderClass.getDeclaredConstructor().newInstance()
|
val decoder = qrDecoderClass.newInstance()
|
||||||
val values = decoder.decode(code)
|
val values = decoder.decode(code)
|
||||||
if (values == null) {
|
if (values == null) {
|
||||||
Toast.makeText(activity, R.string.login_qr_decoding_error, Toast.LENGTH_SHORT).show()
|
Toast.makeText(activity, R.string.login_qr_decoding_error, Toast.LENGTH_SHORT).show()
|
||||||
|
Loading…
Reference in New Issue
Block a user