Created
July 23, 2021 10:42
-
-
Save cosmosgenius/43cf08c6b4c05a5e06ccc522b73875c7 to your computer and use it in GitHub Desktop.
Detect if the app is flutter or not
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
run it using
python isitflutter.py <path_to_ipa>