Skip to content

Commit

Permalink
Add and link react native fs and react native share libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltout committed Sep 29, 2019
1 parent 4dba8d3 commit 2137fbd
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 1 deletion.
1 change: 1 addition & 0 deletions LICENCE
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ MIT License

Copyright (c) 2017 Yuki Akiyama
Copyright (c) 2017 - 2018 SuperNET
Copyright (c) Michael Wuergler <[email protected]> (numetriclabs.com)
Copyright (c) 2019 Michael Filip Toutonghi

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
2 changes: 2 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ android {
}

dependencies {
implementation project(':react-native-share')
implementation project(':react-native-fs')
implementation project(':@react-native-community_async-storage')
implementation project(':react-native-vector-icons')
implementation project(':react-native-udp')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import android.app.Application;

import com.facebook.react.ReactApplication;
import cl.json.RNSharePackage;
import com.rnfs.RNFSPackage;
import com.reactnativecommunity.asyncstorage.AsyncStoragePackage;
import com.oblador.vectoricons.VectorIconsPackage;
import com.tradle.react.UdpSocketsModule;
Expand Down Expand Up @@ -32,6 +34,8 @@ public boolean getUseDeveloperSupport() {
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNSharePackage(),
new RNFSPackage(),
new AsyncStoragePackage(),
new VectorIconsPackage(),
new UdpSocketsModule(),
Expand Down
4 changes: 4 additions & 0 deletions android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
rootProject.name = 'verusmobile'
include ':react-native-share'
project(':react-native-share').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-share/android')
include ':react-native-fs'
project(':react-native-fs').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fs/android')
include ':@react-native-community_async-storage'
project(':@react-native-community_async-storage').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/async-storage/android')
include ':react-native-vector-icons'
Expand Down
2 changes: 1 addition & 1 deletion ios/verusMobile/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<key>NSPhotoLibraryAddUsageDescription</key>
<string>My app does not request this permission or utilize this functionality but it is included in our info.plist since our app utilizes the react-native-permissions library, which references this permission in its code.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>My app does not request this permission or utilize this functionality but it is included in our info.plist since our app utilizes the react-native-permissions library, which references this permission in its code.</string>
<string>Verus Mobile needs access to the photo library to save QR codes.</string>
<key>NSSpeechRecognitionUsageDescription</key>
<string>My app does not request this permission or utilize this functionality but it is included in our info.plist since our app utilizes the react-native-permissions library, which references this permission in its code.</string>
<key>UIAppFonts</key>
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"react-native-camera": "^1.10.1",
"react-native-crypto": "^2.1.2",
"react-native-elements": "^0.19.1",
"react-native-fs": "^2.14.1",
"react-native-level-fs": "^3.0.1",
"react-native-loading-spinner-overlay": "^1.0.1",
"react-native-material-bottom-navigation": "^1.0.2",
Expand All @@ -65,6 +66,7 @@
"react-native-qrcode-svg": "^5.1.2",
"react-native-randombytes": "^3.5.2",
"react-native-screens": "1.0.0-alpha.22",
"react-native-share": "1.2.1",
"react-native-svg": "^9.2.4",
"react-native-tcp": "^3.3.0",
"react-native-udp": "^2.3.1",
Expand Down
23 changes: 23 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2110,6 +2110,11 @@ balanced-match@^1.0.0:
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c=

base-64@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/base-64/-/base-64-0.1.0.tgz#780a99c84e7d600260361511c4877613bf24f6bb"
integrity sha1-eAqZyE59YAJgNhURxId2E78k9rs=

[email protected]:
version "3.0.4"
resolved "https://registry.yarnpkg.com/base-x/-/base-x-3.0.4.tgz#94c1788736da065edb1d68808869e357c977fa77"
Expand Down Expand Up @@ -8729,6 +8734,14 @@ react-native-elements@^0.19.1:
opencollective "^1.0.3"
prop-types "^15.5.8"

react-native-fs@^2.14.1:
version "2.14.1"
resolved "https://registry.yarnpkg.com/react-native-fs/-/react-native-fs-2.14.1.tgz#61c70a865b5b5bcb020dd4e4befd60a2c20c836f"
integrity sha512-ZcfiwNP+FBgvv2eRk0B62/NI58mbjszjjYvQlP352HLkUqVsK4Ld6X8fdBO1lZAz6SgitUk8WEc9NEciRIt31g==
dependencies:
base-64 "^0.1.0"
utf8 "^2.1.1"

react-native-level-fs@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/react-native-level-fs/-/react-native-level-fs-3.0.1.tgz#f3054614c2bc1a379dcb3d3ee51b6a1b66123283"
Expand Down Expand Up @@ -8876,6 +8889,11 @@ [email protected]:
dependencies:
debounce "^1.2.0"

[email protected]:
version "1.2.1"
resolved "https://registry.yarnpkg.com/react-native-share/-/react-native-share-1.2.1.tgz#3756a3cf383c1489a6a0edf2b529ec025ee8f8f7"
integrity sha512-V9q1FM+LuYJ65qN3k6BLWs17mIbJCzGyMOhF3rb4MIQXdJfCUbtkDX9aaV86PzcsL1EudCA53HVTJBmWPDed0Q==

react-native-svg@^9.2.4:
version "9.6.4"
resolved "https://registry.yarnpkg.com/react-native-svg/-/react-native-svg-9.6.4.tgz#f9ceb228efd07317a5f9c378c6b9c5e13ff50cd0"
Expand Down Expand Up @@ -10813,6 +10831,11 @@ use@^3.1.0:
resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f"
integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==

utf8@^2.1.1:
version "2.1.2"
resolved "https://registry.yarnpkg.com/utf8/-/utf8-2.1.2.tgz#1fa0d9270e9be850d9b05027f63519bf46457d96"
integrity sha1-H6DZJw6b6FDZsFAn9jUZv0ZFfZY=

util-deprecate@^1.0.1, util-deprecate@~1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
Expand Down

0 comments on commit 2137fbd

Please sign in to comment.