chore: separate suite native to its own packges folder (#5685)

This commit is contained in:
Daniel Suchý
2022-06-26 22:02:40 +02:00
committed by GitHub
parent c0eeb4afce
commit 1cd4f5d7bf
223 changed files with 91 additions and 79 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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:

View File

@@ -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:

View File

@@ -1,5 +1,5 @@
{
"packages": ["packages/*", "scripts"],
"packages": ["packages/*", "suite-native/*", "scripts"],
"npmClient": "yarn",
"useWorkspaces": true,
"version": "independent"

View File

@@ -11,6 +11,7 @@
"workspaces": {
"packages": [
"packages/*",
"suite-native/*",
"scripts"
],
"nohoist": [

View File

@@ -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..

View File

@@ -1,9 +0,0 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": { "outDir": "libDev" },
"references": [
{ "path": "../suite-native-navigation" },
{ "path": "../suite-native-atoms" },
{ "path": "../styles" }
]
}

View File

@@ -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" }
]
}

View File

@@ -1,9 +0,0 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": { "outDir": "libDev" },
"references": [
{ "path": "../suite-native-navigation" },
{ "path": "../suite-native-atoms" },
{ "path": "../styles" }
]
}

View File

@@ -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"]
}

View File

@@ -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: "../../../../"
]

View File

@@ -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";
}
};

View File

@@ -56,7 +56,7 @@ public class MainApplicationReactNativeHost extends ReactNativeHost {
@Override
protected String getJSMainModuleName() {
return "packages/suite-native/index";
return "suite-native/app/index";
}
@NonNull

Some files were not shown because too many files have changed in this diff Show More