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
{{ message }}
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.
I wanted to test my method where I use this plugin's getVersionStatus method. However, it will always throw the debugPrint message since the unit tests run on a desktop:
Future<VersionStatus?> getVersionStatus() async {
PackageInfo packageInfo =awaitPackageInfo.fromPlatform();
if (Platform.isIOS) {
return_getiOSStoreVersion(packageInfo);
} elseif (Platform.isAndroid) {
return_getAndroidStoreVersion(packageInfo);
} else {
debugPrint(
'The target platform "${Platform.operatingSystem}" is not yet supported by this package.');
}
}
Do you already have a solution for that?
If not: Could there be an adjustment so that we can set optional the wanted platform on the creation of a new NewVersion and check if this is set when callinggetVersionStatus and use it instead of the "real" platform?
The text was updated successfully, but these errors were encountered:
I wanted to test my method where I use this plugin's
getVersionStatus
method. However, it will always throw thedebugPrint
message since the unit tests run on a desktop:Do you already have a solution for that?
If not: Could there be an adjustment so that we can set optional the wanted platform on the creation of a new
NewVersion
and check if this is set when callinggetVersionStatus
and use it instead of the "real" platform?The text was updated successfully, but these errors were encountered: