You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I provide metadata.android.json and the bundle file in the assets directory. The version in metadata is 1.1.0 and the version in update.json on the internet is 1.0.0. But when the app starts, it download the bundles and prompt to apply the update.
I explore some of the code. I think Both getLatestJSCodeLocation and shouldDownloadUpdate lead to update when the app first launch. But I'm not quite sure
publicStringgetLatestJSCodeLocation() {
SharedPreferencesprefs = context.getSharedPreferences(RNAU_SHARED_PREFERENCES, Context.MODE_PRIVATE);
StringcurrentVersionStr = prefs.getString(RNAU_STORED_VERSION, null);
VersioncurrentVersion;
try {
currentVersion = newVersion(currentVersionStr); // when the app first launch is null
} catch (Exceptione) {
e.printStackTrace();
returnnull;
}
privatebooleanshouldDownloadUpdate(StringversionStr, StringminContainerVersionStr) {
booleanshouldDownload = false;
SharedPreferencesprefs = context.getSharedPreferences(RNAU_SHARED_PREFERENCES, Context.MODE_PRIVATE);
StringcurrentVersionStr = prefs.getString(RNAU_STORED_VERSION, null);
if (currentVersionStr == null) { // when the app first launch is nullshouldDownload = true;
The text was updated successfully, but these errors were encountered:
I provide metadata.android.json and the bundle file in the assets directory. The version in metadata is 1.1.0 and the version in update.json on the internet is 1.0.0. But when the app starts, it download the bundles and prompt to apply the update.
I explore some of the code. I think Both getLatestJSCodeLocation and shouldDownloadUpdate lead to update when the app first launch. But I'm not quite sure
The text was updated successfully, but these errors were encountered: