Skip to content

Commit

Permalink
Get iOS path from calling directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeasmine committed Nov 30, 2021
1 parent 2e60704 commit 8ec7630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oscli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
class InstallCommand < Clamp::Command
option [ "-t", "--type"], "TYPE", "project type (ios, android)"
option ["--target"], "TARGETNAME", "name of the App target to use. Defaults to the entrypoint name"
option ["--path"], "PATH", "path to the project directory"
option ["--entrypoint"], "ENTRYPOINT", "Name of the target XCProject (ios) or appclassfile (android)"
option ["--lang"], "LANG", "programming language to use for ios (objc, swift) or android (java, kotlin)"
option ["--appid"], "[APPID]", "OneSignal App ID"
Expand Down Expand Up @@ -46,6 +45,7 @@ def execute
if !target
target = entrypoint
end
path = Dir.pwd
ios_proj = OSProject::IOS.new(path, target, language, appid)
xcodeproj_path = path + '/' + entrypoint + '.xcodeproj'
ios_proj.install_onesignal!(xcodeproj_path)
Expand Down

0 comments on commit 8ec7630

Please sign in to comment.