Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 8b053bd

Browse files
committed
Use static constant
1 parent 5dbe239 commit 8b053bd

File tree

1 file changed

+2
-1
lines changed
  • android/app/src/main/java/com/microsoft/codepush/react

1 file changed

+2
-1
lines changed

android/app/src/main/java/com/microsoft/codepush/react/CodePush.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public class CodePush implements ReactPackage {
5151
private static final String ASSETS_BUNDLE_PREFIX = "assets://";
5252
private static final String BINARY_MODIFIED_TIME_KEY = "binaryModifiedTime";
5353
private final String CODE_PUSH_PREFERENCES = "CodePush";
54+
private final String DEFAULT_JS_BUNDLE_NAME = "index.android.bundle";
5455
private final String DOWNLOAD_PROGRESS_EVENT_NAME = "CodePushDownloadProgress";
5556
private final String FAILED_UPDATES_KEY = "CODE_PUSH_FAILED_UPDATES";
5657
private final String PACKAGE_HASH_KEY = "packageHash";
@@ -136,7 +137,7 @@ private long getBinaryResourcesModifiedTime() {
136137
}
137138

138139
public static String getBundleUrl() {
139-
return getBundleUrl("index.android.bundle");
140+
return getBundleUrl(DEFAULT_JS_BUNDLE_NAME);
140141
}
141142

142143
public static String getBundleUrl(String assetsBundleFileName) {

0 commit comments

Comments
 (0)