Commit Graph

653 Commits

Author SHA1 Message Date
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
Laurent Sansonetti
0f4374526a remove magic encoding comments from template files (which are not needed) 2014-03-05 12:27:58 +01:00
Laurent Sansonetti
f29d89f89a add magic encoding comments to all ruby source files 2014-03-05 12:20:20 +01:00
Eloy Durán
8407a1cfc0 Replace all pretty quotes with ASCII. 2014-03-04 19:05:57 +01:00
Eloy Durán
3391825c02 [iOS] Make flick UI test helper work on iOS 7.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-437
2014-03-04 15:21:50 +01:00
Eloy Durán
c7a0e3ec72 [sim] Fail when launching in BG but not having configured the app.
Otherwise this leads to an ugly ‘failed to start’ error.
2014-03-03 15:08:07 +01:00
Eloy Durán
b1d6162bc5 [iOS] The iPad 2 (non-retina) also has iOS 7 support. 2014-03-03 12:49:29 +01:00
Eloy Durán
8785fed664 [CodeSign] Another small cleanup. 2014-02-27 16:20:49 +01:00
Eloy Durán
c829719530 [CodeSign] Cleanup. 2014-02-27 16:11:47 +01:00
Eloy Durán
0b2a392f98 [CodeSign] Improve cert finding by only checking codesign identities.
Also move the logic out into a separate util module.

Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-399.
2014-02-27 16:01:20 +01:00
Eloy Durán
ac0fa61943 [rake/iOS] Fail when trying to use retina=false on iOS >= 7. 2014-02-26 14:22:17 +01:00
Eloy Durán
e06180dbb9 [rake/iOS] Fail when targeting a sim SDK older than deployment target. 2014-02-26 14:03:58 +01:00
Eloy Durán
9f564f0c74 [Command] Use Motion::Util::Version to compare. 2014-02-26 13:50:06 +01:00
Eloy Durán
210a577317 [Version] Add a util class that can be used to compare versions. 2014-02-26 13:27:29 +01:00
Laurent Sansonetti
cde9688ca3 move java classes generation before java compilation 2014-02-18 18:07:36 +01:00
Laurent Sansonetti
d5311e4c04 static generation of java files based on compiler map files 2014-02-18 18:03:14 +01:00
Laurent Sansonetti
1fdf2ba2cc pass -g (not sure if it matters...) 2014-02-18 18:03:14 +01:00
Laurent Sansonetti
7df3cab085 hide stdout output by default (unless --trace is given) 2014-02-18 00:20:36 +01:00
Laurent Sansonetti
ac2a8259e2 create empty build/jni/Android.mk file needed for ndk-gdb 2014-02-17 23:57:45 +01:00
Laurent Sansonetti
66b63363cb rake debug=1 support (work in progress) 2014-02-17 23:54:08 +01:00
Laurent Sansonetti
fc71d725f6 refactoring 2014-02-17 16:28:41 +01:00
Laurent Sansonetti
b7d19d7bdd remove hacks 2014-02-12 16:32:50 +01:00
Mark Rickert
b03584250f Ignore .dat* files on new projects. 2014-02-10 17:36:25 +01:00
Eloy Durán
8354e398e6 [Vendor] When an explicit BS file exists in lib root, use that.
This allows a lib author to override the BS metadata by (manually)
creating and supplying one, which seems to be the case with Joybox.
2014-02-10 17:32:34 +01:00
Eloy Durán
d21302479b [Vendor] Cannot reuse opts[:cflags] if it has been deleted before. 2014-02-07 11:25:37 +01:00
Laurent Sansonetti
6e9afb3248 use app.api_version when generating AndroidManifest.xml 2014-02-06 12:45:09 +01:00
Laurent Sansonetti
3ca2306019 add support for sub-activities 2014-02-06 12:45:09 +01:00
Laurent Sansonetti
d127fd1d32 support for vendored jars 2014-02-06 12:45:09 +01:00