UNPKG

react-native-google-mobile-ads

Version:

React Native Google Mobile Ads is an easy way to monetize mobile apps with targeted, in-app advertising.

177 lines (176 loc) 7.96 kB
{ "name": "react-native-google-mobile-ads", "version": "15.0.0", "author": "Invertase <oss@invertase.io> (http://invertase.io)", "description": "React Native Google Mobile Ads is an easy way to monetize mobile apps with targeted, in-app advertising.", "main": "lib/commonjs/index.js", "module": "lib/module/index.js", "react-native": "src/index.ts", "types": "lib/typescript/index.d.ts", "repository": { "type": "git", "url": "https://github.com/invertase/react-native-google-mobile-ads" }, "license": "Apache-2.0", "keywords": [ "react", "react-native", "admob", "mobile ads", "google ads", "gdpr", "banner ad", "rewarded ad", "interstitial", "ad consent" ], "files": [ "/__tests__/", "/android/", "/docs/", "/ios/", "/lib/", "/plugin/", "/src/", "/docs.json", "/RNGoogleMobileAds.podspec", "/app.plugin.js", "/babel.config.js", "/jest.config.js", "/jest.setup.ts", "/ios_config.sh", "/react-native.config.js" ], "sdkVersions": { "ios": { "googleMobileAds": "12.2.0", "googleUmp": "2.7.0" }, "android": { "minSdk": 23, "targetSdk": 34, "compileSdk": 34, "buildTools": "34.0.0", "googleMobileAds": "24.1.0", "googleUmp": "3.1.0" } }, "react-native-builder-bob": { "source": "src", "output": "lib", "targets": [ "commonjs", "module", "typescript" ] }, "scripts": { "prepare": "yarn build && yarn build:plugin", "build": "genversion --es6 --semi src/version.ts && bob build", "build:clean": "rimraf android/build && rimraf ios/build && rimraf lib && rimraf plugin/build", "build:plugin": "yarn tsc --build plugin", "lint:code": "yarn lint:js && yarn lint:android && yarn lint:ios:check", "lint:js": "eslint src/ --ext .js,.jsx,.ts,.tsx --max-warnings=0", "lint:android": "google-java-format --set-exit-if-changed --replace --glob=\"android/**/*.java\"", "lint:ios:check": "clang-format --glob=\"ios/**/*.{h,cpp,m,mm}\" --style=Google -n -Werror", "lint:ios:fix": "clang-format -i --glob=\"ios/**/*.{h,cpp,m,mm}\" --style=Google", "lint:markdown:check": "prettier --check \"docs/**/*.md[x]\"", "lint:markdown:fix": "prettier --write \"docs/**/*.md[x]\"", "lint:report": "eslint --output-file=eslint-report.json --format=json src/ --ext .js,.jsx,.ts,.tsx", "lint:spellcheck": "spellchecker --quiet --files=\"docs/**/*.md\" --dictionaries=\"./.spellcheck.dict.txt\" --reports=\"spelling.json\" --plugins spell indefinite-article repeated-words syntax-mentions syntax-urls frontmatter", "tsc:compile": "tsc --project tsconfig.test.json", "lint": "yarn lint:code && yarn tsc:compile", "tests:jest": "jest", "tests:jest-watch": "jest --watch", "tests:jest-coverage": "jest --coverage", "tests:install": "cd RNGoogleMobileAdsExample && yarn", "tests:packager": "cd RNGoogleMobileAdsExample && yarn react-native start", "tests:packager:reset-cache": "cd RNGoogleMobileAdsExample && yarn react-native start --reset-cache", "tests:android:build": "cd RNGoogleMobileAdsExample && yarn detox build --configuration android.emu.debug", "tests:android:build:windows": "cd RNGoogleMobileAdsExample && yarn detox build --configuration android.emu.debug.windows", "tests:android:build-release": "cd RNGoogleMobileAdsExample && yarn detox build --configuration android.emu.release", "tests:android:build-release:windows": "cd RNGoogleMobileAdsExample && yarn detox build --configuration android.emu.release.windows", "tests:android:test": "cd RNGoogleMobileAdsExample && yarn detox test --configuration android.emu.debug --loglevel trace", "tests:android:run": "cd RNGoogleMobileAdsExample && yarn react-native run-android", "tests:android:test:windows": "cd RNGoogleMobileAdsExample && yarn detox test --configuration android.emu.debug.windows --loglevel trace", "tests:android:test-release": "cd RNGoogleMobileAdsExample && yarn detox test --configuration android.emu.release --loglevel trace", "tests:android:test-release:windows": "cd RNGoogleMobileAdsExample && yarn detox test --configuration android.emu.release.windows --loglevel trace", "tests:android:test:debug": "cd RNGoogleMobileAdsExample && yarn detox test --configuration android.emu.debug --inspect", "tests:android:test-reuse": "cd RNGoogleMobileAdsExample && yarn detox test --configuration android.emu.debug --reuse", "tests:android:test-cover": "cd RNGoogleMobileAdsExample && ./node_modules/.bin/nyc yarn detox test --loglevel trace --configuration android.emu.debug", "tests:android:test-cover-reuse": "cd RNGoogleMobileAdsExample && ./node_modules/.bin/nyc yarn detox test --configuration android.emu.debug --reuse", "tests:ios:build": "cd RNGoogleMobileAdsExample && yarn detox build --configuration ios.sim.debug", "tests:ios:build-release": "cd RNGoogleMobileAdsExample && yarn detox build --configuration ios.sim.release", "tests:ios:test": "cd RNGoogleMobileAdsExample && yarn detox test --configuration ios.sim.debug --loglevel warn", "tests:ios:run": "cd RNGoogleMobileAdsExample && yarn react-native run-ios", "tests:ios:test:debug": "cd RNGoogleMobileAdsExample && yarn detox test --configuration ios.sim.debug --loglevel warn --inspect", "tests:ios:test-reuse": "cd RNGoogleMobileAdsExample && yarn detox test --configuration ios.sim.debug --reuse --loglevel warn", "tests:ios:test-cover": "cd RNGoogleMobileAdsExample && ./node_modules/.bin/nyc yarn detox test --configuration ios.sim.debug", "tests:ios:test-cover-reuse": "cd RNGoogleMobileAdsExample && node_modules/.bin/nyc yarn detox test --configuration ios.sim.debug --reuse --loglevel warn", "tests:ios:pod:install": "cd RNGoogleMobileAdsExample && cd ios && rm -rf RNGoogleMobileAdsExample.xcworkspace && rm -f Podfile.lock && pod install --repo-update && cd ..", "package:update": "yarn upgrade --latest" }, "dependencies": { "@iabtcf/core": "^1.5.3", "use-deep-compare-effect": "^1.8.1" }, "devDependencies": { "@babel/core": "^7.25.2", "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "@react-native/babel-preset": "^0.76.2", "@semantic-release/changelog": "^6.0.1", "@semantic-release/commit-analyzer": "^9.0.2", "@semantic-release/git": "^10.0.1", "@semantic-release/github": "^8.0.6", "@semantic-release/npm": "^9.0.1", "@semantic-release/release-notes-generator": "^10.0.3", "@testing-library/react-native": "^11.5.0", "@types/jest": "^29.2.0", "@types/node": "^18.11.7", "@types/react": "^18.0.24", "@typescript-eslint/eslint-plugin": "^5.41.0", "@typescript-eslint/parser": "^5.41.0", "babel-jest": "^29.2.2", "clang-format": "1.8.0", "conventional-changelog-cli": "^2.2.2", "eslint": "^8.26.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-jest": "^27.1.3", "eslint-plugin-mocha": "^10.1.0", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-react": "^7.31.10", "expo": "^47.0.0", "expo-module-scripts": "^3.5.2", "genversion": "^3.1.1", "google-java-format": "^1.1.0", "jest": "^29.2.2", "prettier": "^2.7.1", "react": "^18.3.1", "react-native": "^0.76.2", "react-native-builder-bob": "^0.20.0", "react-test-renderer": "^18.3.1", "rimraf": "^3.0.2", "semantic-release": "^19.0.5", "spellchecker-cli": "^6.1.1", "typescript": "^5.5.3" }, "peerDependencies": { "expo": ">=47.0.0" }, "peerDependenciesMeta": { "expo": { "optional": true } }, "publishConfig": { "access": "public" }, "codegenConfig": { "name": "RNGoogleMobileAdsSpec", "type": "all", "jsSrcsDir": "./src/specs", "android": { "javaPackageName": "io.invertase.googlemobileads" } } }