droiuby

所属分类:android开发
开发工具:Ruby
文件大小:0KB
下载次数:0
上传日期:2014-06-30 11:25:26
上 传 者sh-1993
说明:  使用Ruby的Android应用程序开发平台。使用我们都喜欢的编程语言Ruby快速开发android应用程序。杠杆...,
(App development platform for Android using Ruby. Develop android apps rapidly using the programming language that we all love, Ruby. Leveraging the JRuby runtime, Droiuby is designed as an open environment where you can use your own framework to develop apps.)

文件列表:
.classpath (4527, 2014-06-30)
.jrubyrc (19, 2014-06-30)
.project (819, 2014-06-30)
.rvmrc (31, 2014-06-30)
.settings/ (0, 2014-06-30)
.settings/org.eclipse.jdt.core.prefs (587, 2014-06-30)
AndroidManifest.xml (1392, 2014-06-30)
Gemfile (143, 2014-06-30)
Gemfile.lock (936, 2014-06-30)
LICENSE (592, 2014-06-30)
Rakefile (4053, 2014-06-30)
assets/ (0, 2014-06-30)
assets/droiuby/ (0, 2014-06-30)
assets/droiuby/layout_error.rb (0, 2014-06-30)
assets/droiuby/layout_error.xml (0, 2014-06-30)
assets/hello_world/ (0, 2014-06-30)
assets/hello_world/_hello_world.xml (39, 2014-06-30)
assets/hello_world/config.xml (300, 2014-06-30)
assets/hello_world/main.rb (1737, 2014-06-30)
assets/hello_world/main.xml (1409, 2014-06-30)
assets/home/ (0, 2014-06-30)
assets/home/config.droiuby (287, 2014-06-30)
assets/home/home.rb (302, 2014-06-30)
assets/home/home.xml (407, 2014-06-30)
assets/launcher.zip (2719591, 2014-06-30)
assets/lib/ (0, 2014-06-30)
assets/lib/console/ (0, 2014-06-30)
assets/lib/console/ajax-loader.gif (8787, 2014-06-30)
assets/lib/console/bg-form-field.gif (97, 2014-06-30)
assets/lib/console/cmdline.js (7687, 2014-06-30)
assets/lib/console/index.html (1355, 2014-06-30)
assets/lib/console/jquery.js (92555, 2014-06-30)
assets/lib/console/reload.png (5618, 2014-06-30)
assets/lib/console/style.css (2098, 2014-06-30)
assets/lib/console/upload.png (2675, 2014-06-30)
assets/test/ (0, 2014-06-30)
assets/test/main.xml (43, 2014-06-30)
... ...

Droiuby ======= What is it? ----------- Droiuby is an android client and framework that allows you to quickly create android apps for rapid prototyping capitalizing on the expressive and dynamic nature of the ruby language. Since it sits on top of the Android Framework (and not HTML), droiuby applications are also able to access features comparable to a native app, this includes the devices' hardware (GPS, Camera,accelerometer) and facilitate on-device interaction using an event driven framework. A library is provided that wraps native controls that significantly simplifies common tasks usually done in a very verbose manner using Java. The droiuby framework also treats web apps as first class citizens and allows you to create droiuby apps with code and assets that are served entirely from the web. How does it work? ----------------- The Droiuby framework consists of the following: 1.) An opensource Android app (droiuby-core) - Pure Java code that handles Android bootstrapping, debugging and JRuby instance management etc. 2.) The Droiuby Framework - Consists of ruby code that serves as the bridge between your app and Java. The framework wraps Android Objects in to easy to use Ruby Wrappers. Remember this is still highly experimental and things could change really quickly. Why use Droiuby? ---------------- - You are experienced with ruby and rails projects and want to try mobile app development. - The Android development workflow feels too cumbersome and slow. - You are already an android developer and is interested to find out how a language like ruby can lessen the frustration on working with the Android SDK and Framework. (see Animation - Ruby vs Java) - You want something to quickly demo before you dwell into hardcore Android development. The rapid feedback and "code and refresh" nature of droiuby is perfect for rapid prototyping. - You want to create a hybrid native/ web app. Droiuby allows all or part of your app assets to be served via a web app. Installation / Documentation / Usage ------------------------------------ The recommended way is using through the droiuby gem gem install droiuby Then create your first app drby new sample Please refer to the wiki for additional docs https://github.com/jedld/droiuby/wiki Samples ------- You can find sample applications here: https://github.com/jedld/droiuby_samples Below is an example on how the droiuby framework simplifies some tasks: Animation - Ruby vs Java scaling a view and then exit left (JAVA): View view = (View)context.findViewById(R.id.Text1); AnimatorSet set = new AnimatorSet(); ObjectAnimator animator = ObjectAnimator.ofFloat(view, "scaleX", 1.0f, 0.5f); animator.setDuration(250); ObjectAnimator animator2 = ObjectAnimator.ofFloat(view, "scaleY", 1.0f, 0.5f); animator.setDuration(250); set.playTogether(animator, animator2); set.addListener(new AnimatorListener() { @Override public void onAnimationCancel(Animator animation) { // TODO Auto-generated method stub } @Override public void onAnimationEnd(Animator animation) { WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); Display display = wm.getDefaultDisplay(); ObjectAnimator animator = ObjectAnimator.ofInt(view, "left", view.getLeft(), display.getWidth()); animator.setDuration(250); animator.addListener(finalListener); animator.start(); } @Override public void onAnimationRepeat(Animator animation) { // TODO Auto-generated method stub } @Override public void onAnimationStart(Animator animation) { // TODO Auto-generated method stub } }); set.start(); Ruby (Droiuby Framework): view = ('#Text1') view.animate { |v| v.scale_x 1.0, 0.5, {duration: 250} v.scale_y 1.0, 0.5, {duration: 250} }.after( view.animate { |v| v.left v.left, Display.width, {duration: 250} } ).start Issues ------ - Still alpha, a lot still needs to be done to support all of features of the Android SDK - Some app features simply cannot be done during runtime (e.g. app permissions, some UI styles, custom Views). A way to workaround this is to fork the Droiuby core app yourself and add the necessary modifications. - Slow initial loading of apps Similar Projects ---------------- * ruboto - Another really good ruby on android framework. * phonegap - Uses HTML and Javascript and phonegap provides the bridge to the Android SDK layer. * appcelerator - Have not tried this but looks similar to phonegap. If you think it looks cool or not, I'm happy for some feedback and suggestions License ------- Copyright 2012 Joseph Emmanuel Dayo Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

近期下载者

相关文件


收藏者