Skip to content

Commit

Permalink
[TIMOB-25231] Rename methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Mathews committed May 14, 2018
1 parent 2de33ad commit 80f9756
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class KrollAssetHelper

public interface AssetCrypt {
String readAsset(String path);
String[] getAssets();
String[] getAssetPaths();
}

public static void setAssetCrypt(AssetCrypt assetCrypt)
Expand Down Expand Up @@ -78,10 +78,10 @@ public static String readAsset(String path)
return null;
}

public static String[] getEncryptedAssets()
public static String[] getEncryptedAssetPaths()
{
if (assetCrypt != null) {
return assetCrypt.getAssets();
return assetCrypt.getAssetPaths();
}
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion android/templates/build/AssetCryptImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public String readAsset(String path)
return new String(filterDataInRange(assetsBytes, range.offset, range.length));
}

public String[] getAssets() {
public String[] getAssetPaths() {
return assets.keySet().toArray(new String[assets.size()]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public List<String> getDirectoryListing()
}

// list encrypted assets
String[] assets = KrollAssetHelper.getEncryptedAssets();
String[] assets = KrollAssetHelper.getEncryptedAssetPaths();
if (assets != null) {
for (String asset : assets) {
if (asset.startsWith(path)) {
Expand Down

0 comments on commit 80f9756

Please sign in to comment.