Skip to content

Commit a9f242d

Browse files
authored
Merge pull request #48 from contentpass/contentpass-layer
Introduce Contentpass layer and OneTrust CMP adapters
2 parents d5514c4 + 9f3eddf commit a9f242d

File tree

314 files changed

+19300
-10065
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

314 files changed

+19300
-10065
lines changed

.changeset/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in the repository](https://github.com/changesets/changesets).
6+
7+
## Usage
8+
9+
To add a new changeset, run `yarn changeset` in the root of the repository. This will prompt you to:
10+
11+
1. Select which packages have changed
12+
2. Choose a semver bump type (major / minor / patch) for each
13+
3. Write a summary of the changes
14+
15+
The changeset file will be committed with your PR.
16+
17+
When it's time to release, run:
18+
19+
```bash
20+
yarn changeset:version # Apply version bumps and generate changelogs
21+
yarn changeset:publish # Build and publish to npm
22+
```

.changeset/config.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "contentpass/react-native-contentpass" }
6+
],
7+
"commit": false,
8+
"fixed": [],
9+
"linked": [],
10+
"access": "public",
11+
"baseBranch": "main",
12+
"updateInternalDependencies": "patch",
13+
"ignore": [],
14+
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
15+
"onlyUpdatePeerDependentsWhenOutOfRange": true
16+
}
17+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@contentpass/react-native-contentpass": minor
3+
---
4+
5+
Introduce CMP adapter layer and UI components architecture

.changeset/new-cmp-onetrust.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@contentpass/react-native-contentpass-cmp-onetrust": minor
3+
---
4+
5+
Initial release of the OneTrust CMP adapter for Contentpass React Native SDK

.changeset/new-ui-components.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@contentpass/react-native-contentpass-ui": minor
3+
---
4+
5+
Initial release of the Contentpass React Native UI components

.eslintignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
uses: ./.github/actions/setup
3535

3636
- name: Run unit tests
37-
run: yarn test --maxWorkers=2 --coverage
37+
run: yarn test
3838

3939
build-library:
4040
runs-on: ubuntu-latest
@@ -45,8 +45,8 @@ jobs:
4545
- name: Setup
4646
uses: ./.github/actions/setup
4747

48-
- name: Build package
49-
run: yarn prepare
48+
- name: Build packages
49+
run: yarn build
5050

5151
# build-android:
5252
# runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ on: workflow_dispatch
33

44
# See https://docs.npmjs.com/trusted-publishers
55
permissions:
6-
id-token: write # Required for OIDC
7-
contents: read
6+
id-token: write # Required for OIDC
7+
contents: write # Required for creating tags and GitHub releases
8+
pull-requests: write # Required for changesets to create release PRs
89

910
jobs:
1011
release:
@@ -24,10 +25,24 @@ jobs:
2425
git config --global user.email "dev@contentpass.de"
2526
git config --global user.name "Release Workflow"
2627
27-
- name: Log git status
28-
run: git status
28+
- name: Lint, test, typecheck
29+
run: |
30+
yarn lint
31+
yarn test
32+
yarn typecheck
33+
yarn prettier:check
34+
35+
- name: Build
36+
run: yarn build
2937

30-
- name: Run release
31-
run: npm run release --ci
38+
- name: Create release pull request or publish
39+
id: changesets
40+
uses: changesets/action@v1
41+
with:
42+
version: yarn changeset:version
43+
publish: yarn changeset:publish
44+
title: "chore: version packages"
45+
commit: "chore: version packages"
3246
env:
33-
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
47+
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
48+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,10 @@ android.iml
4242

4343
# Cocoapods
4444
#
45-
example/ios/Pods
46-
expoExample/ios/Pods
45+
examples/*/ios/Pods
4746

4847
# Ruby
49-
example/vendor/
50-
expoExample/vendor/
48+
examples/*/vendor/
5149

5250
# node.js
5351
#
@@ -84,6 +82,7 @@ ios/generated
8482
android/generated
8583

8684
/coverage/
85+
coverage/
8786

8887
# to not commit NPM token
8988
.npmrc

0 commit comments

Comments
 (0)