Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates from Wed 22 Apr #976

Closed
wants to merge 63 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
2975f26
[react-packager] Add asset extensions to file watch glob in the proje…
Apr 17, 2015
691297a
[ReactNative|Easy] Change watchman too-long error message
pcottle Apr 17, 2015
0b6dbdb
[Errors] Fix Red Box by fixing providesModule parsing
ide Apr 17, 2015
dbe8e31
[ReactNative][Navigator] Remove another unnecessary use of absolute s…
philikon Apr 17, 2015
f117483
[react-packager] Add more information to deprecated asset requires
Apr 17, 2015
aaaa9a9
[ReactNative] Update stacktrace-parser
frantic Apr 17, 2015
65b6d20
[ReactNative] cleanup some requireNativeComponent cruft
sahrens Apr 17, 2015
ab1efbd
[ReactNative] kill for...in array iteration in deepDiffer
sahrens Apr 17, 2015
f3e7511
[ReactNative] Dim packager output
frantic Apr 18, 2015
17be6ba
reinstate @flow
Apr 18, 2015
bd5b12c
[ReactNative] implement transform styles
Apr 18, 2015
2b9aaac
[ReactNative] Guard against blocks being added to UIManager during de…
tadeuzagallo Apr 18, 2015
ead0f2e
Implemented thread control for exported methods
nicklockwood Apr 18, 2015
2186691
Revert "[ReactNative] implement transform styles"
astreet Apr 18, 2015
0b21df4
Improved logging and dev menu
nicklockwood Apr 19, 2015
0e67e33
[ReactNative] Ensure JS calls scheduled by a deallocated context don'…
tadeuzagallo Apr 20, 2015
fde476f
[react_native] JS files from D2001617: [react_native] Add support…
astreet Apr 20, 2015
fb1fa12
[ReactNative] Better profiling API + Fix overlaping events
tadeuzagallo Apr 20, 2015
88b6df9
Fixed way that ScrollView handles removeClippedSubviews flag
Apr 20, 2015
915925d
[ReactNative] Add tests on root view, bridge, modules and js context …
tadeuzagallo Apr 20, 2015
2d5d55d
[ReactNative] Add if DEBUG to profile functions declarations
tadeuzagallo Apr 20, 2015
bbd5259
Fixed reachability
nicklockwood Apr 20, 2015
d6afe1b
[ReactNative] Don't break when can't create executor
tadeuzagallo Apr 20, 2015
5e2f90a
[ReactNative] Skip flow checks for URLs that are not bundles
frantic Apr 20, 2015
5ce9fa4
Changed default method queue to a background queue.
nicklockwood Apr 20, 2015
0e8bc08
[ReactNative] Update method name on chrome debugger
tadeuzagallo Apr 20, 2015
2434512
[ReactNative] Allow JS know its URL
frantic Apr 20, 2015
a8a1798
[ReactNative] Fix Chrome debugger
frantic Apr 20, 2015
82704ad
[react-packager] Implement Packager::getAssets
Apr 20, 2015
765779a
Adds `opaque` and `underlayColor` to WebView.
lwansbrough Apr 21, 2015
b0348ed
[react_native] JS files from D2001635: [react_native] Use hardwar…
astreet Apr 21, 2015
8e15a0d
Added RCT_DEBUG
nicklockwood Apr 21, 2015
a0db658
[MAdMan] flowify AdsManagerGeoUtils
philikon Apr 21, 2015
25ae548
[ReactNative][MAdMan] helper for GraphQL-safe pixel size calculation
philikon Apr 21, 2015
ee898c2
Removed debug code from release builds
nicklockwood Apr 21, 2015
2294da7
[catlyst|madman] make map fire onRegionChange for user zoom in/out again
zjj010104 Apr 21, 2015
77d908b
[react-packager] Allow json files as modules
Apr 21, 2015
f1351a4
[react_native] JS files from D2009158: [react_native] Update othe…
astreet Apr 21, 2015
c46c4a0
[react-packager] bump watchman watch timeout to 10 seconds
Apr 21, 2015
173615a
[react-packager] Add jpe?g to asset extensions
Apr 21, 2015
5fb5148
[SliderIOS] Apply value after minimum/maximumValue in order to ensure…
Apr 21, 2015
45c10ff
[ReactNative] Navigator touch grant bug from D2001635
Apr 21, 2015
c0c2d4c
[react_native] JS files from D2009265: Fix resizeMode for images
Apr 21, 2015
c6ad7b8
[ReactNative] Use network image for new image assets
frantic Apr 21, 2015
40eeaf5
[ReactNative] Navigator contextual popToRoute and imperitive vs conte…
Apr 21, 2015
32084c9
Added missing RCTDefines.h to React lib
nicklockwood Apr 21, 2015
2ee7eba
Fixed broken font weight on iPhone 5
nicklockwood Apr 21, 2015
404f7d9
Fix AlertIOS Docs
xcatliu Apr 21, 2015
17e5b04
Fix Typo
mwilc0x Apr 21, 2015
368e507
Implement XmlHttpRequestBase#getAllResponseHeaders and getResponseHeader
joshzana Apr 21, 2015
b1a1500
Fixed release builds on UIExplorer
nicklockwood Apr 22, 2015
901c24e
[Text] Ensure that the text background is transparent by default
ide Apr 22, 2015
58a550f
[ReactNative] use requireNativeComponent to clean up a bunch of boile…
sahrens Apr 22, 2015
0f7ebf2
[react_native] JS files from D1999034: [react_native] Fix source …
astreet Apr 22, 2015
4622247
Reduced prop mapping overhead
nicklockwood Apr 22, 2015
3595b79
[ReactNative] Move VSync bound events to JS thread
tadeuzagallo Apr 22, 2015
eafe930
[react_native] JS files from D2012956: [react_native] Never retur…
astreet Apr 22, 2015
7aa413d
[ReactNative] Fix Android back btn regression from D2010265
Apr 22, 2015
0727cde
[ReactNative] Quick fix to busted redboxes
sahrens Apr 22, 2015
b4c82a4
[react-packager] Additional data to asset modules
Apr 22, 2015
fc6e209
Fixed broken struct arguments
nicklockwood Apr 22, 2015
c5ea25f
[ReactNative] Adopt client asset managing code to server changes
frantic Apr 22, 2015
459b6a1
Updates from Wed 22 Apr
sahrens Apr 22, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 25 additions & 16 deletions Examples/2048/2048/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,33 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
{
NSURL *jsCodeLocation;

// Loading JavaScript code - uncomment the one you want.

// OPTION 1
// Load from development server. Start the server from the repository root:
//
// $ npm start
//
// To run on device, change `localhost` to the IP address of your computer, and make sure your computer and
// iOS device are on the same Wi-Fi network.
/**
* Loading JavaScript code - uncomment the one you want.
*
* OPTION 1
* Load from development server. Start the server from the repository root:
*
* $ npm start
*
* To run on device, change `localhost` to the IP address of your computer
* (you can get this by typing `ifconfig` into the terminal and selecting the
* `inet` value under `en0:`) and make sure your computer and iOS device are
* on the same Wi-Fi network.
*/

jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/Examples/2048/Game2048.includeRequire.runModule.bundle"];

// OPTION 2
// Load from pre-bundled file on disk. To re-generate the static bundle, run
//
// $ curl http://localhost:8081/Examples/2048/Game2048.includeRequire.runModule.bundle -o main.jsbundle
//
// and uncomment the next following line
// jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
/**
* OPTION 2
* Load from pre-bundled file on disk. To re-generate the static bundle, `cd`
* to your Xcode project folder in the terminal, and run
*
* $ curl 'http://localhost:8081/Examples/2048/Game2048.includeRequire.runModule.bundle' -o main.jsbundle
*
* then add the `main.jsbundle` file to your project and uncomment this line:
*/

// jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];

RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"Game2048"
Expand Down
39 changes: 24 additions & 15 deletions Examples/Movies/Movies/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,33 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
{
NSURL *jsCodeLocation;

// Loading JavaScript code - uncomment the one you want.
/**
* Loading JavaScript code - uncomment the one you want.
*
* OPTION 1
* Load from development server. Start the server from the repository root:
*
* $ npm start
*
* To run on device, change `localhost` to the IP address of your computer
* (you can get this by typing `ifconfig` into the terminal and selecting the
* `inet` value under `en0:`) and make sure your computer and iOS device are
* on the same Wi-Fi network.
*/

// OPTION 1
// Load from development server. Start the server from the repository root:
//
// $ npm start
//
// To run on device, change `localhost` to the IP address of your computer, and make sure your computer and
// iOS device are on the same Wi-Fi network.
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/Examples/Movies/MoviesApp.includeRequire.runModule.bundle"];

// OPTION 2
// Load from pre-bundled file on disk. To re-generate the static bundle, run
//
// $ curl http://localhost:8081/Examples/Movies/MoviesApp.includeRequire.runModule.bundle -o main.jsbundle
//
// and uncomment the next following line
// jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
/**
* OPTION 2
* Load from pre-bundled file on disk. To re-generate the static bundle, `cd`
* to your Xcode project folder in the terminal, and run
*
* $ curl 'http://localhost:8081/Examples/Movies/MoviesApp.includeRequire.runModule.bundle' -o main.jsbundle
*
* then add the `main.jsbundle` file to your project and uncomment this line:
*/

// jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];

RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"MoviesApp"
Expand Down
42 changes: 25 additions & 17 deletions Examples/SampleApp/iOS/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,33 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
{
NSURL *jsCodeLocation;

// Loading JavaScript code - uncomment the one you want.

// OPTION 1
// Load from development server. Start the server from the repository root:
//
// $ npm start
//
// To run on device, change `localhost` to the IP address of your computer, and make sure your computer and
// iOS device are on the same Wi-Fi network.
/**
* Loading JavaScript code - uncomment the one you want.
*
* OPTION 1
* Load from development server. Start the server from the repository root:
*
* $ npm start
*
* To run on device, change `localhost` to the IP address of your computer
* (you can get this by typing `ifconfig` into the terminal and selecting the
* `inet` value under `en0:`) and make sure your computer and iOS device are
* on the same Wi-Fi network.
*/

jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/Examples/SampleApp/index.ios.bundle"];

// OPTION 2
// Load from pre-bundled file on disk. To re-generate the static bundle,
// from the root of your project directory, run
//
// $ react-native bundle
//
// and uncomment the next following line
// jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
/**
* OPTION 2
* Load from pre-bundled file on disk. To re-generate the static bundle, `cd`
* to your Xcode project folder in the terminal, and run
*
* $ curl 'http://localhost:8081/Examples/SampleApp/index.ios.bundle?dev=false&minify=true' -o main.jsbundle
*
* then add the `main.jsbundle` file to your project and uncomment this line:
*/

// jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];

RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"SampleApp"
Expand Down
41 changes: 25 additions & 16 deletions Examples/TicTacToe/TicTacToe/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,33 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
{
NSURL *jsCodeLocation;

// Loading JavaScript code - uncomment the one you want.

// OPTION 1
// Load from development server. Start the server from the repository root:
//
// $ npm start
//
// To run on device, change `localhost` to the IP address of your computer, and make sure your computer and
// iOS device are on the same Wi-Fi network.
/**
* Loading JavaScript code - uncomment the one you want.
*
* OPTION 1
* Load from development server. Start the server from the repository root:
*
* $ npm start
*
* To run on device, change `localhost` to the IP address of your computer
* (you can get this by typing `ifconfig` into the terminal and selecting the
* `inet` value under `en0:`) and make sure your computer and iOS device are
* on the same Wi-Fi network.
*/

jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/Examples/TicTacToe/TicTacToeApp.includeRequire.runModule.bundle"];

// OPTION 2
// Load from pre-bundled file on disk. To re-generate the static bundle, run
//
// $ curl http://localhost:8081/Examples/TicTacToe/TicTacToeApp.includeRequire.runModule.bundle -o main.jsbundle
//
// and uncomment the next following line
// jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
/**
* OPTION 2
* Load from pre-bundled file on disk. To re-generate the static bundle, `cd`
* to your Xcode project folder in the terminal, and run
*
* $ curl 'http://localhost:8081/Examples/TicTacToe/TicTacToeApp.includeRequire.runModule.bundle' -o main.jsbundle
*
* then add the `main.jsbundle` file to your project and uncomment this line:
*/

// jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];

RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"TicTacToeApp"
Expand Down
4 changes: 2 additions & 2 deletions Examples/UIExplorer/NetInfoExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ exports.description = 'Monitor network status';
exports.examples = [
{
title: 'NetInfo.isConnected',
description: 'Asyncronously load and observe connectivity',
description: 'Asynchronously load and observe connectivity',
render(): ReactElement { return <IsConnected />; }
},
{
title: 'NetInfo.reachabilityIOS',
description: 'Asyncronously load and observe iOS reachability',
description: 'Asynchronously load and observe iOS reachability',
render(): ReactElement { return <ReachabilityCurrent />; }
},
{
Expand Down
41 changes: 25 additions & 16 deletions Examples/UIExplorer/UIExplorer/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,33 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
{
NSURL *jsCodeLocation;

// Loading JavaScript code - uncomment the one you want.

// OPTION 1
// Load from development server. Start the server from the repository root:
//
// $ npm start
//
// To run on device, change `localhost` to the IP address of your computer, and make sure your computer and
// iOS device are on the same Wi-Fi network.
/**
* Loading JavaScript code - uncomment the one you want.
*
* OPTION 1
* Load from development server. Start the server from the repository root:
*
* $ npm start
*
* To run on device, change `localhost` to the IP address of your computer
* (you can get this by typing `ifconfig` into the terminal and selecting the
* `inet` value under `en0:`) and make sure your computer and iOS device are
* on the same Wi-Fi network.
*/

jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle?dev=true"];

// OPTION 2
// Load from pre-bundled file on disk. To re-generate the static bundle, run
//
// $ curl http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle -o main.jsbundle
//
// and uncomment the next following line
// jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
/**
* OPTION 2
* Load from pre-bundled file on disk. To re-generate the static bundle, `cd`
* to your Xcode project folder and run
*
* $ curl 'http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle' -o main.jsbundle
*
* then add the `main.jsbundle` file to your project and uncomment this line:
*/

// jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];

RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"UIExplorerApp"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 5 additions & 7 deletions Examples/UIExplorer/UIExplorerTests/UIExplorerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,10 @@ - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
return NO;
}

// Make sure this test runs first (underscores sort early) otherwise the
// other tests will tear out the rootView
- (void)test__RootViewLoadsAndRenders
// Make sure this test runs first because the other tests will tear out the rootView
- (void)testAAA_RootViewLoadsAndRenders
{
UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController];
UIViewController *vc = [UIApplication sharedApplication].delegate.window.rootViewController;
RCTAssert([vc.view isKindOfClass:[RCTRootView class]], @"This test must run first.");
NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
BOOL foundElement = NO;
Expand All @@ -72,10 +71,8 @@ - (void)test__RootViewLoadsAndRenders
while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
[[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:date];
[[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:date];

redboxError = [[RCTRedBox sharedInstance] currentErrorMessage];

foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
foundElement = [self findSubviewInView:vc.view matching:^(UIView *view) {
if ([view respondsToSelector:@selector(attributedText)]) {
NSString *text = [(id)view attributedText].string;
if ([text isEqualToString:@"<View>"]) {
Expand Down Expand Up @@ -120,6 +117,7 @@ - (void)testTabBarExampleSnapshot
[_runner runTest:_cmd module:@"TabBarExample"];
}

// Make sure this test runs last
- (void)testZZZ_NotInRecordMode
{
RCTAssert(_runner.recordMode == NO, @"Don't forget to turn record mode back to NO before commit.");
Expand Down
Loading