@@ -36,19 +36,19 @@ def created(app_name, output=None, app_data=None):
36
36
assert Folder .exists (os .path .join (app_path , TnsAssert .NODE_MODULES , 'nativescript-theme-core' ))
37
37
assert Folder .exists (os .path .join (app_path , TnsAssert .NODE_MODULES , 'nativescript-dev-webpack' ))
38
38
39
- if app_data .type is AppType .JS :
39
+ if app_data .app_type is AppType .JS :
40
40
pass
41
- elif app_data .type is AppType .TS :
41
+ elif app_data .app_type is AppType .TS :
42
42
TnsAssert .__verify_created_ts ()
43
- elif app_data .type is AppType .NG :
43
+ elif app_data .app_type is AppType .NG :
44
44
TnsAssert .__verify_created_ng ()
45
- elif app_data .type is AppType .VUE :
45
+ elif app_data .app_type is AppType .VUE :
46
46
pass
47
- elif app_data .type is AppType .SHARED_NG :
47
+ elif app_data .app_type is AppType .SHARED_NG :
48
48
pass
49
49
50
50
# Assert app id
51
- if app_data .id is not None :
51
+ if app_data .app_id is not None :
52
52
pass
53
53
54
54
# Assert size
@@ -70,6 +70,7 @@ def platform_added(app_name, platform, output):
70
70
assert json ['nativescript' ]['tns-' + platform_string ]['version' ] is not None , \
71
71
'tns-' + platform_string + ' not available in package.json of the app.'
72
72
73
+ # noinspection PyUnusedLocal
73
74
@staticmethod
74
75
def build (app_name , platform = None , release = False , provision = Settings .IOS .DEV_PROVISION , for_device = False ,
75
76
bundle = False , aot = False , uglify = False , snapshot = False , log_trace = False , output = None , app_data = None ):
@@ -82,13 +83,13 @@ def build(app_name, platform=None, release=False, provision=Settings.IOS.DEV_PRO
82
83
# Assert app data
83
84
if app_data is not None :
84
85
# Assert app type
85
- if app_data .type is AppType .JS :
86
+ if app_data .app_type is AppType .JS :
86
87
pass
87
- elif app_data .type is AppType .TS :
88
+ elif app_data .app_type is AppType .TS :
88
89
pass
89
- elif app_data .type is AppType .NG :
90
+ elif app_data .app_type is AppType .NG :
90
91
pass
91
- elif app_data .type is AppType .SHARED_NG :
92
+ elif app_data .app_type is AppType .SHARED_NG :
92
93
pass
93
94
94
95
# Assert size
0 commit comments