package.json 7.02 KB
Newer Older
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
1
2
{
  "name": "NativeSigner",
3
  "version": "4.3.2-beta",
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
4
  "private": true,
Tomasz Drwięga's avatar
Tomasz Drwięga committed
5
  "license": "GPL-3.0",
6
7
8
9
  "engines": {
    "node": ">=8.3",
    "yarn": "^1.3.2"
  },
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
10
  "scripts": {
11
    "android": "yarn run build-rust:android && npx react-native run-android",
12
    "build-prod:ios": "NODE_OPTIONS=--max_old_space_size=8192 npx react-native bundle --dev false --entry-file index.js --bundle-output ios/main.jsbundle --platform ios --assets-dest='./ios'",
13
14
15
    "build-rust:ios": "(cd rust/signer && make ios)",
    "build-rust:android": "(cd rust/signer && make android)",
    "build-rust": "yarn build-rust:ios && yarn build-rust:android",
16
17
    "build:ios": "yarn install && (cd ios && pod install) && yarn build-rust:ios",
    "build:android": "yarn install && yarn build-rust:android",
18
19
20
    "xcbuild:debug": "xcodebuild -workspace ios/NativeSigner.xcworkspace -scheme NativeSigner -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build/NativeSigner",
    "xcbuild:release": "xcodebuild -workspace ios/NativeSigner.xcworkspace -scheme NativeSigner -configuration Release -sdk iphonesimulator -derivedDataPath ios/build/NativeSigner -UseModernBuildSystem=YES | xcpretty -t && exit ${PIPESTATUS[0]}",
    "xcbuild:githubActions": "xcodebuild -workspace ios/NativeSigner.xcworkspace -scheme NativeSigner -configuration GithubActions -sdk iphonesimulator -derivedDataPath ios/build/NativeSigner -UseModernBuildSystem=YES | xcpretty -t && exit ${PIPESTATUS[0]}",
21
    "clean": "watchman watch-del-all && rm -rf /tmp/metro-bundler-cache-* && rm -rf /tmp/haste-map-react-native-packager-* && rm -rf node_modules/ && yarn cache clean --force && rm -rf ./android/app/build && rm -rf ./ios/build && yarn clean-rust && (cd ios && pod deintegrate)",
Joseph Mark's avatar
Joseph Mark committed
22
    "clean-rust": "(cd rust/signer && cargo clean)",
23
    "commit": "commit-wizard",
24
    "ios": "yarn run build-rust:ios && npx react-native run-ios",
25
26
    "lint": "npx eslint . --ext .js,.jsx,.ts,.tsx --ignore-path .gitignore",
    "lint:fix": "npx eslint . --ext .js,.jsx,.ts,.tsx --fix --ignore-path .gitignore",
27
    "start": "NODE_OPTIONS=--max_old_space_size=8192 npx react-native start",
28
    "unit": "jest --config ./test/unit/jest.config.js",
29
    "unit:debug": "node --inspect node_modules/.bin/jest --config ./test/unit/jest.config.js --watch --runInBand",
30
    "test-rust": "(cd ./rust/signer && cargo test)",
Hanwen Cheng's avatar
Hanwen Cheng committed
31
32
    "build-e2e:android": "detox build -c android.emu.debug -l info",
    "test-e2e:android": "detox test -c android.emu.debug -l info --noStackTrace",
33
    "e2e:android": "yarn run build-e2e:android && yarn run test-e2e:android",
Hanwen Cheng's avatar
Hanwen Cheng committed
34
    "build-e2e:ios": "detox build -c ios.sim.debug -l info",
Hanwen Cheng's avatar
Hanwen Cheng committed
35
    "build-e2e:ci": "detox build -c ios.sim.release -l info",
Hanwen Cheng's avatar
Hanwen Cheng committed
36
    "test-e2e:ios": "detox test -c ios.sim.debug -l info --noStackTrace",
Hanwen Cheng's avatar
Hanwen Cheng committed
37
    "test-e2e:ci": "detox test -c ios.sim.release -l info --noStackTrace  --cleanup",
38
    "e2e:ios": "yarn run build-e2e:ios && yarn run test-e2e:ios",
39
    "e2e": "yarn e2e:ios && yarn e2e:android"
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
40
  },
41
42
  "husky": {
    "hooks": {
43
      "pre-push": "yarn run lint"
44
45
    }
  },
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
46
  "dependencies": {
47
    "@polkadot/api": "1.16.1",
48
    "@polkadot/reactnative-identicon": "0.53.1",
49
50
51
52
    "@polkadot/types": "1.16.1",
    "@polkadot/types-known": "1.16.1",
    "@polkadot/util": "2.11.1",
    "@polkadot/util-crypto": "2.11.1",
53
    "@react-native-community/masked-view": "^0.1.6",
54
55
    "@react-navigation/native": "^5.5.1",
    "@react-navigation/stack": "^5.5.1",
56
    "@react-native-community/netinfo": "^5.9.3",
Thibaut Sardan's avatar
Thibaut Sardan committed
57
58
59
    "bignumber.js": "^9.0.0",
    "hoist-non-react-statics": "^3.3.0",
    "node-libs-react-native": "^1.0.3",
60
61
    "react": "^16.11.0",
    "react-native": "0.62.2",
62
    "react-native-camera": "^3.21.0",
Hanwen Cheng's avatar
Hanwen Cheng committed
63
    "react-native-elements": "^1.2.6",
64
    "react-native-gesture-handler": "^1.6.0",
65
    "react-native-keyboard-aware-scroll-view": "^0.9.1",
66
    "react-native-markdown-renderer": "^3.2.8",
67
    "react-native-navbar-color": "^1.0.3",
68
    "react-native-popup-menu": "^0.15.6",
Thibaut Sardan's avatar
Thibaut Sardan committed
69
    "react-native-randombytes": "^3.5.3",
70
    "react-native-screens": "^2.0.0-alpha.32",
71
    "react-native-secure-storage": "git+https://github.com/paritytech/react-native-secure-storage.git#master",
72
    "react-native-svg": "12.1.0",
Marek Kotewicz's avatar
Marek Kotewicz committed
73
    "react-native-tabs": "^1.0.9",
74
    "react-native-vector-icons": "^6.6.0",
Thibaut Sardan's avatar
Thibaut Sardan committed
75
    "readable-stream": "^3.4.0",
YJ's avatar
YJ committed
76
    "unstated": "^2.1.1",
Thibaut Sardan's avatar
Thibaut Sardan committed
77
    "vm-browserify": "1.1.0"
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
78
79
  },
  "devDependencies": {
Hanwen Cheng's avatar
Hanwen Cheng committed
80
81
82
83
    "@babel/cli": "^7.8.4",
    "@babel/core": "^7.9.6",
    "@babel/plugin-proposal-class-properties": "^7.8.3",
    "@babel/plugin-transform-runtime": "^7.9.6",
84
    "@babel/preset-typescript": "^7.9.0",
Hanwen Cheng's avatar
Hanwen Cheng committed
85
86
    "@babel/runtime": "^7.9.6",
    "@react-native-community/eslint-config": "^1.1.0",
87
    "@types/detox": "^14.5.2",
88
89
90
91
    "@types/jasmine": "^3.5.10",
    "@types/jest": "^25.2.1",
    "@types/react": "^16.9.34",
    "@types/react-native": "^0.62.2",
92
    "@typescript-eslint/eslint-plugin": "^2.26.0",
93
    "@typescript-eslint/parser": "^2.28.0",
94
    "babel-eslint": "10.1.0",
Hanwen Cheng's avatar
Hanwen Cheng committed
95
    "babel-jest": "^25.5.1",
96
    "babel-plugin-module-resolver": "^4.0.0",
Thibaut Sardan's avatar
Thibaut Sardan committed
97
    "babel-plugin-rewrite-require": "^1.14.5",
Hanwen Cheng's avatar
Hanwen Cheng committed
98
    "babel-plugin-tester": "^9.0.1",
99
    "detox": "^16.8.2",
100
    "eslint": "^6.8.0",
101
    "eslint-config-prettier": "^6.10.1",
102
    "eslint-import-resolver-typescript": "^2.0.0",
103
    "eslint-plugin-import": "^2.20.1",
104
105
    "eslint-plugin-prettier": "^3.1.2",
    "eslint-plugin-react-hooks": "^3.0.0",
106
    "husky": "^3.0.8",
107
108
    "jest": "^25.4.0",
    "jetifier": "^1.6.5",
Hanwen Cheng's avatar
Hanwen Cheng committed
109
    "metro-react-native-babel-preset": "^0.59.0",
110
    "prettier": "2.0.2",
111
    "react-native-safe-area-context": "0.7.3",
112
    "react-native-typescript-transformer": "^1.2.13",
113
114
115
116
    "react-test-renderer": "16.13.1",
    "reactotron-react-native": "5.0.0",
    "ts-jest": "^25.4.0",
    "typescript": "^3.8.3"
117
118
  },
  "resolutions": {
119
    "kind-of": ">=6.0.3"
120
121
122
123
124
  },
  "detox": {
    "configurations": {
      "ios.sim.debug": {
        "binaryPath": "ios/build/NativeSigner/Build/Products/Debug-iphonesimulator/NativeSigner.app",
125
        "build": "yarn xcbuild:debug",
126
127
        "type": "ios.simulator",
        "device": {
128
          "type": "iPhone 8"
129
130
131
        }
      },
      "ios.sim.release": {
Hanwen Cheng's avatar
Hanwen Cheng committed
132
133
        "binaryPath": "ios/build/NativeSigner/Build/Products/GithubActions-iphonesimulator/NativeSigner.app",
        "build": "yarn xcbuild:githubActions",
134
135
        "type": "ios.simulator",
        "device": {
136
          "os": "iOS 13.5",
Hanwen Cheng's avatar
Hanwen Cheng committed
137
          "type": "iPhone 8"
138
139
140
141
        }
      },
      "android.emu.debug": {
        "binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk",
Thibaut Sardan's avatar
Thibaut Sardan committed
142
        "build": "cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..",
143
144
145
146
147
148
149
150
151
152
153
154
155
156
        "type": "android.emulator",
        "device": {
          "avdName": "Nexus_5_API_28"
        }
      },
      "android.emu.release": {
        "binaryPath": "android/app/build/outputs/apk/release/app-release.apk",
        "build": "cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd ..",
        "type": "android.emulator",
        "device": {
          "avdName": "Nexus_5_API_28"
        }
      }
    },
157
    "runner-config": "test/e2e/jest.config.js",
158
    "test-runner": "jest"
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
159
160
  }
}