Commit Graph

630 Commits

Author SHA1 Message Date
Laurent Sansonetti
c2da1b0c89 re-create the payload library if the librubymotion-static.a archive changed 2014-04-27 23:47:46 +02:00
Laurent Sansonetti
4675a36840 fix typo 2014-04-27 17:41:02 +02:00
Laurent Sansonetti
59d23e6217 better fix for when we need to rebuild classes.dex if a .class file changed 2014-04-27 16:26:30 +02:00
Laurent Sansonetti
8c43ad838e don’t print when creating java files, to not confuse the user with how rubymotion works 2014-04-27 16:25:55 +02:00
Laurent Sansonetti
aeba249d76 on-demand build for classes.dex, AndroidManifest.xml, apk file 2014-04-27 16:16:58 +02:00
Laurent Sansonetti
5451197a33 create the debug keystore regardless if we have to create the apk file 2014-04-27 16:07:36 +02:00
Laurent Sansonetti
0688166578 on demand build for ruby bit code, payload library, java/class files (+ remove old java/class files that are not referred in the class map anymore) 2014-04-27 16:03:51 +02:00
Laurent Sansonetti
fc4785d58c follow java map generation change 2014-04-26 14:08:25 +02:00
Laurent Sansonetti
9a3f14022c support for Java interfaces when generating the Java description of Ruby classes 2014-04-25 15:32:12 +02:00
Laurent Sansonetti
ec7abfe3f3 add .gitignore android project file 2014-04-24 13:50:29 +02:00
Laurent Sansonetti
836f6bc0ab `motion create —template=android’ now creates an empty MainActivity class 2014-04-24 13:48:43 +02:00
Laurent Sansonetti
737f50d95b log chromium messages (useful to debug apps using webkit) 2014-04-21 19:14:58 +02:00
Laurent Sansonetti
03b12ab6e1 resource directories are now considered “assets” and not Android resources (which are apparently a completely different beast) 2014-04-21 19:14:23 +02:00
Eloy Durán
2c32806de1 [builder] Also compile .strings files inside other bundles. 2014-04-17 16:23:55 +02:00
Hwee-Boon Yar
165f30fd45 [builder] Compile .strings resource files as binary plists.
Signed-off-by: Eloy Durán <eloy.de.enige@gmail.com>
2014-04-17 16:23:55 +02:00
Laurent Sansonetti
a192545b12 log errors from AndroidRuntime (ex. app crashing due to an uncaught exception) 2014-04-16 14:12:47 +02:00
Laurent Sansonetti
cf46459c2e clean up local references created by the ruby source init functions 2014-04-16 13:08:35 +02:00
Watson
357b1bd8b1 Revert "use a cached file dependencies in order to reduce the build time"
This reverts commit ee514286cf.

Now, detecting build order is much faster without cache by previous commit.
So, let's revert this commit.
2014-04-12 13:51:24 +09:00
Watson
0e5ad9ac90 more reduce the time of detecting build order. Thanks to Ignacio Piantanida for the patch.
http://hipbyte.myjetbrains.com/youtrack/issue/RM-466
2014-04-12 13:49:27 +09:00
Eloy Durán
87ea27d251 [test] rake spec:all now runs on all installed iOS and OS X sdks. 2014-04-11 12:26:30 +02:00
Laurent Sansonetti
504994345b ditto 2014-04-10 15:29:00 +02:00
Laurent Sansonetti
68a3f6ab45 make sure .class files as well as the DEX file are really re-generated every time (for now) 2014-04-10 15:28:59 +02:00
Watson
7e5cbcc514 add comment 2014-04-10 21:36:45 +09:00
Watson
ee514286cf use a cached file dependencies in order to reduce the build time
http://hipbyte.myjetbrains.com/youtrack/issue/RM-466

* before
  % time rake
  ... snip ...
  rake  18.01s user 1.64s system 89% cpu 21.877 total

* after
  % time rake
  ... snip ...
  rake  2.74s user 1.41s system 119% cpu 3.460 total
2014-04-10 17:15:08 +09:00
Watson
d1d3952c46 memorize the calculated file dependencies. Thanks to Ignacio Piantanida for the patch.
http://hipbyte.myjetbrains.com/youtrack/issue/RM-466

* before
  % time rake
  ... snip ...
  rake  38.41s user 2.77s system 101% cpu 40.515 total

* after
  % time rake
  ... snip ...
  rake  18.01s user 1.64s system 89% cpu 21.877 total
2014-04-10 17:11:04 +09:00
Laurent Sansonetti
1581fd16b4 honor the `app.files’ variable 2014-04-09 17:09:27 +02:00
Watson
402a942918 fix a build error in environment which uses Ruby 1.8
http://hipbyte.myjetbrains.com/youtrack/issue/RM-463
2014-04-09 14:16:02 +09:00
Eloy Durán
7d2ea52374 [bacon-ui] Get rid of a false positive warning. 2014-04-07 15:01:05 +02:00
Laurent Sansonetti
9bab907d2c link with rubymotion.jar 2014-04-05 18:51:56 +02:00
Mark Rickert
378aa6730b Add gemspec to Gemfile for gem template.
Since spec.add_development_dependency "rake" is already in the gemspec template, we don't need it in the Gemfile and we should always defer to the gemspec for our dependencies except for advanced use cases.
2014-04-03 10:33:46 +09:00
Watson
c7aa81f8cf update variable name
because it contains also non bridge support files.
2014-04-03 10:11:31 +09:00
Hwee-Boon Yar
0850987a37 Include app's source code when running rake ctags 2014-04-03 09:15:23 +09:00
Laurent Sansonetti
dc6e39e351 don’t try to force-kill the app if it’s already dead 2014-03-26 17:44:11 +01:00
Laurent Sansonetti
2170e6098d follow compiler changes, which now generates bitcode instead of assembly, we now pass the bitcode file to the linker 2014-03-26 15:39:20 +01:00
Laurent Sansonetti
3d8d36ed61 kill the app when pressing ^C 2014-03-26 13:24:13 +01:00
Laurent Sansonetti
7e338ef32b this function isn't used anymore 2014-03-26 13:09:27 +01:00
Laurent Sansonetti
e78dd0fd49 build ruby object files into the obj/local/<arm-abi-directory-name> directory, similar to how NDK projects work 2014-03-26 00:48:04 +01:00
Laurent Sansonetti
7b7a8894d5 the -mtune flag should be passed to the compiler, not the assembler 2014-03-26 00:46:54 +01:00
Laurent Sansonetti
dc3c5b2737 use proper armeabi directory name when compiling for an arch 2014-03-26 00:35:30 +01:00
Laurent Sansonetti
31c71c14ec use proper arch-related flags 2014-03-26 00:35:29 +01:00
Watson
0f9242dd20 fix a build error when “Resource” is contained as resource directory path
This should fix the following case which uses "HTBResources.bundle" as resource.

```
% rake
    ERROR! An iOS application cannot be installed if it contains a directory called `resources'. Please rename the directory at path `vendor/Pods/Resources/HTBResources.bundle' to, for instance, `vendor/Pods/Resources/assets'.
````
2014-03-24 08:29:20 +09:00
Watson
7bb8f69a2e fix a bug where nested array cannot be handled
it cause an error If app.resources_dirs has nested array

  app.resources_dirs << ['Images']

```
% rake
rake aborted!
no implicit conversion of Array into String
/Library/RubyMotion/lib/motion/project/template/ios.rb:51:in `exists?'
/Library/RubyMotion/lib/motion/project/template/ios.rb:51:in `block in pre_build_actions'
/Library/RubyMotion/lib/motion/project/template/ios.rb:50:in `each'
/Library/RubyMotion/lib/motion/project/template/ios.rb:50:in `pre_build_actions'
/Library/RubyMotion/lib/motion/project/template/ios.rb:67:in `block (2 levels) in <top (required)>'
/Library/RubyMotion/lib/motion/project/template/ios.rb:122:in `block in <top (required)>'
Tasks: TOP => build:simulator
(See full trace by running task with --trace)
```
2014-03-23 02:38:06 +09:00
Watson
a4cd4a4cec fix build error if resource directory does not exits
This bug is introduced by 064672443d

% motion create hello && cd hello
% rm -rf resources
% rake
rake aborted!
No such file or directory @ dir_initialize - ./resources
/Library/RubyMotion/lib/motion/project/template/ios.rb:51:in `open'
/Library/RubyMotion/lib/motion/project/template/ios.rb:51:in `entries'
/Library/RubyMotion/lib/motion/project/template/ios.rb:51:in `block in pre_build_actions'
/Library/RubyMotion/lib/motion/project/template/ios.rb:50:in `each'
/Library/RubyMotion/lib/motion/project/template/ios.rb:50:in `pre_build_actions'
/Library/RubyMotion/lib/motion/project/template/ios.rb:66:in `block (2 levels) in <top (required)>'
/Library/RubyMotion/lib/motion/project/template/ios.rb:121:in `block in <top (required)>'
Tasks: TOP => build:simulator
(See full trace by running task with --trace)
2014-03-23 00:39:16 +09:00
Laurent Sansonetti
ad00a5dc04 fix main activity default value 2014-03-22 13:44:55 +01:00
Eloy Durán
064672443d [iOS] Fail build if one of the resources is a dir called `Resources'.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-450.
2014-03-21 17:07:53 +01:00
Laurent Sansonetti
2e53e30346 better logging: cut the log before starting the activity and silence other packages and showing the log 2014-03-12 19:11:44 +01:00
Laurent Sansonetti
daf264f35a payload logging in debug mode 2014-03-12 17:51:31 +01:00
Laurent Sansonetti
515e62b9d8 rake {simulator,device} now shows application logs in the terminal after running the main activity 2014-03-12 17:51:31 +01:00
Eloy Durán
21e0311921 [UI spec] Make tap work with UISwitch.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-440.
2014-03-05 17:28:00 +01:00
Laurent Sansonetti
aef3292cf6 generate lib/motion/version.rb with magic comment 2014-03-05 13:04:46 +01:00