Repository navigation
[INTER-970] Add support for new arch #261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
c8dac0c
refactor(sdk): return visitor data as an object from native modules
TheUnderScorer 5df5374
refactor: access native module through codegen turbomodule spec
TheUnderScorer 63b1edc
feat(android): migrate native module to turbomodule (backward compati…
TheUnderScorer 65097ef
feat(ios): migrate native module to turbomodule (backward compatible)
TheUnderScorer a565e98
feat(e2e-app): add architecture info component
TheUnderScorer d35f521
fix(sdk): exclude build artifacts from pod source files
TheUnderScorer 1659c3e
chore: add temporary new/old arch logs
TheUnderScorer 504b63e
chore(e2e-tests): remove react-native pinning step
TheUnderScorer 5dbc29c
chore(android): update gradle config for architecture compatibility
TheUnderScorer a993f0b
chore(e2e-tests): pin react-native version and hoist deps
TheUnderScorer 5d8c1cf
chore(e2e-tests): add dependency inspection and pod install steps
TheUnderScorer 8d0ddd8
chore(e2e-tests): remove shameful hoisting and pod install steps
TheUnderScorer a97dde4
chore(e2e-app): update pnpm config to re-enable shameful hoisting
TheUnderScorer 217f6d3
chore(e2e-tests): add missing working-directory in steps
TheUnderScorer d2bf275
feat(e2e-app): add getData performance tracking logic
TheUnderScorer 0be97a8
feat(e2e-app): add UI Manager info to benchmark logs
TheUnderScorer 90a2f4e
refactor(e2e-app): adjust UI Manager text structure
TheUnderScorer fdf6bf8
feat(e2e-app): add retry logic for detox build steps
TheUnderScorer aac6cee
chore(android): add comments for new architecture enablement
TheUnderScorer e446eef
refactor: remove temporary logs for architecture verification
TheUnderScorer e44322b
chore(e2e-tests): add retry logic for detox test steps
TheUnderScorer 217c43f
chore: remove benchmark logic
TheUnderScorer e83c165
feat(react-native): add TurboModule support for new architecture
TheUnderScorer 9081de5
refactor(e2e-app): ensure boolean casting for global variables
TheUnderScorer a12776c
chore(e2e-tests): update retry wait duration
TheUnderScorer 336691a
chore: apply copilot suggestions
TheUnderScorer 18a4159
test(e2e-tests): add matrix support for architecture testing
TheUnderScorer c7a441c
refactor: unify method signatures and simplify logic
TheUnderScorer 23f53cd
refactor: enforce non-null timeout with sentinel values
TheUnderScorer 5efd0ef
refactor: remove legacy architecture support and dependencies
TheUnderScorer d1406f2
chore: enter pre-release mode
TheUnderScorer 64a3b35
Merge remote-tracking branch 'origin/main' into feature/INTER-970-new…
TheUnderScorer 62e7bc6
chore: resolve merge conflict in sdk/README.md
Copilot 9195690
refactor(ci): remove retry-cmd script and update workflows
TheUnderScorer 3c5913b
docs: restore comment
TheUnderScorer 6e64a6b
refactor(android): remove unused method withAndroidBuildProperties
TheUnderScorer 59208e4
test(e2e): add architecture verification test
TheUnderScorer 7145613
fix(e2e): update global type definitions
TheUnderScorer 505e400
fix(e2e): update testIds import path
TheUnderScorer fd2b23b
chore: revert retry-cmd script
TheUnderScorer ba3217d
fix(e2e): use env variable for apiKey in arch test
TheUnderScorer 9c41461
Merge branch 'main' into feature/INTER-970-new-arch
TheUnderScorer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| '@fingerprintjs/fingerprintjs-pro-react-native': major | ||
| --- | ||
|
|
||
| Dropped React Native Old Architecture support. The native module is now a TurboModule (New Architecture only) exposed via a Codegen spec. | ||
|
|
||
| This is a breaking change: the SDK now requires React Native >= 0.79 (Expo SDK >= 53) with the [New Architecture](https://reactnative.dev/architecture/landing-page) enabled. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "mode": "pre", | ||
| "tag": "rc", | ||
| "initialVersions": { | ||
| "@fingerprintjs/fingerprintjs-pro-react-native": "3.17.0" | ||
| }, | ||
| "changesets": [] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| import { by, device, element, waitFor } from 'detox' | ||
| import { beforeAll, describe, expect, it, jest } from '@jest/globals' | ||
| import { DeviceLaunchAppConfig } from 'detox/detox' | ||
| import { wait } from './wait' | ||
| import { Config } from '@/src/config.types' | ||
| import { testIds } from './ids' | ||
| import { getElementText } from './getElementText' | ||
|
|
||
| async function launchApp(params?: DeviceLaunchAppConfig) { | ||
| await device.launchApp(params) | ||
|
|
||
| await wait(4000) | ||
| } | ||
|
|
||
| jest.retryTimes(3, { | ||
| waitBeforeRetry: 1000, | ||
| logErrorsBeforeRetry: false, | ||
| }) | ||
|
|
||
| describe('React Native architecture', () => { | ||
| beforeAll(async () => { | ||
| await launchApp({ | ||
| newInstance: true, | ||
| launchArgs: { | ||
| apiKey: process.env.MINIMUM_US_DEFAULT_PUBLIC_KEY, | ||
| region: 'us', | ||
| } as Config, | ||
| }) | ||
| }) | ||
|
|
||
| it('runs on fabric', async () => { | ||
| await waitFor(element(by.id(testIds.uiManager))) | ||
| .toExist() | ||
| .withTimeout(10_000) | ||
|
|
||
| const uiManager = await getElementText(element(by.id(testIds.uiManager))) | ||
| expect(uiManager.toLowerCase()).toEqual('fabric') | ||
| }) | ||
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,4 +6,5 @@ export const testIds = { | |
| errorCause: 'error-cause', | ||
| data: 'data', | ||
| getData: 'get-data', | ||
| uiManager: 'ui-manager', | ||
| } | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,3 +4,5 @@ allowBuilds: | |
| detox: true | ||
| dtrace-provider: true | ||
| esbuild: true | ||
|
|
||
| shamefullyHoist: true | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.