Skip to content

Commit

Permalink
Merge pull request #7060 from feons/TIMOB-18199
Browse files Browse the repository at this point in the history
[TIMOB-18199] iOS: iOS modules can not build if there any JS files inside assets folder
  • Loading branch information
cheekiatng committed Aug 24, 2015
2 parents 0bfd434 + dc447a5 commit bef95eb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions support/iphone/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,6 @@ def __init__(self, project_dir, appid, name, deploytype):
self.classes_dir = os.path.join(self.iphone_dir,'Classes')
self.assets_dir = os.path.join(self.iphone_dir,'assets')

if deploytype == 'commonjs':
self.assets_dir = os.path.join(self.iphone_dir, '..', 'assets')

self.modules = []
self.modules_metadata = []
self.exports = []
Expand Down Expand Up @@ -432,7 +429,11 @@ def compileProject(self,xcode=False,devicefamily='ios',iphone_version='iphoneos'
softlink_for_simulator(self.project_dir,app_dir)

def compile_module(self):
root_asset = self.compile_commonjs_file(self.appid+'.js', os.path.join(self.assets_dir, self.appid+'.js'))
appid_js_file = os.path.join(self.assets_dir, self.appid+'.js')
if not os.path.exists(appid_js_file):
appid_js_file = os.path.join(self.project_dir, '..', 'assets', self.appid+'.js')

root_asset = self.compile_commonjs_file(self.appid+'.js', appid_js_file)

js_files = []
for root, dirs, files in os.walk(self.assets_dir, True, None, True):
Expand Down

0 comments on commit bef95eb

Please sign in to comment.