UNPKG

@reuvenorg/react-native-boilerplate-ultimate

Version:

A powerful CLI tool for creating React Native projects with modular architecture. Generate, manage, and scaffold React Native applications with pre-built modules and best practices.

16 lines 744 B
import { FileProcessor } from './base-processor.js'; export class KotlinProcessor extends FileProcessor { canProcess(filePath) { const kotlinExtensions = ['.kt', '.java']; return kotlinExtensions.some(ext => filePath.endsWith(ext)) && !this.shouldSkipFile(filePath); } async process(filePath, context) { let content = await this.readFile(filePath); // Replace package declarations content = content.replace(/^package com\.anonymous\.exapp$/gm, `package ${context.packageName}`); // Replace any other ExApp references content = content.replace(/ExApp/g, context.projectName); await this.writeFile(filePath, content); } } //# sourceMappingURL=kotlin-processor.js.map