lib/ruboto/commands/base.rb in ruboto-0.10.0 vs lib/ruboto/commands/base.rb in ruboto-0.10.1
- old
+ new
@@ -102,11 +102,11 @@
update_assets
update_ruboto true
update_icons true
update_classes nil, true
update_jruby true if with_jruby
- update_dx_jar true unless params['with-jruby'].value
+ update_dx_jar true if with_jruby
update_core_classes 'include'
log_action("Generating the default Activity and script") do
generate_inheriting_file "Activity", activity, package
end
@@ -308,28 +308,9 @@
def run
abort("specify 'implements' only for Activity, Service, BroadcastReceiver, PreferenceActivity, or TabActivity") unless
%w(Activity Service BroadcastReceiver PreferenceActivity TabActivity).include?(params["class"].value) or params["implements"].value == ""
generate_core_classes [:class, :method_base, :method_include, :method_exclude, :implements, :force].inject({}) {|h, i| h[i] = params[i.to_s].value; h}
- end
- end
-
- mode "key" do
- option("keystore"){
- default "~/.android/production.keystore"
- description "path to where the keystore will be saved. defaults to ~/.android/production.keystore"
- }
-
- option("alias"){
- required
- description "The 'alias' for the key. Identifies the key within the keystore. Required"
- }
-
- def run
- keystore = params['keystore'].value
- key_alias = params['alias'].value
-
- `keytool -genkey -keyalg rsa -keysize 4096 -validity 1000000 -keystore #{keystore} -alias #{key_alias}`
end
end
end
mode "update" do