Commit Graph

496 Commits

Author SHA1 Message Date
Eloy Durán
44e93a2759 [vendor] Use custom XCPretty printer when building an Xcode project. 2013-12-13 14:52:18 +01:00
Eloy Durán
c6be6e5bde [UIAutomation] Make the drag command actually send events again.
However, for the moment this only works with 1 touch at a time.
2013-12-12 22:02:49 +01:00
Eloy Durán
dba87148f2 Revert use of PublicAutomation lib. 2013-12-12 22:02:49 +01:00
Eloy Durán
f2c7b956c9 [UIAutomation] Make tap work again. 2013-12-12 22:02:49 +01:00
Eloy Durán
d7f3053d42 [UIAutomation] Link the PublicAutomation objects into the app in spec mode. 2013-12-12 22:02:49 +01:00
Watson
1f2f3b0c4f Revert "fix where Boxed#new doesn't work for GLKKit structure."
This reverts commit ac89cf6b4b.

http://hipbyte.myjetbrains.com/youtrack/issue/RM-342
Because this patch causes a conflict between method's structure signature and bridgesupport's structure signature
2013-12-11 17:14:46 +09:00
Laurent Sansonetti
1104fe01ed [OSX] add app.codesign_for_release (default to true) which controls if we need to code-sign for build:release 2013-12-09 15:19:15 +01:00
Laurent Sansonetti
7c758a43a7 in case app.resource_dirs contain duplicated entries, don't freak out 2013-12-09 15:03:11 +01:00
Eloy Durán
c761aefa58 [vendor] Ensure that all cflags are properly quoted.
Before it looked like the `-isysroot \"#{sdk_path}\"` part of the cflags
would terminate the string passed to the `--cflags` option.

Now all the contents of the `--cflags` option is quoted using
single-quotes instead.
2013-12-05 12:22:22 +01:00
toshiwo
0ba40abcb6 support nested directory
* https://github.com/HipByte/RubyMotion/pull/144#issuecomment-29203864
2013-11-25 23:28:21 +09:00
toshiwo
21574894d6 support dynamic name directory in template 2013-11-25 23:28:15 +09:00
Laurent Sansonetti
52753a7c13 create ~/.android/debug.keystore if it does not exist 2013-11-21 18:41:59 +01:00
Laurent Sansonetti
d458b2e7e5 update tools to the latest SDK/NDK versions 2013-11-21 18:41:25 +01:00
Eloy Durán
5be6d293e1 [spec] Deprecate block to the tests method of the view test helpers. 2013-11-19 16:55:04 +01:00
Eloy Durán
99df3e011b [rake] Raise error if cleaning does not succeed.
Fixes https://hipbyte.freshdesk.com/helpdesk/tickets/1359.
2013-11-18 11:49:09 +01:00
Watson
d963c6489d move special configuration for iOS/OSX platform from gen_bridge_metadata() 2013-11-11 10:16:53 +09:00
Watson
51ac31a777 [OSX] fix a bug on OSX platform where compiler flags for iOS are passed when it generates bridgesupport file for vendor library
http://hipbyte.myjetbrains.com/youtrack/issue/RM-315
2013-11-11 08:11:16 +09:00
Laurent Sansonetti
877ebe99fb only capture stdout if install_only is set (used by the profile task), fixes the output of 'rake device' 2013-11-07 13:19:12 +01:00
Eloy Durán
ae4fe2dddc Temp work around issue with UIDeviceFamily for release/profile.
The Info.plist is forced to be recreated on each build and uses ints for
UIDeviceFamily when profiling and strings otherwise.

http://hipbyte.myjetbrains.com/youtrack/issue/RM-305
2013-11-02 17:14:29 +01:00
Watson
05d8aecc9f fix RM-305
http://hipbyte.myjetbrains.com/youtrack/issue/RM-305
2013-11-02 23:00:27 +09:00
Laurent Sansonetti
cf145c8df4 add a hidden variable to force symbol strip (ex. rake device __strip__=1) 2013-11-01 17:50:15 +01:00
Eloy Durán
3207c10cfb [profiler] Configure Instruments to optionally launch specific template. 2013-11-01 14:58:22 +01:00
Eloy Durán
600f727117 [profiler] Replace templates list with hardcoded lists. 2013-11-01 14:58:22 +01:00
Eloy Durán
40e9e8c2e1 [profiler] Add tasks to list available instruments templates. 2013-11-01 14:58:22 +01:00
Eloy Durán
f81235d07b [profiler] Make the OS X shortcut task use development mode. 2013-11-01 14:58:22 +01:00
Eloy Durán
ca1aee4a81 [profiler] Inherit ENV from parent process. 2013-10-31 22:46:27 +01:00
Eloy Durán
d7cad5493d [profiler] Add shortcut for OS X profile:release. 2013-10-31 22:12:44 +01:00
Eloy Durán
54f3332c76 [profiler] Add OS X tasks for development and release mode. 2013-10-31 22:12:44 +01:00
Laurent Sansonetti
b0dabd8291 add 'rake profile' task as a shortcut to 'rake profile:simulator' 2013-10-31 22:08:44 +01:00
Eloy Durán
37b1c58279 [profiler] Properly describe OS X rake task. 2013-10-31 18:07:40 +01:00
Eloy Durán
2b0143e194 Cleanup. 2013-10-31 18:06:45 +01:00
Eloy Durán
19e9bddef3 [profiler] Pass arguments to app on launch. 2013-10-31 17:50:47 +01:00
Eloy Durán
61e9a65534 [profiler] Refactor rake tasks into the Config and Builder classes. 2013-10-31 17:46:22 +01:00
Eloy Durán
7a590a3113 [iOS config] UIDeviceFamily Info.plist entry should be integer. 2013-10-31 16:28:56 +01:00
Eloy Durán
5a16a52ad2 [profiler] Add task to start profiling on a iOS device. 2013-10-31 16:01:16 +01:00
Laurent Sansonetti
a3d1aed7b5 Merge branch 'master' into profiler 2013-10-31 14:16:03 +01:00
Eloy Durán
e15f9120a9 [profiler] Add tasks to run an OS X app through Instruments. 2013-10-31 12:50:51 +01:00
Eloy Durán
8f4a6ad27c [profiler] Generate a config plist for Instruments.app 2013-10-31 12:09:12 +01:00
Laurent Sansonetti
edcdf29ed6 ship only one libmacruby-repl.dylib file per platform, the one that has been built with the lowest deployment target (4.3 for ios and 10.7 for osx) 2013-10-30 23:54:57 +01:00
Eloy Durán
572bf257b5 [profiler] Use known paths to tools. 2013-10-28 20:48:59 +01:00
Eloy Durán
afe932b2ab [profiler] Make it a bit more readable. 2013-10-28 20:36:17 +01:00
Eloy Durán
9508d0942a [profiler] Start headless instruments session on running app. 2013-10-28 20:34:58 +01:00
Watson
80d067338b fix a bug where `motion update' causes an error when display the changelog on OSX 10.9
https://groups.google.com/forum/?fromgroups#!topic/rubymotion/HXO7wRn1Cuw

`motion' command uses system bundled Ruby.
If run `motion' command without local environment variable (ex LC_ALL or LANG),
Ruby 2.0 which is bundled in 10.9 might cause encoding error.
2013-10-26 17:12:30 +09:00
Eloy Durán
5107be14c2 [spec] Don't set output type unti very last moment. 2013-10-25 13:47:01 +02:00
Watson
52fd3f6ac5 specify the optimization level when compile the RubyMotion boot codes or vendor codes 2013-10-23 14:02:32 +09:00
Watson
ac89cf6b4b fix where Boxed#new doesn't work for GLKKit structure.
http://hipbyte.myjetbrains.com/youtrack/issue/RM-293

GLKKit structures are declared as the following.
If use union type when generate bridgesupport,
it is not output the definition of a data structure using <struct> tag into bridgesupport file.
So, Boxed#new does not work for these structure.

    #if defined(__STRICT_ANSI__)
    struct _GLKMatrix4
    {
        float m[16];
    } __attribute__((aligned(16)));
    typedef struct _GLKMatrix4 GLKMatrix4;
    #else
    union _GLKMatrix4
    {
        struct
        {
            float m00, m01, m02, m03;
            float m10, m11, m12, m13;
            float m20, m21, m22, m23;
            float m30, m31, m32, m33;
        };
        float m[16];
    } __attribute__((aligned(16)));
    typedef union _GLKMatrix4 GLKMatrix4;
    #endif
2013-10-22 13:22:52 +09:00
Laurent Sansonetti
b192251af0 [OSX] optional #eval support (experimental) 2013-10-21 02:12:49 +02:00
Laurent Sansonetti
5a6924c933 print an error in case we try to build for a certain RubyMotion platform that isn't supported (data directory doesn't exist) 2013-10-20 18:17:37 +02:00
Eloy Durán
23165c9edf [BS] Make use of our own bin/gen_bridge_metadata during builds. 2013-10-18 17:29:30 +02:00
Watson
95c094df9a add support to compile the Objective-C source codes which uses Modules syntax in `app.vendor_project' with Xcode 5.
http://clang.llvm.org/docs/Modules.html

This patch supports support Objective-C Modules when compile ObjC source codes without xcodeproj file, like
https://github.com/Watson1978/RubyMotionKaigi2013
2013-10-18 09:39:38 +09:00