sprintcheckrn
Version:
SprintcheckRN: React Native SDK for identity verification (BVN, NIN, Facial) with Expo support
13 lines (11 loc) • 981 B
JavaScript
const fs = require('fs');
const path = require('path');
const gradlePath = path.join(process.cwd(), 'android', 'settings.gradle');
if (fs.existsSync(gradlePath)) {
const content = fs.readFileSync(gradlePath, 'utf8');
const needsJitpack = !content.includes('jitpack.io');
const needsRegula = !content.includes('regulaforensics.com');
if (needsJitpack || needsRegula) {
console.warn(`\n[SPRINTCHECKRN]\nYou must add the following repositories to your android/settings.gradle:\n\n-----------------------------\ndependencyResolutionManagement {\n repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)\n repositories {\n google()\n mavenCentral()\n maven { url 'https://jitpack.io' }\n maven { url = uri('https://maven.regulaforensics.com/RegulaDocumentReader') }\n maven { url = uri('$rootDir/../node_modules/react-native/android') }\n }\n}\n-----------------------------\n\nSee the SprintcheckRN README for more info.\n`);
}
}