Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 1 addition & 3 deletions .cursor/rules/project-overview.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ This is `@usercentrics/react-native-sdk` — a React Native bridge for the Userc
- **`src/`** — TypeScript SDK source. Models, Fabric TurboModule spec, and the main `Usercentrics` API.
- **`android/`** — Kotlin native module with C++ JNI bindings (Fabric/TurboModules).
- **`ios/`** — Swift native module with ObjC++ bridge (Fabric/TurboModules).
- **`sample/`** — Primary sample app (RN 0.81, used in CI).
- **`example/`** — Secondary example app (RN 0.78).
- **`legacy-sample/`** — Legacy sample (older RN, Java/Flow). Do not modify unless explicitly asked.
- **`sample/`** — Sample app (RN 0.81, used in CI).

## Key Conventions

Expand Down
2 changes: 0 additions & 2 deletions .cursorignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# === Dependencies ===
node_modules/
sample/node_modules/
example/node_modules/
legacy-sample/node_modules/
jspm_packages/
web_modules/
bower_components/
Expand Down
5 changes: 0 additions & 5 deletions .cursorindexingignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# === Lock files (large, not useful for indexing) ===
package-lock.json
sample/package-lock.json
example/package-lock.json
**/Podfile.lock
**/Gemfile.lock
yarn.lock
Expand All @@ -10,10 +9,6 @@ yarn.lock
**/*.pbxproj
**/*.xcworkspacedata

# === Legacy & secondary sample apps ===
legacy-sample/
example/

# === Gradle wrapper binaries ===
**/gradle/wrapper/gradle-wrapper.jar

Expand Down
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
**/node_modules
example/
lib/
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ In order to use and test the SDK, you will need a Usercentrics Account. Get [sta

Continue to our [documentation](https://usercentrics.com/docs/apps/intro/) for a step by step integration guide.

## Example
## Sample app

See the [example](https://github.com/Usercentrics/react-native/tree/master/example) directory for a complete sample app using Usercentrics.
This repository includes a **`sample/`** app that demonstrates integrating the SDK. Use it as a reference and for local development.

## Quick Start

Expand Down Expand Up @@ -101,22 +101,22 @@ npm run ios
```sh
npm install --legacy-peer-deps
```
* From example folder:
* From `sample` folder:
```sh
npm install --legacy-peer-deps
```

### iOS (macOS only)

From example folder:
From `sample` folder:
```sh
npx pod-install
npx react-native run-ios
```

### Android

Make sure you have Android SDK configured, then from example folder:
Make sure you have Android SDK configured, then from `sample` folder:
```sh
npx react-native run-android
```
Expand All @@ -128,7 +128,7 @@ npx react-native run-android
| `npm run auto-setup` | 🤖 Automatically install all required dependencies |
| `npm run check-requirements` | 🔍 Check development environment requirements |
| `npm run clean-all-caches` | 🧹 Clean all project and system caches |
| `npm run install-dependencies` | 📦 Install dependencies in root and example folders |
| `npm run install-dependencies` | 📦 Install dependencies in root and `sample/` |
| `npm run run-android` | 🤖 Kill conflicting ports and run Android app |

### 🔧 Troubleshooting
Expand All @@ -152,7 +152,7 @@ The project includes intelligent scripts that will:

## Consent Mediation

You can enable and run the Consent Mediation example in this example by following the [documentation](https://usercentrics.com/docs/apps/features/consent-mediation/#enable-mediation).
You can enable and run the Consent Mediation flow in the sample app by following the [documentation](https://usercentrics.com/docs/apps/features/consent-mediation/#enable-mediation).

## Maintainers
- [Usercentrics](https://github.com/Usercentrics)
6 changes: 0 additions & 6 deletions example/.buckconfig

This file was deleted.

3 changes: 0 additions & 3 deletions example/.editorconfig

This file was deleted.

11 changes: 0 additions & 11 deletions example/.eslintrc.js

This file was deleted.

3 changes: 0 additions & 3 deletions example/.gitattributes

This file was deleted.

59 changes: 0 additions & 59 deletions example/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions example/.prettierrc.js

This file was deleted.

1 change: 0 additions & 1 deletion example/.watchmanconfig

This file was deleted.

55 changes: 0 additions & 55 deletions example/android/app/_BUCK

This file was deleted.

96 changes: 0 additions & 96 deletions example/android/app/build.gradle.kts

This file was deleted.

19 changes: 0 additions & 19 deletions example/android/app/build_defs.bzl

This file was deleted.

Binary file removed example/android/app/debug.keystore
Binary file not shown.
10 changes: 0 additions & 10 deletions example/android/app/proguard-rules.pro

This file was deleted.

Loading
Loading