chore: separate suite native to its own packges folder (#5685)
@@ -1,6 +1,7 @@
|
||||
packages/**/node_modules
|
||||
packages/blockchain-link
|
||||
packages/suite-desktop
|
||||
packages/suite-native
|
||||
suite-native/app
|
||||
suite-native/**/node_modules
|
||||
node_modules
|
||||
.git
|
||||
.git
|
||||
|
||||
@@ -46,9 +46,7 @@
|
||||
|
||||
/packages/suite-desktop-api @szymonlesisz @marekrjpolak
|
||||
|
||||
/packages/suite-native @matejkriz @Nodonisko
|
||||
|
||||
/packages/suite-native-* @Nodonisko @bouchja1 @juriczech
|
||||
/suite-native @Nodonisko @bouchja1 @juriczech
|
||||
|
||||
/packages/suite-storage @matejkriz
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
| [@trezor/suite-data](./packages/suite-data) | suite static data |
|
||||
| [@trezor/suite-desktop-api](./packages/suite-desktop-api) | API for suite - suite-desktop communication |
|
||||
| [@trezor/suite-desktop](./packages/suite-desktop) | suite build target for Mac, Win, Linux |
|
||||
| [@trezor/suite-native](./packages/suite-native) | suite build target for react-native |
|
||||
| [@trezor/suite-native](./suite-native/app) | suite build target for react-native |
|
||||
| [@trezor/suite-storage](./packages/suite-storage) | abstract database definition for suite |
|
||||
| [@trezor/suite-web-landing](./packages/suite-web-landing) | https://suite.trezor.io/ |
|
||||
| [@trezor/suite-web](./packages/suite-web) | suite build target for web |
|
||||
@@ -49,7 +49,7 @@ Before you start make sure you have downloaded and installed [NVM](https://githu
|
||||
- `yarn`
|
||||
- `yarn build:libs && yarn workspace @trezor/suite-data msg-system-sign-config`
|
||||
|
||||
_To set up your dev environment for a native platform (iOS/Android) follow [these additional steps](https://github.com/trezor/trezor-suite/tree/develop/packages/suite-native#development)._
|
||||
_To set up your dev environment for a native platform (iOS/Android) follow [these additional steps](https://github.com/trezor/trezor-suite/tree/develop/suite-native/app#development)._
|
||||
|
||||
Run a dev build:
|
||||
|
||||
|
||||
@@ -283,7 +283,7 @@ suite-native build android:
|
||||
- yarn install --frozen-lockfile --cache-folder .yarn --prefer-offline
|
||||
- yarn workspace @trezor/suite-data copy-static-files
|
||||
- yarn workspace @trezor/suite-native build:android
|
||||
- mv packages/suite-native/android/app/build/outputs/apk/dev/debug/app-dev-debug.apk .
|
||||
- mv suite-native/app/android/app/build/outputs/apk/dev/debug/app-dev-debug.apk .
|
||||
artifacts:
|
||||
expire_in: 7 day
|
||||
paths:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"packages": ["packages/*", "scripts"],
|
||||
"packages": ["packages/*", "suite-native/*", "scripts"],
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": true,
|
||||
"version": "independent"
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
"workspaces": {
|
||||
"packages": [
|
||||
"packages/*",
|
||||
"suite-native/*",
|
||||
"scripts"
|
||||
],
|
||||
"nohoist": [
|
||||
|
||||
@@ -12,8 +12,8 @@ function messageToHex(string: string) {
|
||||
|
||||
describe('typedData', () => {
|
||||
commonFixtures.tests
|
||||
.filter(test => test.parameters.metamask_v4_compat)
|
||||
.forEach(test => {
|
||||
.filter((test: any) => test.parameters.metamask_v4_compat)
|
||||
.forEach((test: any) => {
|
||||
it('typedData to message_hash and domain_separator_hash', () => {
|
||||
const transformed = transformTypedData(
|
||||
// @ts-ignore JSON..
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": { "outDir": "libDev" },
|
||||
"references": [
|
||||
{ "path": "../suite-native-navigation" },
|
||||
{ "path": "../suite-native-atoms" },
|
||||
{ "path": "../styles" }
|
||||
]
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": { "outDir": "libDev" },
|
||||
"references": [
|
||||
{ "path": "../suite-native-settings" },
|
||||
{ "path": "../suite-native-navigation" },
|
||||
{ "path": "../suite-native-atoms" },
|
||||
{ "path": "../icons" },
|
||||
{ "path": "../styles" }
|
||||
]
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": { "outDir": "libDev" },
|
||||
"references": [
|
||||
{ "path": "../suite-native-navigation" },
|
||||
{ "path": "../suite-native-atoms" },
|
||||
{ "path": "../styles" }
|
||||
]
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": { "outDir": "libDev" },
|
||||
"references": [
|
||||
{ "path": "../suite-native-atoms" },
|
||||
{
|
||||
"path": "../suite-native-navigation-root"
|
||||
},
|
||||
{ "path": "../connect" },
|
||||
{ "path": "../styles" },
|
||||
{ "path": "../theme" },
|
||||
{ "path": "../transport-native" }
|
||||
],
|
||||
"include": [".", "**.json"]
|
||||
}
|
||||
@@ -87,7 +87,7 @@ project.ext.react = [
|
||||
hermesCommand: "../../../../node_modules/hermes-engine/%OS-BIN%/hermesc",
|
||||
composeSourceMapsPath: "../../node_modules/react-native/scripts/compose-source-maps.js",
|
||||
cliPath: "../../../../node_modules/react-native/cli.js",
|
||||
entryFile: "packages/suite-native/index.js",
|
||||
entryFile: "suite-native/app/index.js",
|
||||
reactRoot: "../../../../"
|
||||
]
|
||||
|
||||
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
@@ -33,7 +33,7 @@ public class MainApplication extends Application implements ReactApplication {
|
||||
|
||||
@Override
|
||||
protected String getJSMainModuleName() {
|
||||
return "packages/suite-native/index";
|
||||
return "suite-native/app/index";
|
||||
}
|
||||
};
|
||||
|
||||
@@ -56,7 +56,7 @@ public class MainApplicationReactNativeHost extends ReactNativeHost {
|
||||
|
||||
@Override
|
||||
protected String getJSMainModuleName() {
|
||||
return "packages/suite-native/index";
|
||||
return "suite-native/app/index";
|
||||
}
|
||||
|
||||
@NonNull
|
||||
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |