diff --git a/Gemfile.lock b/Gemfile.lock index 2ec13b9..677958b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,12 +1,12 @@ PATH remote: . specs: - bluepotion (0.0.8) + bluepotion (0.1.0) GEM remote: https://rubygems.org/ specs: - newclear (1.0) + newclear (1.1) reset-sim rake (10.4.2) reset-sim (1.0) diff --git a/README.md b/README.md index 0a78972..e28a1cc 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,45 @@ BluePotion ----------- -Like [RedPotion](http://redpotion.org), but for RubyMotion Android. +## Warning, BluePotion is an alpha release. -## BluePotion is pre-alpha right now! +BluePotion is the Android version of [RedPotion](http://redpotion.org). We're spending a lot of time working on it right now. It's currently in Alpha. + +We are building RMQ Android, ProMotion Android, and BluePotion all at once, and they all are inside BluePotion. + +We're supporting Android XML layouts, using RMQ stylesheets the standard Android way, and eventually an exact copy of RedPotion's layout system. + +Many things work, but there is a lot to do, so use it at your own risk. + +To try it out: + +``` +gem install bluepotion +bluepotion create myapp +cd myapp +bundle +rake newclear +``` + +In your REPL, do this for fun: + +``` +rmq.log_tree +find(Potion::View).log +# etc +``` + +If you haven't setup Android yet, read this first: [Gant Laborde's post on Genymotion](http://www.iconoclastlabs.com/blog/rubymotion-android-in-the-emulator-with-genymotion). + + +Contributing + +0. Create an issue in GitHub to make sure your PR will be accepted. +1. Fork it +2. Create your feature branch (`git checkout -b my-new-feature`) +3. Write tests for your changes +4. Make your changes +5. Document your changes in the `docs` folder +6. Commit your changes (`git commit -am 'Add some feature'`) +7. Push to the branch (`git push origin my-new-feature`) +8. Create new Pull Request diff --git a/app/screens/home_screen.rb b/app/screens/home_screen.rb index fcc3c92..b64b1b3 100644 --- a/app/screens/home_screen.rb +++ b/app/screens/home_screen.rb @@ -10,6 +10,7 @@ def load_view Potion::LinearLayout.new(self.activity) #Potion::FrameLayout.new(self.activity) + #Potion::RelativeLayout.new(self.activity) end def on_load diff --git a/app/stylesheets/home_screen_stylesheet.rb b/app/stylesheets/home_screen_stylesheet.rb index 46a4e54..da2c9af 100644 --- a/app/stylesheets/home_screen_stylesheet.rb +++ b/app/stylesheets/home_screen_stylesheet.rb @@ -7,9 +7,9 @@ def root_view(st) end def logo(st) - st.layout = {t: 20, w: 100, h: 100, centered: :horizontal} - #st.layout_center_horizontal = true + st.layout = {t: 0, w: 100, h: 100, centered: :horizontal} st.image = image.resource("bluepotion_logo") + #st.layout_center_horizontal = true end def hello_label(st) @@ -19,6 +19,7 @@ def hello_label(st) end def drink_button(st) + #st.layout = {t: 10, l: 40, fr: 40, fb: 10} standard_button(st) st.background_color = color.mustard st.color = color.black diff --git a/lib/project/version.rb b/lib/project/version.rb index fcb6da9..a04eea2 100644 --- a/lib/project/version.rb +++ b/lib/project/version.rb @@ -1,3 +1,3 @@ module BluePotion - VERSION = "0.0.8" + VERSION = "0.1.0" end