chore: replace demo app with react-native library scaffold
Repo becomes the myid-sdk npm package: library at root, RN 0.86.2 vanilla example app in example/, Turbo Module codegen enabled, yarn 4 workspace. The previous demo app targeted MyID SDK 2.x (clientId, withPassportData, MyIdBuildMode), an API that no longer exists in 3.x, so it is removed rather than migrated. Recoverable via the pre-rewrite tag.
example/package.json
0 → 100644
example/src/App.tsx
0 → 100644
index.js
deleted
100644 → 0
ios/MyID/main.m
deleted
100644 → 0
ios/MyIdModule.m
deleted
100644 → 0
ios/MyIdModule.swift
deleted
100644 → 0
ios/MyidSdk.h
0 → 100644
ios/MyidSdk.mm
0 → 100644
ios/Podfile.lock
deleted
100644 → 0
metro.config.js
deleted
100644 → 0
| { | { | ||
| "name": "MyID", | "name": "myid-sdk", | ||
| "version": "0.0.1", | "version": "0.1.0", | ||
| "private": true, | "description": "React Native wrapper for the MyID identity verification SDK", | ||
| "main": "./lib/module/index.js", | |||
| "types": "./lib/typescript/src/index.d.ts", | |||
| "exports": { | |||
| ".": { | |||
| "myid-sdk-source": "./src/index.tsx", | |||
| "types": "./lib/typescript/src/index.d.ts", | |||
| "default": "./lib/module/index.js" | |||
| }, | |||
| "./package.json": "./package.json" | |||
| }, | |||
| "files": [ | |||
| "src", | |||
| "lib", | |||
| "android", | |||
| "ios", | |||
| "cpp", | |||
| "*.podspec", | |||
| "react-native.config.js", | |||
| "!ios/build", | |||
| "!android/build", | |||
| "!android/gradle", | |||
| "!android/gradlew", | |||
| "!android/gradlew.bat", | |||
| "!android/local.properties", | |||
| "!**/__tests__", | |||
| "!**/__fixtures__", | |||
| "!**/__mocks__", | |||
| "!**/.*" | |||
| ], | |||
| "scripts": { | "scripts": { | ||
| "android": "react-native run-android", | "example": "yarn workspace myid-sdk-example", | ||
| "ios": "react-native run-ios", | "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib", | ||
| "lint": "eslint .", | "prepare": "bob build", | ||
| "start": "react-native start", | "typecheck": "tsc", | ||
| "ios:pod:reset": "cd ios && pod deintegrate && pod setup && pod install --verbose && cd ..", | "lint": "eslint \"**/*.{js,ts,tsx}\"" | ||
| "test": "jest", | }, | ||
| "adb": "adb reverse tcp:8081 tcp:8081" | "keywords": [ | ||
| }, | "react-native", | ||
| "dependencies": { | "ios", | ||
| "react": "18.2.0", | "android" | ||
| "react-native": "0.74.3" | ], | ||
| "repository": { | |||
| "type": "git", | |||
| "url": "git+https://gitlab.aigroup.uz/myid-public-code/myid-rn-sdk.git" | |||
| }, | |||
| "author": "MyID <javokhirdev@gmail.com> (https://myid.uz)", | |||
| "license": "MIT", | |||
| "bugs": { | |||
| "url": "https://gitlab.aigroup.uz/myid-public-code/myid-rn-sdk/issues" | |||
| }, | |||
| "homepage": "https://gitlab.aigroup.uz/myid-public-code/myid-rn-sdk#readme", | |||
| "publishConfig": { | |||
| "registry": "https://registry.npmjs.org/" | |||
| }, | }, | ||
| "devDependencies": { | "devDependencies": { | ||
| "@babel/core": "^7.20.0", | "@eslint/compat": "^2.1.0", | ||
| "@babel/preset-env": "^7.20.0", | "@eslint/eslintrc": "^3.3.6", | ||
| "@babel/runtime": "^7.20.0", | "@eslint/js": "^9.39.5", | ||
| "@react-native/babel-preset": "0.74.85", | "@react-native/babel-preset": "0.86.2", | ||
| "@react-native/eslint-config": "0.74.85", | "@react-native/eslint-config": "0.86.2", | ||
| "@react-native/metro-config": "0.74.85", | "@types/react": "^19.2.0", | ||
| "@react-native/typescript-config": "0.74.85", | "del-cli": "^7.0.0", | ||
| "@types/react": "^18.2.6", | "eslint": "^9.39.5", | ||
| "@types/react-test-renderer": "^18.0.0", | "eslint-config-prettier": "^10.1.8", | ||
| "babel-jest": "^29.6.3", | "eslint-plugin-ft-flow": "^3.0.11", | ||
| "eslint": "^8.19.0", | "eslint-plugin-prettier": "^5.5.6", | ||
| "jest": "^29.6.3", | "prettier": "^3.9.6", | ||
| "prettier": "2.8.8", | "react": "19.2.3", | ||
| "react-test-renderer": "18.2.0", | "react-native": "0.86.2", | ||
| "typescript": "5.0.4" | "react-native-builder-bob": "^0.43.1", | ||
| }, | "turbo": "^2.10.8", | ||
| "engines": { | "typescript": "^6.0.3" | ||
| "node": ">=18" | }, | ||
| }, | "peerDependencies": { | ||
| "packageManager": "yarn@3.6.4" | "react": "*", | ||
| "react-native": "*" | |||
| }, | |||
| "workspaces": [ | |||
| "example" | |||
| ], | |||
| "packageManager": "yarn@4.11.0", | |||
| "react-native-builder-bob": { | |||
| "source": "src", | |||
| "output": "lib", | |||
| "targets": [ | |||
| [ | |||
| "module", | |||
| { | |||
| "esm": true | |||
| } | |||
| ], | |||
| [ | |||
| "typescript", | |||
| { | |||
| "project": "tsconfig.build.json" | |||
| } | |||
| ] | |||
| ] | |||
| }, | |||
| "codegenConfig": { | |||
| "name": "MyidSdkSpec", | |||
| "type": "modules", | |||
| "jsSrcsDir": "src", | |||
| "android": { | |||
| "javaPackageName": "com.myidsdk" | |||
| } | |||
| }, | |||
| "prettier": { | |||
| "quoteProps": "consistent", | |||
| "singleQuote": true, | |||
| "tabWidth": 2, | |||
| "trailingComma": "es5", | |||
| "useTabs": false | |||
| }, | |||
| "create-react-native-library": { | |||
| "type": "turbo-module", | |||
| "languages": "kotlin-objc", | |||
| "tools": [ | |||
| "eslint" | |||
| ], | |||
| "version": "0.63.1" | |||
| } | |||
| } | } |
src/NativeMyidSdk.ts
0 → 100644
Please register or sign in to comment