Skip to content

Commit c1c5854

Browse files
committed
removed unused npm modules, screens, components
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
1 parent f7f41d2 commit c1c5854

63 files changed

Lines changed: 140 additions & 2430 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.re-natal

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,12 @@
1515
"realm",
1616
"react-native-i18n",
1717
"realm/react-native",
18-
"react-native-action-button",
19-
"react-native-vector-icons/Ionicons",
20-
"react-native-vector-icons/Octicons",
2118
"react-native-randombytes",
2219
"dismissKeyboard",
23-
"react-native-linear-gradient",
2420
"react-native-splash-screen",
2521
"react-native-status",
2622
"react-native-camera",
2723
"react-native-qrcode",
28-
"react-native-orientation",
2924
"identicon.js",
3025
"react-native-fs",
3126
"react-native-dialogs",

android/app/build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,15 +197,12 @@ dependencies {
197197
implementation project(':react-native-dialogs')
198198
implementation project(':react-native-randombytes')
199199
implementation project(':realm')
200-
implementation project(':react-native-vector-icons')
201200
implementation fileTree(dir: "libs", include: ["*.jar"])
202201
implementation "com.android.support:appcompat-v7:23.0.1"
203202
implementation "com.facebook.react:react-native:+" // From node_modules
204203
implementation project(':react-native-i18n')
205-
implementation project(':react-native-linear-gradient')
206204
implementation project(':react-native-camera')
207205
implementation project(':react-native-status')
208-
implementation project(':react-native-orientation')
209206
implementation project(':react-native-fs')
210207
implementation project(':react-native-image-crop-picker')
211208
implementation project(':react-native-webview-bridge')

android/app/src/main/java/im/status/ethereum/MainApplication.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package im.status.ethereum;
22

33
import android.support.multidex.MultiDexApplication;
4-
import com.BV.LinearGradient.LinearGradientPackage;
54
import com.aakashns.reactnativedialogs.ReactNativeDialogsPackage;
65
import com.bitgo.randombytes.RandomBytesPackage;
76
import org.devio.rn.splashscreen.SplashScreenReactPackage;
@@ -15,11 +14,9 @@
1514
import com.facebook.react.shell.MainReactPackage;
1615
import com.facebook.soloader.SoLoader;
1716
import com.github.alinz.reactnativewebviewbridge.WebViewBridgePackage;
18-
import com.github.yamill.orientation.OrientationPackage;
1917
import com.AlexanderZaytsev.RNI18n.RNI18nPackage;
2018
import com.instabug.reactlibrary.RNInstabugReactnativePackage;
2119
import com.lwansbrough.RCTCamera.RCTCameraPackage;
22-
import com.oblador.vectoricons.VectorIconsPackage;
2320
import com.reactnative.ivpusic.imagepicker.PickerPackage;
2421
import com.rnfs.RNFSPackage;
2522
import es.tiarg.nfcreactnative.NfcReactNativePackage;
@@ -65,12 +62,9 @@ protected List<ReactPackage> getPackages() {
6562
new SplashScreenReactPackage(),
6663
statusPackage,
6764
new RealmReactPackage(),
68-
new VectorIconsPackage(),
6965
new RNI18nPackage(),
7066
new RandomBytesPackage(),
71-
new LinearGradientPackage(),
7267
new RCTCameraPackage(),
73-
new OrientationPackage(),
7468
new RNFSPackage(),
7569
new ReactNativeDialogsPackage(),
7670
new ImageResizerPackage(),

android/settings.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,12 @@ include ':react-native-randombytes'
2222
project(':react-native-randombytes').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-randombytes/android')
2323
include ':react-native-i18n'
2424
project(':react-native-i18n').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-i18n/android')
25-
include ':react-native-vector-icons'
26-
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
2725
include ':realm'
2826
project(':realm').projectDir = new File(rootProject.projectDir, '../node_modules/realm/android')
29-
include ':react-native-linear-gradient'
30-
project(':react-native-linear-gradient').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-linear-gradient/android')
3127
include ':react-native-status'
3228
project(':react-native-status').projectDir = new File(rootProject.projectDir, '../modules/react-native-status/android')
3329
include ':react-native-camera'
3430
project(':react-native-camera').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-camera/android')
35-
include ':react-native-orientation', ':app'
36-
project(':react-native-orientation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-orientation/android')
3731
include ':react-native-fs'
3832
project(':react-native-fs').projectDir = new File(settingsDir, '../node_modules/react-native-fs/android')
3933
include ':react-native-image-crop-picker'

components/src/status_im/ui/components/react.cljs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
(def native-modules (.-NativeModules js-dependencies/react-native))
2525
(def device-event-emitter (.-DeviceEventEmitter js-dependencies/react-native))
2626
(def dismiss-keyboard! js-dependencies/dismiss-keyboard)
27-
(def orientation js-dependencies/orientation)
2827
(def back-handler (get-react-property "BackHandler"))
2928

3029
(def splash-screen (.-SplashScreen native-modules))
@@ -51,16 +50,11 @@
5150
(def switch (get-class "Switch"))
5251
(def check-box (get-class "CheckBox"))
5352

54-
(def touchable-without-feedback (get-class "TouchableWithoutFeedback"))
5553
(def touchable-highlight-class (get-class "TouchableHighlight"))
5654
(def touchable-opacity (get-class "TouchableOpacity"))
5755
(def activity-indicator (get-class "ActivityIndicator"))
5856

5957
(def modal (get-class "Modal"))
60-
(def picker-class (get-class "Picker"))
61-
(def picker-item-class
62-
(when-let [picker (get-react-property "Picker")]
63-
(adapt-class (.-Item picker))))
6458

6559
(def pan-responder (.-PanResponder js-dependencies/react-native))
6660
(def animated (.-Animated js-dependencies/react-native))
@@ -123,22 +117,9 @@
123117
(defn get-dimensions [name]
124118
(js->clj (.get dimensions name) :keywordize-keys true))
125119

126-
(def gradient (adapt-class (.-default js-dependencies/linear-gradient)))
127-
128-
(defn linear-gradient [props]
129-
[gradient props])
130-
131120
(defn list-item [component]
132121
(reagent/as-element component))
133122

134-
(defn picker
135-
([{:keys [style item-style selected on-change]} items]
136-
[picker-class {:selectedValue selected :style style :itemStyle item-style :onValueChange on-change}
137-
(for [{:keys [label value]} items]
138-
^{:key (str value)}
139-
[picker-item-class
140-
{:label (or label value) :value value}])]))
141-
142123
;; Image picker
143124

144125
(def image-picker-class js-dependencies/image-crop-picker)

components/src/status_im/ui/components/svg.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
(:require [clojure.string :as string]
33
[hickory.core :as hickory]))
44

5-
(def svg-tags #{:svg :g :rect :path :use :defs})
5+
(def svg-tags #{:svg :g :rect :path :use :defs :circle})
66

77
(defmacro slurp-svg [file]
88
"Reads svg file, and return function (fn [color] ..), which returns hiccup structure for react-native-svg lib

0 commit comments

Comments
 (0)