Skip to content

Instantly share code, notes, and snippets.

@cosmosgenius
Created July 23, 2021 10:42
Show Gist options
  • Save cosmosgenius/43cf08c6b4c05a5e06ccc522b73875c7 to your computer and use it in GitHub Desktop.
Save cosmosgenius/43cf08c6b4c05a5e06ccc522b73875c7 to your computer and use it in GitHub Desktop.
Detect if the app is flutter or not
import argparse
import os.path
from zipfile import ZipFile
parser = argparse.ArgumentParser()
parser.add_argument("app", help="Path to IPA file")
args = parser.parse_args()
ipalocation = args.app
if not os.path.isfile(ipalocation):
raise Exception("file missing")
ipazip = ZipFile(ipalocation)
file_list = ipazip.namelist()
flutter_list = [
f
for f in file_list
if 'flutter' in f.lower()
]
if len(flutter_list) > 10:
print("This is flutter app")
else:
print("This is not a flutter app")
@cosmosgenius
Copy link
Author

run it using python isitflutter.py <path_to_ipa>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment