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
This diff is collapsed.
metro.config.js
deleted
100644 → 0
| { | ||
| "name": "MyID", | ||
| "version": "0.0.1", | ||
| "private": true, | ||
| "name": "myid-sdk", | ||
| "version": "0.1.0", | ||
| "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": { | ||
| "android": "react-native run-android", | ||
| "ios": "react-native run-ios", | ||
| "lint": "eslint .", | ||
| "start": "react-native start", | ||
| "ios:pod:reset": "cd ios && pod deintegrate && pod setup && pod install --verbose && cd ..", | ||
| "test": "jest", | ||
| "adb": "adb reverse tcp:8081 tcp:8081" | ||
| }, | ||
| "dependencies": { | ||
| "react": "18.2.0", | ||
| "react-native": "0.74.3" | ||
| "example": "yarn workspace myid-sdk-example", | ||
| "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib", | ||
| "prepare": "bob build", | ||
| "typecheck": "tsc", | ||
| "lint": "eslint \"**/*.{js,ts,tsx}\"" | ||
| }, | ||
| "keywords": [ | ||
| "react-native", | ||
| "ios", | ||
| "android" | ||
| ], | ||
| "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": { | ||
| "@babel/core": "^7.20.0", | ||
| "@babel/preset-env": "^7.20.0", | ||
| "@babel/runtime": "^7.20.0", | ||
| "@react-native/babel-preset": "0.74.85", | ||
| "@react-native/eslint-config": "0.74.85", | ||
| "@react-native/metro-config": "0.74.85", | ||
| "@react-native/typescript-config": "0.74.85", | ||
| "@types/react": "^18.2.6", | ||
| "@types/react-test-renderer": "^18.0.0", | ||
| "babel-jest": "^29.6.3", | ||
| "eslint": "^8.19.0", | ||
| "jest": "^29.6.3", | ||
| "prettier": "2.8.8", | ||
| "react-test-renderer": "18.2.0", | ||
| "typescript": "5.0.4" | ||
| }, | ||
| "engines": { | ||
| "node": ">=18" | ||
| }, | ||
| "packageManager": "yarn@3.6.4" | ||
| "@eslint/compat": "^2.1.0", | ||
| "@eslint/eslintrc": "^3.3.6", | ||
| "@eslint/js": "^9.39.5", | ||
| "@react-native/babel-preset": "0.86.2", | ||
| "@react-native/eslint-config": "0.86.2", | ||
| "@types/react": "^19.2.0", | ||
| "del-cli": "^7.0.0", | ||
| "eslint": "^9.39.5", | ||
| "eslint-config-prettier": "^10.1.8", | ||
| "eslint-plugin-ft-flow": "^3.0.11", | ||
| "eslint-plugin-prettier": "^5.5.6", | ||
| "prettier": "^3.9.6", | ||
| "react": "19.2.3", | ||
| "react-native": "0.86.2", | ||
| "react-native-builder-bob": "^0.43.1", | ||
| "turbo": "^2.10.8", | ||
| "typescript": "^6.0.3" | ||
| }, | ||
| "peerDependencies": { | ||
| "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