Skip to content

Commit

Permalink
fix issue oney#51
Browse files Browse the repository at this point in the history
  • Loading branch information
wangdaliu committed Aug 25, 2016
1 parent f4bd872 commit 4c1faae
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
11 changes: 10 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,18 @@ android {
}
}

allprojects {
repositories {
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "../../../node_modules/react-native/android"
}
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.facebook.react:react-native:0.17.+'
compile 'com.facebook.react:react-native:+'
compile 'com.google.android.gms:play-services-gcm:8.1.0'
compile 'com.android.support:appcompat-v7:23.0.0'
compile project(':react-native-system-notification')
Expand Down
4 changes: 2 additions & 2 deletions android/src/main/java/com/oney/gcm/BackgroundService.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public int onStartCommand(Intent intent, int flags, int startId) {
public void onDestroy() {
Log.d(TAG, "onDestroy");
super.onDestroy();
mReactInstanceManager.onPause();
mReactInstanceManager.onDestroy();
mReactInstanceManager.onHostPause();
mReactInstanceManager.destroy();
mReactInstanceManager = null;
}

Expand Down
4 changes: 2 additions & 2 deletions android/src/main/java/com/oney/gcm/MainReactPackage.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager;
import com.facebook.react.views.switchview.ReactSwitchManager;
import com.facebook.react.views.text.ReactRawTextManager;
import com.facebook.react.views.text.ReactTextInlineImageViewManager;
//import com.facebook.react.views.text.ReactTextInlineImageViewManager;
import com.facebook.react.views.text.ReactTextViewManager;
import com.facebook.react.views.text.ReactVirtualTextViewManager;
import com.facebook.react.views.textinput.ReactTextInputManager;
Expand Down Expand Up @@ -74,7 +74,7 @@ public List<ViewManager> createViewManagers(ReactApplicationContext reactContext
new ReactToolbarManager(),
new ReactViewManager(),
new ReactViewPagerManager(),
new ReactTextInlineImageViewManager(),
// new ReactTextInlineImageViewManager(),
new ReactVirtualTextViewManager(),
new SwipeRefreshLayoutManager(),
new ReactWebViewManager());
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-gcm-android",
"version": "0.1.9",
"version": "0.2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/oney/react-native-gcm-android.git"
Expand Down

0 comments on commit 4c1faae

Please sign in to comment.