Commit Graph

62 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
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
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
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
Mark Rickert
b03584250f Ignore .dat* files on new projects. 2014-02-10 17:36:25 +01:00
Eloy Durán
7556f04d5d [iOS Config] Retrieve DTSDKBuild & DTPlatformBuild programatically.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-415.
2014-02-03 12:33:41 +01:00
Eloy Durán
fb53ff0948 [test] Make iOS UI helper search from the key window instead.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-382.
2014-01-16 12:06:31 +01:00
Eloy Durán
210567d344 De-register spec app for notifications first. 2013-12-20 12:21:30 +01:00
Jason W. May
2033869ea3 Ignore spurious UIApplicationDidBecomeActiveNotification events.
Signed-off-by: Eloy Durán <eloy.de.enige@gmail.com>
2013-12-20 12:19:53 +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
Eloy Durán
5be6d293e1 [spec] Deprecate block to the tests method of the view test helpers. 2013-11-19 16:55:04 +01:00
Watson
d963c6489d move special configuration for iOS/OSX platform from gen_bridge_metadata() 2013-11-11 10:16:53 +09: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
Eloy Durán
7a590a3113 [iOS config] UIDeviceFamily Info.plist entry should be integer. 2013-10-31 16:28:56 +01:00
Eloy Durán
783f6b8887 [xcassets] Be sure to remove whitespace from Info.plist icon names. 2013-10-14 15:50:27 +02:00
Eloy Durán
d22f82ebb0 [xcassets] Move iOS/OS X specific behavior back to configs. 2013-10-14 13:52:32 +02:00
Eloy Durán
3be82b061b [xcassets] Use actool’s Info.plist output instead of reading JSON. 2013-10-11 20:20:30 +02:00
Eloy Durán
2490d6c0a2 [xcassets] No longer copy icons ourselves on iOS. 2013-10-11 19:09:20 +02:00
Eloy Durán
369c15e0e3 [xcassets] Make asset compilation and app icon config work on OS X. 2013-10-11 18:50:56 +02:00
Eloy Durán
bbae733e02 [xcassets] Fail build if the JSON gem is required and unavailable. 2013-10-11 16:37:22 +02:00
Eloy Durán
dcc680b789 [xcassets] Use App.warn to warn about multiple app icon sets. 2013-10-11 15:23:53 +02:00
Eloy Durán
3549438dd6 Test branch notifications in HipChat commit. 2013-10-10 20:04:05 +02:00
Eloy Durán
b331fab440 [xcassets] Copy and configure the app icons for iOS. 2013-10-10 19:57:48 +02:00
mordaroso
ecc764eef4 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:16:26 +09:00
Watson
e0a68bde8d [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 11:15:02 +09:00
Jan Brauer
acca1cdf6c 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-09-26 21:38:12 +09:00
Laurent Sansonetti
b0775e32d6 really remove 64-bit build 2013-09-24 22:34:51 +02:00
Laurent Sansonetti
584d55c517 allow users to customize archs 2013-09-12 13:02:52 +02:00
Laurent Sansonetti
1f88aebb11 ios: in development mode, only build for i386/armv[6-7] for faster builds 2013-09-11 18:28:19 +02:00
Laurent Sansonetti
6da5c7f4ec now always use clang 2013-09-08 03:06:48 +02:00
Hwee-Boon Yar
f99852081d Fix: platform names generated in Info.plist (DTSDKName and DTPlatformName) 2013-09-07 00:07:02 +09:00
Watson
c13e0afb6c 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-23 12:33:49 +09:00
Watson
60f1b37bb6 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-19 16:08:52 +09:00
Laurent Sansonetti
3767d0eff4 integrate Bundler 2013-08-17 14:09:24 +02:00
Chris Radford
785fd65d59 Update to add new status bar style
Added UIStatusBarStyleLightContent as an option for status_bar_style, a new option added in iOS7.
2013-08-07 20:31:47 +09:00
Watson
3b75fb79ee 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 12:32:55 +09:00
Laurent Sansonetti
e0aca0e09e remove default exception handlers in main() 2013-07-19 18:05:19 +02:00
Watson
3d6ac4fea6 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:04:46 +09:00
Watson
f388e17d47 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-09 20:42:16 +09:00
Katsuyoshi Ito
30aa719082 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 13:00:52 +09:00
Watson
401137639b add the target 2013-06-29 13:48:27 +09:00
Watson
56a4a9381f fix where `rake retina=3.5' does not work with Xcode 5 DP-2 2013-06-29 13:29:39 +09:00
Gant
e4aa4bef9b Created a smaller default image 2013-06-28 19:52:01 +09:00
Watson
64abb061e6 fix warning message where it would display "warning: no debug symbols in executable (-arch i386)" 2013-06-23 15:44:15 +09:00
Watson
2617e9a3e4 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-23 15:43:23 +09:00