Skip to content

Commit

Permalink
Upgrade to React Native 0.28
Browse files Browse the repository at this point in the history
  • Loading branch information
frantic committed Jun 24, 2016
1 parent 7e39d97 commit d1cafab
Show file tree
Hide file tree
Showing 32 changed files with 1,761 additions and 2,793 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import com.android.build.OutputFile
* ]
*/

apply from: "react.gradle"
apply from: "../../node_modules/react-native/react.gradle"

/**
* Set this to true to create two separate APKs instead of one:
Expand Down
96 changes: 0 additions & 96 deletions android/app/react.gradle

This file was deleted.

8 changes: 3 additions & 5 deletions android/app/src/main/java/com/facebook/f8/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,12 @@
import com.burnweb.rnsendintent.RNSendIntentPackage;

public class MainActivity extends ReactActivity {
private CodePush _codePush;
private ReactNativePushNotificationPackage _pushNotification;
private CallbackManager mCallbackManager;

@Override
protected String getJSBundleFile() {
return this._codePush.getBundleUrl("index.android.bundle");
return CodePush.getBundleUrl();
}

/**
Expand All @@ -85,7 +84,6 @@ protected boolean getUseDeveloperSupport() {
*/
@Override
protected List<ReactPackage> getPackages() {
this._codePush = new CodePush("qwfkzzq7Y8cSrkiuU7aRCkIP7XYLEJ6b-AFoe", this, BuildConfig.DEBUG);
this._pushNotification = new ReactNativePushNotificationPackage(this);
mCallbackManager = new CallbackManager.Factory().create();

Expand All @@ -95,7 +93,7 @@ protected List<ReactPackage> getPackages() {
new LinearGradientPackage(),
new RNSharePackage(),
new RNSendIntentPackage(),
this._codePush.getReactPackage(),
new CodePush("qwfkzzq7Y8cSrkiuU7aRCkIP7XYLEJ6b-AFoe", this, BuildConfig.DEBUG),
this._pushNotification
);
}
Expand All @@ -113,7 +111,7 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
}

@Override
protected void onNewIntent (Intent intent) {
public void onNewIntent (Intent intent) {
super.onNewIntent(intent);
_pushNotification.newIntent(intent);
}
Expand Down
2 changes: 1 addition & 1 deletion android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ project(':react-native-code-push').projectDir = new File(rootProject.projectDir,
project(':react-native-push-notification').projectDir = file('../node_modules/react-native-push-notification/RNPushNotificationAndroid')
project(':react-native-share').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-share/android')
project(':react-native-fbsdk').projectDir = new File(settingsDir, '../node_modules/react-native-fbsdk/Android')
project(':react-native-send-intent').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-send-intent')
project(':react-native-send-intent').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-send-intent/android')
4 changes: 2 additions & 2 deletions ios/F8Scrolling.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ - (dispatch_queue_t)methodQueue
RCTScrollView *reactScrollView = (RCTScrollView *)scrollView;
[_pinnedViews setObject:pinnedView forKey:reactScrollView.scrollView];
[_distances setObject:distance forKey:reactScrollView.scrollView];
[reactScrollView setNativeScrollDelegate:self];
[reactScrollView addScrollListener:self];
[self scrollViewDidScroll:reactScrollView.scrollView];
}
}
Expand All @@ -63,7 +63,7 @@ - (dispatch_queue_t)methodQueue
RCTScrollView *reactScrollView = (RCTScrollView *)scrollView;
[_pinnedViews removeObjectForKey:reactScrollView.scrollView];
[_distances removeObjectForKey:reactScrollView.scrollView];
[reactScrollView setNativeScrollDelegate:nil];
[reactScrollView removeScrollListener:self];
}
}

Expand Down
18 changes: 9 additions & 9 deletions ios/F8v2.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,13 @@
isa = PBXNativeTarget;
buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "F8v2" */;
buildPhases = (
BE0B165BA96102DAE4AF6D67 /* 📦 Check Pods Manifest.lock */,
BE0B165BA96102DAE4AF6D67 /* [CP] Check Pods Manifest.lock */,
13B07F871A680F5B00A75B9A /* Sources */,
13B07F8C1A680F5B00A75B9A /* Frameworks */,
13B07F8E1A680F5B00A75B9A /* Resources */,
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
789BB91E5A251077BA8A4EE8 /* 📦 Embed Pods Frameworks */,
F391BEA07F3C4EAAEE2D8F23 /* 📦 Copy Pods Resources */,
789BB91E5A251077BA8A4EE8 /* [CP] Embed Pods Frameworks */,
F391BEA07F3C4EAAEE2D8F23 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -304,44 +304,44 @@
shellPath = /bin/sh;
shellScript = "../node_modules/react-native/packager/react-native-xcode.sh\n../scripts/store-ip.sh";
};
789BB91E5A251077BA8A4EE8 /* 📦 Embed Pods Frameworks */ = {
789BB91E5A251077BA8A4EE8 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "📦 Embed Pods Frameworks";
name = "[CP] Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-F8v2/Pods-F8v2-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
BE0B165BA96102DAE4AF6D67 /* 📦 Check Pods Manifest.lock */ = {
BE0B165BA96102DAE4AF6D67 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "📦 Check Pods Manifest.lock";
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
F391BEA07F3C4EAAEE2D8F23 /* 📦 Copy Pods Resources */ = {
F391BEA07F3C4EAAEE2D8F23 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "📦 Copy Pods Resources";
name = "[CP] Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
8 changes: 5 additions & 3 deletions ios/PodFile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ target 'F8v2' do
'RCTLinkingIOS',
'RCTVibration',
], :path => '../node_modules/react-native'
pod 'react-native-fbsdkcore', :path => '../node_modules/react-native-fbsdk/iOS/core'
pod 'react-native-fbsdklogin', :path => '../node_modules/react-native-fbsdk/iOS/login'
pod 'react-native-fbsdkshare', :path => '../node_modules/react-native-fbsdk/iOS/share'
pod 'react-native-fbsdk', :subspecs => [
'Core',
'Login',
'Share',
], :path => '../node_modules/react-native-fbsdk/iOS'
pod 'CodePush', :path => '../node_modules/react-native-code-push'
end

Expand Down
64 changes: 31 additions & 33 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,51 +5,55 @@ PODS:
- Bolts/AppLinks (1.7.0):
- Bolts/Tasks
- Bolts/Tasks (1.7.0)
- CodePush (1.7.3-beta):
- CodePush (1.12.2):
- CodePush/Core (= 1.12.2)
- CodePush/SSZipArchive (= 1.12.2)
- React
- CodePush/Core (1.12.2):
- React
- CodePush/SSZipArchive (1.12.2):
- React
- FBSDKCoreKit (4.10.1):
- Bolts (~> 1.5)
- FBSDKLoginKit (4.10.1):
- FBSDKCoreKit
- FBSDKShareKit (4.10.1):
- FBSDKCoreKit
- React (0.23.1):
- React/Core (= 0.23.1)
- react-native-fbsdkcore (0.1.0-alpha.1):
- React (0.28.0):
- React/Core (= 0.28.0)
- react-native-fbsdk/Core (0.2.1):
- FBSDKCoreKit
- React
- react-native-fbsdklogin (0.1.0-alpha.1):
- FBSDKCoreKit
- react-native-fbsdk/Login (0.2.1):
- FBSDKLoginKit
- React
- react-native-fbsdkshare (0.1.0-alpha.1):
- FBSDKCoreKit
- react-native-fbsdk/Share (0.2.1):
- FBSDKShareKit
- React
- React/Core (0.23.1)
- React/RCTActionSheet (0.23.1):
- React/Core (0.28.0)
- React/RCTActionSheet (0.28.0):
- React/Core
- React/RCTImage (0.23.1):
- React/RCTImage (0.28.0):
- React/Core
- React/RCTNetwork
- React/RCTLinkingIOS (0.23.1):
- React/RCTLinkingIOS (0.28.0):
- React/Core
- React/RCTNetwork (0.23.1):
- React/RCTNetwork (0.28.0):
- React/Core
- React/RCTPushNotification (0.23.1):
- React/RCTPushNotification (0.28.0):
- React/Core
- React/RCTText (0.23.1):
- React/RCTText (0.28.0):
- React/Core
- React/RCTVibration (0.23.1):
- React/RCTVibration (0.28.0):
- React/Core
- React/RCTWebSocket (0.23.1):
- React/RCTWebSocket (0.28.0):
- React/Core

DEPENDENCIES:
- CodePush (from `../node_modules/react-native-code-push`)
- react-native-fbsdkcore (from `../node_modules/react-native-fbsdk/iOS/core`)
- react-native-fbsdklogin (from `../node_modules/react-native-fbsdk/iOS/login`)
- react-native-fbsdkshare (from `../node_modules/react-native-fbsdk/iOS/share`)
- react-native-fbsdk/Core (from `../node_modules/react-native-fbsdk/iOS`)
- react-native-fbsdk/Login (from `../node_modules/react-native-fbsdk/iOS`)
- react-native-fbsdk/Share (from `../node_modules/react-native-fbsdk/iOS`)
- React/Core (from `../node_modules/react-native`)
- React/RCTActionSheet (from `../node_modules/react-native`)
- React/RCTImage (from `../node_modules/react-native`)
Expand All @@ -65,24 +69,18 @@ EXTERNAL SOURCES:
:path: ../node_modules/react-native-code-push
React:
:path: ../node_modules/react-native
react-native-fbsdkcore:
:path: ../node_modules/react-native-fbsdk/iOS/core
react-native-fbsdklogin:
:path: ../node_modules/react-native-fbsdk/iOS/login
react-native-fbsdkshare:
:path: ../node_modules/react-native-fbsdk/iOS/share
react-native-fbsdk:
:path: ../node_modules/react-native-fbsdk/iOS

SPEC CHECKSUMS:
Bolts: a0058fa3b331c5a1e4402d534f2dae36dbff31e4
CodePush: b079624335d06b6b309e6b70167f398c709cfcc6
CodePush: 96e1b7358f2305daf4fdf8436c0d23a172599de9
FBSDKCoreKit: d2aaed5e9ab7d8d6301c533376a1fbff1cf3deb5
FBSDKLoginKit: 699ff169080e3072de4b9b0faca90bf23dc36deb
FBSDKShareKit: 2fd887cce0056bdda91f99b2021d724a4fed8e88
React: 0bc1e9a6369dc610ff0b29415ed0cab5229614f5
react-native-fbsdkcore: f406a8e13011fd39b9c1db5f6bc517b84cfe97d9
react-native-fbsdklogin: 7b371812b110ef24f3877ab52350df9e321faf6b
react-native-fbsdkshare: f61448537392187b4d43c2e6b40260e3a1e7c658
React: 43544faed4af6a0e8fbc4b3abd26141ed654fa49
react-native-fbsdk: f809332ec877fe61466883f6cd775a0accfdf948

PODFILE CHECKSUM: 45bef4538671c3205d919c48d17fd46190328f35
PODFILE CHECKSUM: cb0411936cfdb2ef6ccae2a3fc8261c741029580

COCOAPODS: 1.0.0.beta.6
COCOAPODS: 1.0.1
2 changes: 1 addition & 1 deletion js/PushNotificationsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

'use strict';

var React = require('react-native');
var React = require('react');
var AppState = require('AppState');
var Platform = require('Platform');
var unseenNotificationsCount = require('./tabs/notifications/unseenNotificationsCount');
Expand Down
2 changes: 1 addition & 1 deletion js/common/Carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/
'use strict';

const React = require('react-native');
const React = require('react');
const ViewPager = require('./ViewPager');
const StyleSheet = require('F8StyleSheet');

Expand Down
2 changes: 1 addition & 1 deletion js/common/F8Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

var F8Colors = require('F8Colors');
var Image = require('Image');
var LinearGradient = require('react-native-linear-gradient');
import LinearGradient from 'react-native-linear-gradient';
var React = require('React');
var StyleSheet = require('StyleSheet');
var { Text } = require('F8Text');
Expand Down
Loading

0 comments on commit d1cafab

Please sign in to comment.