Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDK 1.8 #58

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions doctor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def execute silent = true
else
@errors = []
verify_swift
verify_java
verify_community_templates
verify_community_commands
print_environment_info unless silent
Expand Down Expand Up @@ -177,6 +178,22 @@ def swift_staged?
def swift_runtime?
Dir["#{xcode_frameworks_path}/libswift*.dylib"].any?
end

def verify_java
unless java?
@errors << <<-S
Java Development Kit (JDK) 1.8 is not installed.
To fix this error, download here:

https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
S
end
end

def java?
`/usr/libexec/java_home -F -v 1.8`
$?.success?
end

def verify_community_templates
unless rubymotion_templates?
Expand Down