Skip to content

Commit

Permalink
v1.3.1: [FIX] Add ParcelableArrayList Bundle Serializable and StringA…
Browse files Browse the repository at this point in the history
…rrayList support
  • Loading branch information
Nicolas Béguier committed Feb 22, 2023
1 parent 2a62804 commit b5ddb2e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Android_Activity_Swagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# Debug
# from pdb import set_trace as st

VERSION = '1.3.0'
VERSION = '1.3.1'

def update_class(current_class, line):
"""
Expand Down Expand Up @@ -243,25 +243,29 @@ def print_adb_helper(swagger, activity, package):
"""
adb_args_map = {
'String': '--es',
'CharSequence': '--es',
'Boolean': '--ez',
'Int': '--ei',
'Long': '--el',
'Float': '--ef',
'data-uri': '-d',
'StringArray': '--esa',
'StringArrayList': '--esa',
}
adb_default_value_map = {
'String': '"some_string"',
'CharSequence': '"some_string"',
'Boolean': 'true',
'Int': '0',
'Long': '0',
'Float': '0',
'data-uri': 'https://github.com/nbeguier/',
'StringArray': '"some_string","some_other_string"',
'StringArrayList': '"some_string","some_other_string"',
}
for extra_type in swagger:
# Ignore extra types
if extra_type in ['Parcelable', 'Bundle']:
if extra_type in ['Parcelable', 'ParcelableArrayList', 'Bundle', 'Serializable']:
continue
# Data-uri type
if extra_type == 'data-uri':
Expand Down

0 comments on commit b5ddb2e

Please sign in to comment.