cordova-plugin-play-verification
v1.0.0
Published
Automates the creation of adi-registration.properties for Google Play Developer Verification in Cordova & Capacitor.
Maintainers
Readme
Cordova & Capacitor Plugin: Google Play Verification ADI Injector
https://support.google.com/googleplay/android-developer/answer/16761053?hl=en
Automates the creation of the adi-registration.properties file required by the new Google Play Console Developer Verification (Targeting 2026/2027 Android Security Policies).
When using Cloud Builders (like Construct 3, Ionic Appflow) or local CI/CD pipelines, injecting this verification code manually can be tedious or impossible. This plugin uses Cordova Hooks and Capacitor scripts to dynamically generate the required asset file right before the Android build process begins.
Installation for Cordova
Install the plugin via CLI and pass your unique Google Play verification code:
cordova plugin add cordova-plugin-play-verification --variable ADI_SECRET_CODE="YOUR_DON_CCAAA_CODE"For Cloud Build (e.g., Construct 3):
Add the following to your config.xml:
<plugin name="cordova-plugin-play-verification">
<variable name="ADI_SECRET_CODE" value="YOUR_DON_CCAAA_CODE" />
</plugin>Installation for Capacitor
Step 1: Install the package via NPM:
npm install cordova-plugin-play-verificationStep 2: Add your secret code to your capacitor.config.ts (or .json):
import { CapacitorConfig } from '@capacitor/cli';
const config: CapacitorConfig = {
appId: 'com.example.app',
appName: 'MyApp',
webDir: 'dist',
plugins: {
PlayVerification: {
ADI_SECRET_CODE: 'YOUR_DON_CCAAA_CODE'
}
}
};
export default config;Step 3: Update your package.json to run the injector script automatically before Capacitor sync:
"scripts": {
"build": "vite build",
"adi-inject": "node node_modules/cordova-plugin-play-verification/scripts/capacitor_injector.js",
"cap-sync": "npm run build && npm run adi-inject && npx cap sync"
}npm run cap-syncLicense
MIT License. Created by EMI INDO.
