Skip to content

Commit 75f8701

Browse files
author
farfromrefug
committed
chore: cleanup and fix edge cases
1 parent fbe7cb1 commit 75f8701

File tree

11 files changed

+178
-689
lines changed

11 files changed

+178
-689
lines changed

packages/image/platforms/android/java/com/nativescript/image/CacheKeyStore.java

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -16,56 +16,19 @@ public class CacheKeyStore {
1616
public static class StoredKeys {
1717
public final Key sourceKey;
1818
public final Key signature;
19-
public final int width;
20-
public final int height;
21-
public final Transformation<?> transformation; // optional in-memory only
22-
public final byte[] transformationKeyBytes; // raw bytes written by transformation.updateDiskCacheKey
23-
public final Class<?> decodedResourceClass;
24-
public final Options options; // may be null or placeholder for in-memory
25-
public final byte[] optionsKeyBytes; // raw bytes from options.updateDiskCacheKey
26-
2719
public StoredKeys(
2820
Key sourceKey,
29-
Key signature,
30-
int width,
31-
int height,
32-
Transformation<?> transformation,
33-
byte[] transformationKeyBytes,
34-
Class<?> decodedResourceClass,
35-
Options options,
36-
byte[] optionsKeyBytes) {
21+
Key signature) {
3722
this.sourceKey = sourceKey;
3823
this.signature = signature;
39-
this.width = width;
40-
this.height = height;
41-
this.transformation = transformation;
42-
this.transformationKeyBytes = transformationKeyBytes;
43-
this.decodedResourceClass = decodedResourceClass;
44-
this.options = options;
45-
this.optionsKeyBytes = optionsKeyBytes;
4624
}
4725

48-
4926
public String toString() {
5027
return "CacheKeyStore.StoredKeys {"
5128
+ "sourceKey="
5229
+ sourceKey
5330
+ ", signature="
5431
+ signature
55-
+ ", width="
56-
+ width
57-
+ ", height="
58-
+ height
59-
+ ", decodedResourceClass="
60-
+ decodedResourceClass
61-
+ ", transformation="
62-
+ transformation
63-
+ ", transformationKeyBytes="
64-
+ transformationKeyBytes
65-
+ ", options="
66-
+ options
67-
+ ", optionsKeyBytes="
68-
+ optionsKeyBytes
6932
+ '}';
7033
}
7134
}

packages/image/platforms/android/java/com/nativescript/image/CustomDataCacheKey.java

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)