ravitejaavv / store_checker

This Flutter plugin is useful to find the origin of apk/ipa which is made available for download. **Android**: It's very common to have Android applications republished on alternate markets or their APKs made available for download. The plugin detects whether app is installed from local source or Play Store or other stores **iOS**: Detects whether we have installed TestFlight Beta or App Store build
MIT License
23 stars 19 forks source link

arm64-Check simulator #19

Closed Menaitech closed 1 year ago

Menaitech commented 1 year ago

Dears

the function which used to check if app is running on simulator has an error

please change code to following code

private func isSimulator() -> Bool { //Check architecture // #if arch(i386) || arch(x86_64) || arch(arm64) // this code is no correct

if targetEnvironment(simulator) // this code is correct

    return true
    #else
    return false
    #endif
}

Regards

ravitejaavv commented 1 year ago

Same has been updated in 1.4.0 version. Kindly check it