Skip to content

Commit

Permalink
Update core
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoang lee authored and Hoang lee committed Mar 1, 2022
1 parent 0285413 commit afa0567
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"vn3-ios-build": "./dist/bin/ios/build.js",
"vn3-ios-serve": "./dist/bin/ios/serve.js",
"vn3-setup": "./dist/bin/setup/prepare.js",
"vn3-prepare-software-build":"./dist/bin/electron/prepare-build.js"
"vn3-prepare-software-build": "./dist/bin/electron/prepare-build.js"
},
"repository": {
"type": "git",
Expand Down
1 change: 0 additions & 1 deletion platforms/ios/prepare.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#import the xcodeproj ruby gem
require 'xcodeproj'
require 'json'
app_id = ARGV[0]
files = []
#define the path to your .xcodeproj file
project_path = 'vnf3/vnf3.xcodeproj'
Expand Down
17 changes: 17 additions & 0 deletions platforms/ios/swiftBuild.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#import the xcodeproj ruby gem
require 'xcodeproj'
require 'json'
fileName = ARGV[0]
#define the path to your .xcodeproj file
project_path = 'vnf3/vnf3.xcodeproj'
#open the xcode project
project = Xcodeproj::Project.open(project_path)
#find the group on which you want to add the file
group = project.main_group["vnf3"]
#get the file reference for the file to add
main_target = project.targets.first
files = []
files[0] = group.new_file(fileName)
#add the file reference to the projects first target
main_target.add_resources(files)
project.save

0 comments on commit afa0567

Please sign in to comment.