Skip to content

Commit 6ac2466

Browse files
committed
feat: introduce ui and cmp adapters
1 parent d5514c4 commit 6ac2466

File tree

309 files changed

+19657
-9330
lines changed

Some content is hidden

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

309 files changed

+19657
-9330
lines changed

.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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
run: git status
2929

3030
- name: Run release
31-
run: npm run release --ci
31+
run: yarn release --ci
3232
env:
33-
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
33+
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_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

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.17.0
1+
v22.15.0

.release-it.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"yarn test",
66
"yarn typecheck",
77
"yarn prettier:check",
8-
"yarn prepare"
8+
"yarn build"
99
]
1010
},
1111
"git": {
@@ -15,7 +15,13 @@
1515
},
1616
"npm": {
1717
"publish": true,
18-
"skipChecks": true
18+
"skipChecks": true,
19+
"publishArgs": [
20+
"--workspaces"
21+
],
22+
"versionArgs": [
23+
"--workspaces"
24+
]
1925
},
2026
"github": {
2127
"release": true

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ piece of content. It applies to all users, whether authenticated or unauthentica
8282

8383
### registerObserver
8484
Registers a callback function to listen for changes in the user’s authentication and subscription status. The observer function
85-
receives a state object describing the current status (see the exported [ContentpassState](./src/types/ContentpassState.ts) type).
85+
receives a state object describing the current status (see the exported [ContentpassState](./packages/react-native-contentpass/src/types/ContentpassState.ts) type).
8686

8787
### unregisterObserver
8888
Unregisters a previously registered observer. The observer will no longer receive updates.
@@ -134,11 +134,11 @@ const YourApp = () => {
134134

135135
## Integration with Sourcepoint SDK
136136

137-
See the [Sourcepoint SDK documentation](docs/SOURCEPOINT_SDK_INTEGRATION.md) for information on integrating the Contentpass SDK with the Sourcepoint SDK.
137+
See the [Sourcepoint SDK documentation](packages/react-native-contentpass/docs/SOURCEPOINT_SDK_INTEGRATION.md) for information on integrating the Contentpass SDK with the Sourcepoint SDK.
138138

139139
## Contributing
140140

141-
See the [contributing guide](docs/CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
141+
See the [contributing guide](packages/react-native-contentpass/docs/CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
142142

143143

144144
## License

eslint.config.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
const path = require('path');
2+
const { FlatCompat } = require('@eslint/eslintrc');
3+
4+
const reactPlugin = require('eslint-plugin-react');
5+
const prettierPlugin = require('eslint-plugin-prettier');
6+
7+
const compat = new FlatCompat({
8+
baseDirectory: __dirname,
9+
resolvePluginsRelativeTo: __dirname,
10+
});
11+
12+
module.exports = [
13+
{
14+
ignores: [
15+
'**/node_modules/**',
16+
'**/lib/**',
17+
'**/ios/**',
18+
'**/android/**',
19+
'**/coverage/**',
20+
'**/*.config.js',
21+
'**/babel.config.js',
22+
],
23+
},
24+
...compat.extends('@react-native', 'prettier'),
25+
{
26+
plugins: {
27+
react: reactPlugin,
28+
prettier: prettierPlugin,
29+
},
30+
rules: {
31+
'react/react-in-jsx-scope': 'off',
32+
'react-native/no-inline-styles': 'off',
33+
'no-console': 'off',
34+
'prettier/prettier': [
35+
'error',
36+
{
37+
quoteProps: 'consistent',
38+
singleQuote: true,
39+
tabWidth: 2,
40+
trailingComma: 'es5',
41+
useTabs: false,
42+
},
43+
],
44+
},
45+
},
46+
];

example/android/app/src/main/res/values/strings.xml

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

0 commit comments

Comments
 (0)