Commit Graph

56 Commits

Author SHA1 Message Date
Eloy Durán
7f50c3cde5 [iOS Config] Retrieve DTSDKBuild & DTPlatformBuild programatically.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-415.
2014-02-03 22:22:51 +09:00
Eloy Durán
16c19e5a20 [test] Make iOS UI helper search from the key window instead.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-382.
2014-01-28 21:24:14 +09:00
Eloy Durán
cc15311759 De-register spec app for notifications first. 2013-12-20 12:26:09 +01:00
Jason W. May
b6d9df25c0 Ignore spurious UIApplicationDidBecomeActiveNotification events.
Signed-off-by: Eloy Durán <eloy.de.enige@gmail.com>
2013-12-20 12:17:10 +01:00
Eloy Durán
06d8802db6 [UIAutomation] Make the drag command actually send events again.
However, for the moment this only works with 1 touch at a time.
2013-12-13 10:56:43 +09:00
Eloy Durán
22dac42700 [spec] Deprecate block to the tests method of the view test helpers. 2013-11-20 23:43:40 +09:00
Watson
f01f8a240f move special configuration for iOS/OSX platform from gen_bridge_metadata() 2013-11-20 23:41:11 +09:00
Eloy Durán
091b6b399f 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-03 21:16:54 +09:00
Watson
464cced795 fix RM-305
http://hipbyte.myjetbrains.com/youtrack/issue/RM-305
2013-11-02 23:04:15 +09:00
Eloy Durán
071c243a77 [iOS config] UIDeviceFamily Info.plist entry should be integer. 2013-11-02 11:45:29 +09:00
Eloy Durán
e24fcaa44d [xcassets] Be sure to remove whitespace from Info.plist icon names. 2013-10-15 21:22:11 +09:00
Eloy Durán
322ebc6863 [xcassets] Move iOS/OS X specific behavior back to configs. 2013-10-15 21:21:52 +09:00
Eloy Durán
4c1beff6a2 [xcassets] Use actool’s Info.plist output instead of reading JSON. 2013-10-15 21:21:41 +09:00
Eloy Durán
b100859e2a [xcassets] No longer copy icons ourselves on iOS. 2013-10-15 21:21:34 +09:00
Eloy Durán
d9021b682c [xcassets] Make asset compilation and app icon config work on OS X. 2013-10-15 21:20:55 +09:00
Eloy Durán
cc16a2bd61 [xcassets] Fail build if the JSON gem is required and unavailable. 2013-10-15 21:20:50 +09:00
Eloy Durán
9dd92687fe [xcassets] Use App.warn to warn about multiple app icon sets. 2013-10-15 21:20:45 +09:00
Eloy Durán
040cefa2f2 Test branch notifications in HipChat commit. 2013-10-15 21:20:38 +09:00
Eloy Durán
1033f302d8 [xcassets] Copy and configure the app icons for iOS. 2013-10-15 21:20:23 +09:00
mordaroso
25bf0db52e Fix non-retina iPad simulation in iOS7
Allow to start the simulator with a non-retina iPad with iOS7

merged #133
2013-10-07 13:28:23 +09:00
Watson
fe3b93d464 [iOS] add support to launch the app as 64-bit in simulator
When specified "app.archs['iPhoneSimulator'] << 'x86_64'" and use iOS 7 retina 4 simulator,
we can launch 64-bit simulator.
2013-10-07 13:28:17 +09:00
Laurent Sansonetti
7eb83e10dd really remove 64-bit build 2013-09-26 07:34:17 +09:00
Laurent Sansonetti
3505592f3e Merge pull request #121 from bracki/patch-1
Always copy over embedded.mobileprovision
2013-09-19 06:13:00 -07:00
Laurent Sansonetti
377919cc21 allow users to customize archs 2013-09-12 22:02:26 +09:00
Laurent Sansonetti
f0cc8b08ba ios: in development mode, only build for i386/armv[6-7] for faster builds 2013-09-12 22:01:42 +09:00
Laurent Sansonetti
ca96d14e75 now always use clang 2013-09-12 21:58:58 +09:00
Hwee-Boon Yar
794b0506af Fix: platform names generated in Info.plist (DTSDKName and DTPlatformName) 2013-09-06 22:50:48 +08:00
Watson
ee06e07cde fix a bug where ARR_CYCLES_DISABLE are disabled with distributed app
In order to enable ARR_CYCLES_DISABLE, we need to set ARR_CYCLES_DISABLE as environment variable when launch the app.
So, embedded ARR_CYCLES_DISABLE variable into app

http://hipbyte.myjetbrains.com/youtrack/issue/RM-245
2013-08-25 22:05:07 +09:00
Jan Brauer
d98894eb11 Always copy embedded.mobileprovision
The `embedded.mobileprovision` should always be copied over in the codesign step. Otherwise subsequent builds with a different provisioning profile will build an incorrect app bundle.
Example use case:
```
rake enterprise # Build an adhoc distribution
rake appstore # Build an appstore release
```
2013-08-20 09:31:48 +02:00
Watson
df5ff5ed1c add 'rake' gem into Gemfile because `bundle exec rake' cause a Gem::LoadError
If run `bundle exec rake' without `rake' gem, the following error is occurred.
% bundle exec rake
/Users/watson/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/rubygems_integration.rb:214:in `block in replace_gem': rake is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
	from /Users/watson/.rbenv/versions/2.0.0-p247/bin/rake:22:in `<main>'
2013-08-20 07:37:53 +09:00
Laurent Sansonetti
fbde6cf83f integrate Bundler 2013-08-20 07:37:30 +09:00
Chris Radford
f820304c0d Update to add new status bar style
Added UIStatusBarStyleLightContent as an option for status_bar_style, a new option added in iOS7.
2013-08-05 12:47:36 +01:00
Watson
1788c958ac fix a bug in build system where app does not work on iOS5 device
http://hipbyte.myjetbrains.com/youtrack/issue/RM-221

The compile flags for device are missing.
This bug was introduced by 2617e9a3e4
2013-07-20 14:32:47 +09:00
Laurent Sansonetti
89ee47f5c0 remove default exception handlers in main() 2013-07-20 14:32:39 +09:00
Watson
285ddd6a85 fix warning message where it would display "ld: warning: ObjC object file xxxx"
The warning message will be displayed when use Xcode 5 even if deployment_target is not iOS 7.
This will fix c2fc9959ed

% rake
     Build ./build/iPhoneSimulator-6.1-Development
   Compile ./app/app_delegate.rb
    Create ./build/iPhoneSimulator-6.1-Development/hello.app
      Link ./build/iPhoneSimulator-6.1-Development/hello.app/hello
ld: warning: ObjC object file (./build/iPhoneSimulator-6.1-Development/objs/init.o) was compiled for iOS Simulator, but linking for MacOSX
2013-07-13 13:11:23 +09:00
Watson
1615a36384 fix a bug where `rake' command would re-launch an iOS 7 simulator every time
iOS 7 has only retina simulator and com.apple.iphonesimulator indicates "iPhone Retina (4-inch)" as default.
So, we need to use retina even if it does not configure ENV['retina']
2013-07-10 21:21:01 +09:00
Watson
87a8214b5e fix where `rake retina=3.5' does not work with Xcode 5 DP-2 2013-07-10 21:18:10 +09:00
Colin T.A. Gray
4079e017a0 Merge pull request #104 from katsuyoshi/callback_setup_controller
to setup controller using block.
2013-06-29 14:10:15 -07:00
Katsuyoshi Ito
8b73bafe8c to setup controller using block.
I implemented @colinta 's idea which was discussed below link.
https://groups.google.com/d/msg/rubymotion/M9T6LybaEUs/AWip_Vwy5_4J

When you want to setup UIViewController, you can setup it in a block of tests method.

# Example
  describe MyViewController do

    tests MyViewController do |controller|
      # you can set data to the controller here
      controller.my_data = "foo"
    end

    .
    .
  end
2013-06-30 00:29:48 +09:00
Colin T.A. Gray
41f1a1e387 Merge pull request #100 from IconoclastLabs/master
Smaller Default Image File Size
2013-06-27 14:06:45 -07:00
Watson
b08aa73697 fix warning message where it would display "warning: no debug symbols in executable (-arch i386)" 2013-06-25 19:48:15 +09:00
Watson
c2fc9959ed fix warning message where it would display "ld: warning: ObjC object file (./build/iPhoneSimulator-7.0-Development/objs/init.o) was compiled for iOS Simulator, but linking for MacOSX"
use "-mios-simulator-version-min" instead of "-miphoneos-version-min"
2013-06-25 19:48:10 +09:00
Laurent Sansonetti
2f07401cb6 define RUBYMOTION_ENV earlier 2013-06-25 19:46:38 +09:00
Gant
c5e3058f1d Created a smaller default image 2013-06-23 23:26:17 -05:00
Laurent Sansonetti
5a8179ed95 use llvm-gcc for .rb compilation, retrieve compilers from stable Xcode (in the meantime we really migrate to clang) 2013-06-14 01:02:53 +09:00
Colin T.A. Gray
8a42e2a32f Merge pull request #96 from katsuyoshi/callback_setup_controller
add callback after created controller.
2013-06-13 07:59:25 -07:00
Laurent Sansonetti
468946e528 add support for manifest plist file (ios only) 2013-06-10 21:38:57 +09:00
Katsuyoshi Ito
4f71e2ac34 add callback after created controller.
Sometimes view controller has a data.
The controller was set as a root view controller to the window before called "before" block.
But a data is not set at this point.
The view controller access to nil, and crash sometime even if I set a data in "before" block.

After created controller it will call the specified callback method if you set :after_created option

# Example
  describe MyViewController do

    tests MyViewController, after_created: :after_created_controller

    def after_created_controller controller
      # you can set data to the controller here
      controller.my_data = "foo"
    end

    .
    .
  end
2013-06-10 17:47:48 +09:00
Laurent Sansonetti
cfc7bfdb3c osx: add 'rake archive' tasks, refactor the builder archive/codesign code 2013-05-10 00:44:33 +09:00
Laurent Sansonetti
e0d3cc0e4e osx 'rake spec' task 2013-05-10 00:43:57 +09:00