Skip to content

Commit

Permalink
Fixed crash
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosrdz committed Jan 19, 2019
1 parent 1a8eebd commit 577b560
Show file tree
Hide file tree
Showing 7 changed files with 148 additions and 113 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@ android {
}

dependencies {
compile project(':react-native-webview')
compile project(':react-native-svg')
compile project(':react-native-camera')
compile project(':react-native-webview')
compile project(':react-native-fs')
compile project(':react-native-gesture-handler')
compile project(':react-native-vector-icons')
compile project(':react-native-svg')
compile project(':react-native-sentry')
compile project(':react-native-randombytes')
compile project(':react-native-prompt-android')
Expand Down
7 changes: 4 additions & 3 deletions android/app/src/main/java/com/bluewallet/MainApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
import android.app.Application;

import com.facebook.react.ReactApplication;
import com.horcrux.svg.SvgPackage;
import org.reactnative.camera.RNCameraPackage;
import com.reactnativecommunity.webview.RNCWebViewPackage;
import com.oblador.vectoricons.VectorIconsPackage;
import com.horcrux.svg.SvgPackage;
import io.sentry.RNSentryPackage;
import com.bitgo.randombytes.RandomBytesPackage;
import im.shimo.react.prompt.RNPromptPackage;
Expand All @@ -17,7 +18,6 @@
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;
import org.reactnative.camera.RNCameraPackage;
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
import com.rnfs.RNFSPackage;

Expand All @@ -36,10 +36,11 @@ public boolean getUseDeveloperSupport() {
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new SvgPackage(),
new RNCameraPackage(),
new RNCWebViewPackage(),
new RNFSPackage() ,
new VectorIconsPackage(),
new SvgPackage(),
new RNSentryPackage(),
new RandomBytesPackage(),
new RNPromptPackage(),
Expand Down
8 changes: 4 additions & 4 deletions android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
rootProject.name = 'BlueWallet'
include ':react-native-webview'
project(':react-native-webview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-webview/android')
include ':react-native-svg'
project(':react-native-svg').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-svg/android')
include ':react-native-camera'
project(':react-native-camera').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-camera/android')
include ':react-native-webview'
project(':react-native-webview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-webview/android')
include ':react-native-fs'
project(':react-native-fs').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fs/android')
include ':react-native-gesture-handler'
project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android')
include ':react-native-vector-icons'
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
include ':react-native-svg'
project(':react-native-svg').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-svg/android')
include ':react-native-sentry'
project(':react-native-sentry').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sentry/android')
include ':react-native-randombytes'
Expand Down
231 changes: 132 additions & 99 deletions ios/BlueWallet.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"react-native": "^0.57.8",
"react-native-camera": "^1.8.0",
"react-native-custom-qr-codes": "^2.0.0",
"react-native-device-info": "^0.24.3",
"react-native-device-info": "^0.25.0",
"react-native-elements": "^0.19.0",
"react-native-flexi-radio-button": "^0.2.2",
"react-native-fs": "^2.13.3",
Expand All @@ -89,7 +89,6 @@
"request-promise-native": "^1.0.5",
"secure-random": "^1.1.1",
"stream-browserify": "^1.0.0",
"util": "^0.10.4",
"wif": "^2.0.1"
},
"react-native": {
Expand Down
2 changes: 2 additions & 0 deletions screen/lnd/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ export default class Browser extends Component {
console.log('load end');
this.setState({ url: e.nativeEvent.url, pageIsLoading: false });
}}
injectJavaScript={injectedParadise}
onLoadProgress={e => {
console.log('progress:', e.nativeEvent.progress);
if (!alreadyInjected && e.nativeEvent.progress > 0.5) {
Expand All @@ -393,6 +394,7 @@ export default class Browser extends Component {
console.log('injected');
}
}}

/>
</SafeBlueArea>
);
Expand Down

0 comments on commit 577b560

Please sign in to comment.