-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruboto-core_conversion.txt
75 lines (62 loc) · 2.78 KB
/
ruboto-core_conversion.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Documenting steps to convert ruboto-irb over to ruboto-core
gem install ruboto-core
(From project project parent directory)
ruboto gen app --name "Ruboto IRB" --activity IRB --package org.ruboto.irb --path ./Ruboto_IRB --target android-8
Mods to default app gen
- Remove res/layout/main.xml
- Remove default icons for different resolutions
- Modified res/values/strings.xml app name IRB to Ruboto IRB
Copy from original project
- ruboto-key.keystore
- keystore values into build.properties (key.store, key.alias, key.store.password, key.alias.password)
- RubotoDialog.java and change package to org.ruboto (now added back into ruboto-core)
- res/drawable directory (change name app_icon to icon)
- assets/demo-scripts directory (removed demo-ruboto-irb and ruboto)
- res/layout/empty_relative_layout.xml
- local.properies.EXAMPLE
- .gitignore
- README.markdown
- libraries (jruby-jar ones are not ready for use yet)
Generate custom activites, add to manifest, write script
ruboto gen class Activity --name ShortcutBuilder
ruboto gen class Activity --name ScriptLauncher (for shortcuts)
Bring over components of the old manifest
- Permissions
- Screen resolution
- Prefers sdcard
- Version #
- Version name
- Activity definition of RobotoActivity & Dialog
- Intent definition for browsing *.rb
- Activity definition for ShortcutBuilder and ScriptLauncher
Additional classes:
- Created RubotoEditText to use for LineNumbeEditText
Modified irb.rb
- Begin with demo-ruboto-irb.rb
- Setup $SCRIPT_DIR variable instead of assuming cwd
- Fixed bug reloading scripts from assets
- Copy scripts if they don't exist
- Add in 3.0 functionality
Changes already made in github:
- Remove "abstract" on RubotoActivity
- Added RubotoDialog.java and change package to org.ruboto
- Modified ruboto.rb to handle both RubotoActivity and RubotoDialog
- Switch to launching activities using class instead of class name
Changes made to this source (suggested for ruboto-core):
- Added printStackTrace to RubotoActivity when script fails
- roboto.rb - Added the ability to import widgets from other packages than android.widget
- Added array to hold menu_items to fix bug where menus didn't work
- callback gen needs to set run's ruby_method to on_run (all callbacks that don't start with "on")
- change all attempts to print to ruby's error stream to just print (forcing it to logcat)
Needed:
- Rake to setup libraries
- Better way to force scripts to reload
Mods to demo scripts
- Modified demo date dialog to use java dates
- Modified script_market to not use Script.getDir
To do:
- Remove menu and code to reload irb.rb
- Work with old SDKs
- Stack problem
- Split tab contents into separate scripts
- Make a way to encapsulate a view into its own object