UNPKG

react-native-klarna-inapp-sdk

Version:

This library wraps Klarna Mobile SDK and exposes its functionality as React Native components.

118 lines (117 loc) 4.08 kB
{ "name": "react-native-klarna-inapp-sdk", "title": "Klarna Mobile SDK React Native", "version": "2.4.5", "description": "This library wraps Klarna Mobile SDK and exposes its functionality as React Native components.", "main": "lib/commonjs/index", "module": "lib/module/index", "types": "lib/typescript/index.d.ts", "react-native": "src/index", "source": "src/index", "files": [ "src", "lib", "android", "ios", "cpp", "*.podspec", "!ios/build", "!ios/Podfile", "!ios/Pods", "!ios/RNKlarnaMobileSDK.xcworkspace", "!android/build", "!android/gradle", "!android/gradlew", "!android/gradlew.bat", "!android/local.properties", "!**/__tests__", "!**/__fixtures__", "!**/__mocks__", "!**/.*" ], "scripts": { "prepack": "bob build", "test": "jest", "typecheck": "tsc --noEmit", "lint": "eslint \"src/**/*.{js,ts,tsx}\"", "lint:fix": "eslint \"src/**/*.{js,ts,tsx}\" --fix", "prettier": "prettier --check \"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}\"", "prettier:fix": "prettier --write \"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}\"", "clean": "del-cli android/build ios/build TestApp/android/build TestApp/android/app/build TestApp/ios/build", "pods": "pod-install --quiet", "test:android": "cd TestApp/android && ./gradlew :react-native-klarna-inapp-sdk:testDebugUnitTest && cd ../..", "test:ios": "cd ios && xcodebuild test -workspace RNKlarnaMobileSDK.xcworkspace -scheme RNKlarnaMobileSDK -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 15'", "build:android": "cd TestApp/android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a", "build:ios": "cd TestApp/ios && xcodebuild -workspace TestApp.xcworkspace -scheme TestApp -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO", "TestApp": "yarn --cwd TestApp" }, "keywords": [ "react-native", "klarna", "sdk" ], "repository": "https://github.com/klarna/react-native-klarna-inapp-sdk", "author": "Mobile SDK <mobile.sdk@klarna.com>", "license": "Apache-2.0", "bugs": { "url": "https://github.com/klarna/react-native-klarna-inapp-sdk/issues" }, "homepage": "https://github.com/klarna/react-native-klarna-inapp-sdk#readme", "publishConfig": { "registry": "https://registry.npmjs.org/" }, "licenseFilename": "LICENSE", "readmeFilename": "README.md", "peerDependencies": { "react": ">=16.5.0", "react-native": ">=0.57.0 <1.0.x" }, "devDependencies": { "@react-native/eslint-config": "^0.72.2", "@types/jest": "^29.5.4", "@types/react": "^18.0.24", "@types/react-native": "^0.72.2", "@typescript-eslint/eslint-plugin": "^6.6.0", "@typescript-eslint/parser": "^6.6.0", "eslint": "^8.48.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-jest": "^27.2.3", "eslint-plugin-prettier": "^5.0.0", "jest": "^29.2.1", "metro-react-native-babel-preset": "0.76.8", "pod-install": "^0.1.0", "prettier": "^3.0.3", "react": "18.2.0", "react-native": "0.72.4", "react-native-builder-bob": "^0.20.0", "typescript": "^5.0.2" }, "engines": { "node": ">=16" }, "packageManager": "yarn@4.4.0", "react-native-builder-bob": { "source": "src", "output": "lib", "targets": [ "commonjs", "module", "typescript" ] }, "codegenConfig": { "name": "RNKlarnaMobileSDK", "type": "all", "jsSrcsDir": "src/specs", "android": { "javaPackageName": "com.klarna.mobile.sdk.reactnative" }, "ios": { "componentProvider": { "RNKlarnaStandaloneWebView": "KlarnaStandaloneWebViewWrapper", "RNKlarnaCheckoutView": "KlarnaCheckoutViewWrapper", "RNKlarnaPaymentView": "PaymentViewWrapper" } } } }