Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: pr fixes
Browse files Browse the repository at this point in the history
oscb committed Apr 1, 2024
1 parent 6e46489 commit d4992a0
Showing 6 changed files with 11 additions and 57 deletions.
1 change: 1 addition & 0 deletions examples/AmazonKepler/buildinfo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"armv7":{"lib":"/Users/obazaldua/goprojs/src/github.com/segmentio/analytics-react-native/examples/AmazonKepler/build/private/vega/armv7/Debug/libamazonkepler.so","vpkg":"/Users/obazaldua/goprojs/src/github.com/segmentio/analytics-react-native/examples/AmazonKepler/build/private/kepler/amazonkepler/0.1/armv7/Debug/amazonkepler_armv7.vpkg"},"x86_64":{"lib":"/Users/obazaldua/goprojs/src/github.com/segmentio/analytics-react-native/examples/AmazonKepler/build/private/vega/x86_64/Debug/libamazonkepler.so","vpkg":"/Users/obazaldua/goprojs/src/github.com/segmentio/analytics-react-native/examples/AmazonKepler/build/private/kepler/amazonkepler/0.1/x86_64/Debug/amazonkepler_x86_64.vpkg"},"aarch64":{"lib":"/Users/obazaldua/goprojs/src/github.com/segmentio/analytics-react-native/examples/AmazonKepler/build/private/vega/aarch64/Debug/libamazonkepler.so","vpkg":"/Users/obazaldua/goprojs/src/github.com/segmentio/analytics-react-native/examples/AmazonKepler/build/private/kepler/amazonkepler/0.1/aarch64/Debug/amazonkepler_aarch64.vpkg"}}
Original file line number Diff line number Diff line change
@@ -20,6 +20,7 @@ class MainApplication : Application(), ReactApplication {
object : DefaultReactNativeHost(this) {
override fun getPackages(): List<ReactPackage> {
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
return PackageList(this).packages
}

2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ We have a helper to grab all the data to link the packages to metro, native modu

That said you still have to setup some files to make it work.

First create a file (e.g. `workspace.js`, but naming doesn't matter) to initialize the helper. The `getLinkedData` function receives an array of relative paths (from the `packages` directory) to link. e.g. `core`, `sovran` or for specific plugins `plugins/plugin-idfa`.
First create a file (e.g. `workspace.js`, but naming doesn't matter) to initialize the helper. The `getLinkedData` function receives an array of relative paths (from the `packages` directory) to link. e.g. `core` or for specific plugins `plugins/plugin-idfa`.

_NOTE: These are NOT the module names. Nor only the directory name, but the relative path. Be careful with nested packages_

3 changes: 1 addition & 2 deletions packages/core/tsconfig.linter.json
Original file line number Diff line number Diff line change
@@ -6,6 +6,5 @@
"baseUrl": "."
},
"include": ["src/**/*", "types.d.ts"],
"exclude": ["**/__fixtures__/**/*", "**/__snapshots__/**/*"],
"references": [{ "path": "../sovran" }] // Add refereneces to any packages you require
"exclude": ["**/__fixtures__/**/*", "**/__snapshots__/**/*"]
}
5 changes: 0 additions & 5 deletions packages/shared/__mocks__/react-native.ts
Original file line number Diff line number Diff line change
@@ -33,11 +33,6 @@ export const NativeModules = {
deviceType: 'phone',
}),
},
Sovran: {
getConstants: () => ({
ON_STORE_ACTION: 'ON_STORE_ACTION',
}),
},
};

export const Platform = {
56 changes: 7 additions & 49 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -3348,7 +3348,6 @@ __metadata:
dependencies:
"@segment/analytics-react-native": "npm:^2.18.0"
"@segment/analytics-rn-shared": "workspace:^"
"@segment/sovran-react-native": "npm:^1.1.0"
jest: "npm:^29.7.0"
react-native-adjust: "npm:^4.33.0"
react-native-builder-bob: "npm:^0.23.1"
@@ -3366,7 +3365,6 @@ __metadata:
dependencies:
"@segment/analytics-react-native": "npm:^2.18.0"
"@segment/analytics-rn-shared": "workspace:^"
"@segment/sovran-react-native": "npm:^1.1.0"
jest: "npm:^29.7.0"
react-native-builder-bob: "npm:^0.23.1"
rimraf: "npm:^5.0.5"
@@ -3382,7 +3380,6 @@ __metadata:
dependencies:
"@segment/analytics-react-native": "npm:^2.18.0"
"@segment/analytics-rn-shared": "workspace:^"
"@segment/sovran-react-native": "npm:^1.1.0"
"@types/jest": "npm:^29.5.8"
rimraf: "npm:^5.0.5"
ts-jest: "npm:^29.1.1"
@@ -3398,7 +3395,6 @@ __metadata:
dependencies:
"@segment/analytics-react-native": "npm:^2.18.0"
"@segment/analytics-rn-shared": "workspace:^"
"@segment/sovran-react-native": "npm:^1.1.0"
jest: "npm:^29.7.0"
react-native-appsflyer: "npm:^6.9.4"
react-native-builder-bob: "npm:^0.23.1"
@@ -3417,7 +3413,6 @@ __metadata:
dependencies:
"@segment/analytics-react-native": "npm:^2.18.0"
"@segment/analytics-rn-shared": "workspace:^"
"@segment/sovran-react-native": "npm:^1.1.0"
jest: "npm:^29.7.0"
react-native-branch: "npm:^5.6.0"
react-native-builder-bob: "npm:^0.23.1"
@@ -3436,7 +3431,6 @@ __metadata:
dependencies:
"@segment/analytics-react-native": "npm:^2.18.0"
"@segment/analytics-rn-shared": "workspace:^"
"@segment/sovran-react-native": "npm:^1.1.0"
jest: "npm:^29.7.0"
react-native-builder-bob: "npm:^0.23.1"
rimraf: "npm:^5.0.5"
@@ -3453,7 +3447,6 @@ __metadata:
"@braze/react-native-sdk": "npm:^5.x"
"@segment/analytics-react-native": "npm:^2.18.0"
"@segment/analytics-rn-shared": "workspace:^"
"@segment/sovran-react-native": "npm:^1.1.0"
jest: "npm:^29.7.0"
react-native-builder-bob: "npm:^0.23.1"
rimraf: "npm:^5.0.5"
@@ -3470,7 +3463,6 @@ __metadata:
dependencies:
"@segment/analytics-react-native": "npm:^2.18.0"
"@segment/analytics-rn-shared": "workspace:^"
"@segment/sovran-react-native": "npm:^1.1.0"
clevertap-react-native: "npm:^1.0.0"
jest: "npm:^29.7.0"
react-native-builder-bob: "npm:^0.23.1"
@@ -3488,7 +3480,6 @@ __metadata:
dependencies:
"@segment/analytics-react-native": "npm:^2.18.0"
"@segment/analytics-rn-shared": "workspace:^"
"@segment/sovran-react-native": "npm:^1.1.0"
"@segment/tsub": "npm:^2"
"@types/clone": "npm:^2.1.1"
clone: "npm:^2.1.2"
@@ -3498,7 +3489,6 @@ __metadata:
typescript: "npm:^5.2.2"
peerDependencies:
"@segment/analytics-react-native": ^2.18.0
"@segment/sovran-react-native": "*"
languageName: unknown
linkType: soft

@@ -3510,7 +3500,6 @@ __metadata:
"@react-native-firebase/messaging": "npm:^17.3.2"
"@segment/analytics-react-native": "npm:^2.18.0"
"@segment/analytics-rn-shared": "workspace:^"
"@segment/sovran-react-native": "npm:^1.1.0"
jest: "npm:^29.7.0"
react-native-builder-bob: "npm:^0.23.1"
rimraf: "npm:^5.0.5"
@@ -3529,7 +3518,6 @@ __metadata:
dependencies:
"@segment/analytics-react-native": "npm:^2.18.0"
"@segment/analytics-rn-shared": "workspace:^"
"@segment/sovran-react-native": "npm:^1.1.0"
jest: "npm:^29.7.0"
react-native-builder-bob: "npm:^0.23.1"
react-native-fbsdk-next: "npm:^12"
@@ -3549,7 +3537,6 @@ __metadata:
"@react-native-firebase/app": "npm:^18.4.0"
"@segment/analytics-react-native": "npm:^2.18.0"
"@segment/analytics-rn-shared": "workspace:^"
"@segment/sovran-react-native": "npm:^1.1.0"
jest: "npm:^29.7.0"
react-native-builder-bob: "npm:^0.23.1"
rimraf: "npm:^5.0.5"
@@ -3567,7 +3554,6 @@ __metadata:
dependencies:
"@segment/analytics-react-native": "npm:^2.18.0"
"@segment/analytics-rn-shared": "workspace:^"
"@segment/sovran-react-native": "npm:^1.1.0"
jest: "npm:^29.7.0"
react-native-builder-bob: "npm:^0.23.1"
rimraf: "npm:^5.0.5"
@@ -3583,7 +3569,6 @@ __metadata:
dependencies:
"@segment/analytics-react-native": "npm:^2.18.0"
"@segment/analytics-rn-shared": "workspace:^"
"@segment/sovran-react-native": "npm:^1.1.0"
jest: "npm:^29.7.0"
mixpanel-react-native: "npm:^2.1.0"
react-native-builder-bob: "npm:^0.23.1"
@@ -3601,7 +3586,6 @@ __metadata:
dependencies:
"@segment/analytics-react-native": "npm:^2.18.0"
"@segment/analytics-rn-shared": "workspace:^"
"@segment/sovran-react-native": "npm:^1.1.0"
jest: "npm:^29.7.0"
on-change: "npm:^3.0.2"
react-native-builder-bob: "npm:^0.23.1"
@@ -3610,7 +3594,6 @@ __metadata:
typescript: "npm:^5.2.2"
peerDependencies:
"@segment/analytics-react-native": ^2.18.0
"@segment/sovran-react-native": "*"
react-native-onetrust-cmp: ^202308.2.0
languageName: unknown
linkType: soft
@@ -3651,24 +3634,6 @@ __metadata:
languageName: unknown
linkType: soft

"@segment/sovran-react-native@npm:^1.1.0":
version: 1.1.0
resolution: "@segment/sovran-react-native@npm:1.1.0"
dependencies:
ansi-regex: "npm:5.0.1"
deepmerge: "npm:^4.2.2"
shell-quote: "npm:1.8.0"
peerDependencies:
"@react-native-async-storage/async-storage": 1.x
react: "*"
react-native: "*"
peerDependenciesMeta:
"@react-native-async-storage/async-storage":
optional: true
checksum: 10c0/3ad9ee883e87c45b8737be42ee5ebb9e710e48b3d921149bc7ee02687cde603cc996889a362beb44106103bd7a318d453e279e72b46d6d2f4f8c47a826e46308
languageName: node
linkType: hard

"@segment/tsub@npm:^2":
version: 2.0.0
resolution: "@segment/tsub@npm:2.0.0"
@@ -5704,20 +5669,20 @@ __metadata:
languageName: node
linkType: hard

"ansi-regex@npm:5.0.1, ansi-regex@npm:^5.0.0, ansi-regex@npm:^5.0.1":
version: 5.0.1
resolution: "ansi-regex@npm:5.0.1"
checksum: 10c0/9a64bb8627b434ba9327b60c027742e5d17ac69277960d041898596271d992d4d52ba7267a63ca10232e29f6107fc8a835f6ce8d719b88c5f8493f8254813737
languageName: node
linkType: hard

"ansi-regex@npm:^4.1.0":
version: 4.1.1
resolution: "ansi-regex@npm:4.1.1"
checksum: 10c0/d36d34234d077e8770169d980fed7b2f3724bfa2a01da150ccd75ef9707c80e883d27cdf7a0eac2f145ac1d10a785a8a855cffd05b85f778629a0db62e7033da
languageName: node
linkType: hard

"ansi-regex@npm:^5.0.0, ansi-regex@npm:^5.0.1":
version: 5.0.1
resolution: "ansi-regex@npm:5.0.1"
checksum: 10c0/9a64bb8627b434ba9327b60c027742e5d17ac69277960d041898596271d992d4d52ba7267a63ca10232e29f6107fc8a835f6ce8d719b88c5f8493f8254813737
languageName: node
linkType: hard

"ansi-regex@npm:^6.0.1":
version: 6.0.1
resolution: "ansi-regex@npm:6.0.1"
@@ -13952,13 +13917,6 @@ __metadata:
languageName: node
linkType: hard

"shell-quote@npm:1.8.0":
version: 1.8.0
resolution: "shell-quote@npm:1.8.0"
checksum: 10c0/651a201a1af981d49326fac8c005bbe2af97bc56fcabded0b22944c08eea0ba3bccfa497168d4bcb70508ca5802fe1cb83ca89a7e121eb0701d4c8b1d6c71a5d
languageName: node
linkType: hard

"shell-quote@npm:^1.6.1, shell-quote@npm:^1.7.3":
version: 1.8.1
resolution: "shell-quote@npm:1.8.1"

0 comments on commit d4992a0

Please sign in to comment.