File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
android/app/src/main/java/com/zulipmobile Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,16 @@ import java.util.zip.Inflater
14
14
15
15
// TODO: Write unit tests; see
16
16
// https://github.com/zulip/zulip-mobile/blob/main/docs/howto/testing.md#unit-tests-android.
17
+
18
+ // TODO: Experiment what value gives the best performance.
19
+ private const val bufferSize = 8192
20
+
21
+ private const val header = " z|zlib base64|"
22
+
17
23
internal class TextCompressionModule (reactContext : ReactApplicationContext ? ) :
18
24
ReactContextBaseJavaModule (reactContext) {
19
25
override fun getName (): String = " TextCompressionModule"
20
26
21
- // TODO: Experiment what value gives the best performance.
22
- private val bufferSize = 8192
23
-
24
- private val header = " z|zlib base64|"
25
27
override fun getConstants (): Map <String , Any > = hashMapOf(" header" to header)
26
28
27
29
@ReactMethod
You can’t perform that action at this time.
0 commit comments