installer property
UInstaller
get
installer
Where the app came from, normalized across stores.
Implementation
static UInstaller get installer {
if (kIsWeb) return UInstaller.web;
if (info.isTestFlight) return UInstaller.testFlight;
final String? raw = info.installerStore;
return switch (raw) {
"com.android.vending" || "com.google.android.feedback" => UInstaller.playStore,
"com.farsitel.bazaar" => UInstaller.bazaar,
"ir.mservices.market" => UInstaller.myket,
"com.sec.android.app.samsungapps" => UInstaller.galaxyStore,
"com.huawei.appmarket" => UInstaller.huaweiAppGallery,
"com.amazon.venezia" => UInstaller.amazon,
"app_store" => Platform.isMacOS ? UInstaller.macAppStore : UInstaller.appStore,
"microsoft_store" => UInstaller.microsoftStore,
"debug" => UInstaller.debug,
null || "" || "sideload" || "com.google.android.packageinstaller" || "com.android.packageinstaller" => kDebugMode ? UInstaller.debug : UInstaller.sideload,
_ => UInstaller.unknown,
};
}