Module: ApkToJava::EnvSetup
- Included in:
- Operations
- Defined in:
- lib/apk_to_java.rb
Instance Method Summary collapse
Instance Method Details
#env_setup? ⇒ Boolean
29 30 31 |
# File 'lib/apk_to_java.rb', line 29 def env_setup? supported_os.env_setup? end |
#initialize_setup ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/apk_to_java.rb', line 17 def initialize_setup print_info('Initializing setup!!') os = supported_os if !os.nil? os.install_dex2jar unless os.dex_to_jar_installed? os.install_jadx unless os.jadx_installed? print_success('Setup done :)') else print_error 'Sorry! apkToJava supports only MAC and Linux' end end |
#supported_os ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/apk_to_java.rb', line 9 def supported_os if ApkToJava::OS.mac? ApkToJava::MacSetup.new elsif ApkToJava::OS.linux? ApkToJava::LinuxSetup.new end end |