main function

void main()

Implementation

void main() {
  debugPrint('--------');
  debugPrint('The app must not be started using the main.dart file');
  debugPrint('Please start the app using:');
  debugPrint(' - flutter run -t lib/entrypoints/android/main_google_play.dart');
  debugPrint(' - flutter run -t lib/entrypoints/ios/main_ios.dart');
  debugPrint(
    ' - flutter run -t lib/entrypoints/dev/main_dev.dart (fast development / desktop)',
  );
  debugPrint(
    'More information here: https://github.com/openfoodfacts/smooth-app#how-to-run-the-project',
  );
  debugPrint('--------');

  if (Platform.isAndroid) {
    SystemNavigator.pop();
  } else {
    exit(2);
  }
}