orgzly-android-revived/shared-test/proguard-rules.pro
Victor Andreasson 48ec1e8b45
Add new tests and convert some repository tests to local JVM tests
Create a generic test suite for SyncRepo implementations in the
"shared-test" library. This allows writing "abstract" test cases which
all implementations must pass.

The main challenge in creating these "abstract" tests for SyncRepo was
that most implementations can be tested with local unit tests, whereas
DocumentRepo requires instrumented tests, since the Android class
DocumentFile is so central to it.

I tried several different approaches, but ended up with this separate
"shared-test" library, containing an abstract class SyncRepoTest, which
helps you by defining all the test cases and contains all their inner
logic.

I have also tried keeping all the tests as instrumented tests, but I
wanted to launch a lightweight WebDAV server for those tests, and it was
not possible to get that to work in Android. The WebDAV server was also
the reason why I switched from Java 11 to Java 17 in the build process.
But that was due, anyway, as Java 11 is now old and unsupported.
2024-08-26 08:49:33 +02:00

21 lines
No EOL
750 B
Prolog

# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile