Skip to content
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

merge master into beta branch #990

Closed
wants to merge 71 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
acc8a93
fix: startup flush policy should send restored events (#943)
oscb Apr 24, 2024
2bad063
Include updated Expo instructions for deep link tracking (#944)
leopic Apr 24, 2024
f1c8c2b
chore(deps): bump tar from 6.2.0 to 6.2.1 (#941)
dependabot[bot] Apr 29, 2024
f8e7456
chore(deps): bump tar from 6.2.0 to 6.2.1 in /examples/E2E-73 (#940)
dependabot[bot] Apr 29, 2024
2befe48
chore(deps): bump tar from 6.2.0 to 6.2.1 in /examples/E2E (#939)
dependabot[bot] Apr 29, 2024
9f748ed
chore(deps): bump tar from 6.2.0 to 6.2.1 in /examples/AnalyticsReact…
dependabot[bot] Apr 29, 2024
c3a31a3
chore(deps-dev): bump express from 4.18.2 to 4.19.2 in /examples/E2E …
dependabot[bot] Apr 29, 2024
2230459
chore(deps-dev): bump express from 4.18.2 to 4.19.2 in /examples/E2E-…
dependabot[bot] Apr 29, 2024
62e63d7
chore(deps): bump ip from 1.1.8 to 1.1.9 (#918)
dependabot[bot] Apr 29, 2024
9d29c07
chore(deps): bump ip from 1.1.8 to 1.1.9 in /examples/E2E-73 (#921)
dependabot[bot] Apr 29, 2024
d0b1a7b
chore(deps): bump ip from 1.1.8 to 1.1.9 in /examples/E2E (#920)
dependabot[bot] Apr 29, 2024
d989acd
chore(deps): bump ip from 1.1.8 to 1.1.9 in /examples/AnalyticsReactN…
dependabot[bot] Apr 29, 2024
b7f0908
ci: Update Publish CI and instructions
oscb Apr 29, 2024
a7aca6b
chore: fix tests non-awaited promise
oscb May 3, 2024
ff05188
Update ci.yml
alanjcharles May 20, 2024
10b8fef
Update ci.yml
alanjcharles May 20, 2024
b480424
Update ci.yml
alanjcharles May 20, 2024
129fff4
Update ci.yml
alanjcharles May 20, 2024
64b08ba
Update ci.yml
alanjcharles May 20, 2024
8b73a43
Update ci.yml
alanjcharles May 20, 2024
8e34f1f
Update ci.yml
alanjcharles May 20, 2024
ac5d48b
Update ci.yml
alanjcharles May 20, 2024
4831068
Update ci.yml
alanjcharles May 20, 2024
b3fac4c
Update ci.yml
alanjcharles May 20, 2024
095f5c5
Update .detoxrc.js
alanjcharles May 20, 2024
4abcdab
Update ci.yml
alanjcharles May 20, 2024
e56110d
Update ci.yml
alanjcharles May 20, 2024
ea43004
Update ci.yml
alanjcharles May 20, 2024
3ed7d12
Update ci.yml
alanjcharles May 20, 2024
a8daaea
Update ci.yml
alanjcharles May 20, 2024
9b84326
Update ci.yml
alanjcharles May 20, 2024
6bb296a
Update ci.yml
alanjcharles May 20, 2024
9de15de
Update ci.yml
alanjcharles May 20, 2024
84ffd98
Update .detoxrc.js
alanjcharles May 20, 2024
4cbb4e8
Update unmapped.test.ts
alanjcharles May 20, 2024
ca6ee10
fix: remove idfv fallback for idfa plugin (#942)
ashton-huxtable May 20, 2024
b49df51
Removed the AdMob link from the setup instructions (#931)
gbyesiltas May 20, 2024
5e164ca
using the right arguments to pass the valueToSum param (#936)
gbyesiltas May 20, 2024
2525c08
update atttime in appsflyer plugin to be configurable (#945)
hvardhan-unth May 20, 2024
9925a32
Upgrade braze react native sdk to 10.x (#946)
hvardhan-unth May 24, 2024
18ca2ed
update branch plugin key (#949)
hvardhan-unth May 29, 2024
550ad29
Added privacy manifest file (#948)
hvardhan-unth Jun 3, 2024
0ca61ca
reset anonymousId properly (#950)
hvardhan-unth Jun 3, 2024
9f59968
reset parameter documentation (#951)
hvardhan-unth Jun 4, 2024
a8d4a6e
chore(release): 2.19.2 [skip ci]
semantic-release-bot Jun 5, 2024
4067539
chore(release): 0.6.1 [skip ci]
semantic-release-bot Jun 5, 2024
e079c71
chore: prepare for release (#952)
alanjcharles Jun 5, 2024
9857405
fix: revert anonId changes (#956)
alanjcharles Jun 11, 2024
f726a18
update userInfo root (#962)
hvardhan-unth Jun 18, 2024
2810da3
chore(deps): bump braces from 3.0.2 to 3.0.3 (#960)
dependabot[bot] Jun 18, 2024
8a25765
fix kotlin version issue (#967)
hvardhan-unth Jun 27, 2024
748a0fd
handled promise rejection (#966)
hvardhan-unth Jun 27, 2024
35aefe3
fix test cases issue (#968)
hvardhan-unth Jul 2, 2024
b520e16
Log more attribution params from Appsflyer (#955)
hvardhan-unth Jul 2, 2024
5e7bb48
Fix/libweb 1755 (#969)
hvardhan-unth Jul 2, 2024
f05486e
fix: revert anonymousId get from store on reset (#974)
alanjcharles Jul 22, 2024
59ba43c
fix: refactor ConsentPlugin and OneTrust Plugin (#959)
alanjcharles Jul 23, 2024
21675cb
chore(release): 1.1.2 [skip ci]
semantic-release-bot Jul 31, 2024
d0034d6
chore(release): 2.19.3 [skip ci]
semantic-release-bot Jul 31, 2024
7e9023a
chore(release): 0.7.3 [skip ci]
semantic-release-bot Jul 31, 2024
5aaa588
chore(release): 1.2.1 [skip ci]
semantic-release-bot Jul 31, 2024
86bf7a6
fix: added the missing property mappings for the firebase plugin (#980)
hvardhan-unth Aug 1, 2024
307d984
chore: bump appsflyer (#981)
alanjcharles Aug 1, 2024
bdb5e33
chore(release): 0.4.2 [skip ci]
semantic-release-bot Aug 1, 2024
dcd81e9
chore(deps): bump fast-xml-parser (#975)
dependabot[bot] Aug 5, 2024
4f80a8e
Update publish.yml
alanjcharles Aug 5, 2024
a71d530
Update create_jira.yml
alanjcharles Aug 5, 2024
4b53875
fix: increase default timeout and change warning to info (#984)
alanjcharles Aug 6, 2024
785c02a
fix: add strict dep for base-64-normalizer (#986)
alanjcharles Aug 15, 2024
4670181
Update publish.yml
alanjcharles Aug 15, 2024
c1a0957
chore(release): 2.19.4 [skip ci]
semantic-release-bot Aug 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
build-and-test:
needs: cancel_previous
runs-on: 'ubuntu-latest'
env:
YARN_ENABLE_HARDENED_MODE: 0
steps:
- uses: actions/checkout@v4
# Workaround for corepack enable in node
Expand All @@ -33,14 +35,15 @@ jobs:
run: yarn install --immutable
- name: Build
run: yarn build
# Linter has to run after the build because it relies on TS types
- name: Lint
run: yarn lint
- name: Test
run: yarn test --coverage

run-e2e-ios:
runs-on: 'macos-13'
env:
YARN_ENABLE_HARDENED_MODE: 0
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
Expand Down Expand Up @@ -76,17 +79,19 @@ jobs:
run: yarn e2e test:ios

run-e2e-android:
runs-on: 'macos-latest' # This is important, linux cannot run the emulator graphically for e2e tests
runs-on: 'macos-13' # This is important, linux cannot run the emulator graphically for e2e tests
strategy:
matrix:
api-level: [21]
profile: ['pixel_xl']
env:
YARN_ENABLE_HARDENED_MODE: 0
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '11'
distribution: 'temurin'
java-version: '17'
cache: 'gradle'

- name: Gradle cache
Expand All @@ -112,7 +117,7 @@ jobs:
with:
api-level: ${{ matrix.api-level }}
profile: ${{matrix.profile}}
name: Pixel_API_21_AOSP
avd-name: Pixel_API_21_AOSP
target: default
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/create_jira.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
id: create
uses: atlassian/gajira-create@master
with:
project: LIBWEB
project: LIBRARIES
issuetype: Bug
summary: |
[${{ github.event.repository.name }}] (${{ github.event.issue.number }}): ${{ github.event.issue.title }}
Expand All @@ -33,8 +33,8 @@ jobs:
${{ github.event.issue.body }}
# Parent and Epic Link fields (set to same)
fields: '{
"parent": {"key": "LIBWEB-1530"},
"customfield_10002": "LIBWEB-1530"
"parent": {"key": "LIBRARIES-2048"},
"customfield_10002": "LIBRARIES-2048"
}'

- name: Log created issue
Expand Down
12 changes: 1 addition & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish
on:
workflow_dispatch:
secrets:
GITHUB_TOKEN:
GH_TOKEN:
required: true
NPM_TOKEN:
required: true
Expand Down Expand Up @@ -55,13 +55,3 @@ jobs:
yarn install --no-immutable
yarn e2e install --no-immutable
yarn example install --no-immutable

- name: Commit Updated App Locks
run: |
git config user.email "[email protected]"
git config user.name "semantic-release-bot"
git add yarn.lock
git add examples/E2E/yarn.lock
git add examples/AnalyticsReactNativeExample/yarn.lock
git commit -m "chore(release): update lockfiles [skip ci]" --no-verify
git push
47 changes: 34 additions & 13 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

We want this community to be friendly and respectful to each other. Please follow it in all your interactions with the project.

## Prerequisites

Follow the official guide for getting your [RN Environment setup](https://reactnative.dev/docs/0.72/environment-setup)

React Native requires different versions of the tools/languages you might be using already. Even among RN releases there might be different versions required. We recommend using the following tools to manage your toolsets:

- [Xcodes](https://github.com/XcodesOrg/XcodesApp)
- To manage different releases of Xcode. The latest release of RN is usually supported by the latest Xcode release but previous releases might not.
- [Mise](https://mise.jdx.dev/dev-tools/) or [ASDF](https://asdf-vm.com/guide/getting-started.html) for everything else
- Node, Ruby and Java version support might change amongst RN releases. These version managers let you manage multiple versions of them.

## Development workflow

To get started with the project, run `yarn bootstrap` in the root directory to install the required dependencies for each package:
Expand All @@ -11,7 +22,7 @@ yarn bootstrap
```

While developing, you can run the [example app](/example/) to test your changes.

code
To start the packager:

```sh
Expand Down Expand Up @@ -52,16 +63,16 @@ yarn test
The are also end-to-end tests. First you will have to build the app and then run the tests:

```
# Start the server (*note there's a separate e2e command*
yarn example start:e2e
# Start the server (*note there's a separate e2e command*)
yarn e2e start:e2e

# iOS
yarn example e2e:build:ios
yarn example e2e:test:ios
yarn e2e e2e:build:ios
yarn e2e e2e:test:ios

# Android
yarn example e2e:build:android
yarn example e2e:test:android
yarn e2e e2e:build:android
yarn e2e e2e:test:android
```

To edit the Objective-C / Swift files, open `example/ios/AnalyticsReactNativeExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > @segment/analytics-react-native`.
Expand Down Expand Up @@ -100,12 +111,12 @@ The `package.json` file contains various scripts for common tasks:
- `yarn example start`: start the Metro server for the example app.
- `yarn example android`: run the example app on Android.
- `yarn example ios`: run the example app on iOS.
- `yarn example e2e:build:ios`: builds the example app using detox
- `yarn example e2e:test:ios`: runs the e2e on a simulator(headless if not ran manually)
- `yarn example e2e:build:android`: builds the example app using detox
- `yarn example e2e:test:android`: runs the e2e on an emulator
- `yarn example ios:deeplink`: opens the ios app via deep link (example app must already be installed)
- `yarn example android:deeplink`: opens the Android app via deep link (example app must already be installed)
- `yarn e2e e2e:build:ios`: builds the e2e app using detox
- `yarn e2e e2e:test:ios`: runs the e2e on a simulator(headless if not ran manually)
- `yarn e2e e2e:build:android`: builds the e2e app using detox
- `yarn e2e e2e:test:android`: runs the e2e on an emulator
- `yarn e2e ios:deeplink`: opens the ios app via deep link (example app must already be installed)
- `yarn e2e android:deeplink`: opens the Android app via deep link (example app must already be installed)

### Sending a pull request

Expand All @@ -118,3 +129,13 @@ When you're sending a pull request:
- Review the documentation to make sure it looks good.
- Follow the pull request template when opening a pull request.
- For pull requests that change the API or implementation, discuss with maintainers first by opening an issue.

## Release

Release is automated in GHA. By default `yarn release` won't let you trigger a release from your personal computer.

To trigger a release go to Actions. Select the `Publish` workflow and trigger a new job.

Automatically the workflow will analyze the commits, bump versions, create changesets, build and release to NPM the packages that need so.

The CI/CD is automated using [semantic-release](https://github.com/semantic-release/semantic-release).
Loading
Loading