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
Previously, the SDK expected storeList to be set by integrators and would crash if only directDownloadList was provided.
This fix ensures the SDK only crashes when both storeList and directDownloadList are missing.
Copy file name to clipboardExpand all lines: appupdater/src/main/java/com/pouyaheydari/appupdater/main/ui/AppUpdaterDialog.kt
+2-2
Original file line number
Diff line number
Diff line change
@@ -61,8 +61,8 @@ class AppUpdaterDialog : DialogFragment() {
61
61
): View {
62
62
// Getting data passed to the library
63
63
val data = arguments?.parcelable(UPDATE_DIALOG_KEY) ?:UpdaterFragmentModel.EMPTY
64
-
if (data ==UpdaterFragmentModel.EMPTY|| data.storeList.isEmpty()) {
65
-
throwIllegalArgumentException("It seems you forgot to add any data to the updater dialog. Add the data as described in$UPDATE_DIALOG_README_URL")
64
+
if (data ==UpdaterFragmentModel.EMPTY||(data.storeList.isEmpty() && data.directDownloadList.isEmpty())) {
65
+
throwIllegalArgumentException("Invalid data provided to the updater dialog. Either 'storeList' or 'directDownloadList' must be non-empty. For more details, refer to the documentation at$UPDATE_DIALOG_README_URL")
0 commit comments