react-native-navigation的迁移库

12345678910111213
  1. var glob = require("glob");
  2. var ignoreFolders = { ignore: ["node_modules/**", "**/build/**"] };
  3. var manifestPath = glob.sync("**/AndroidManifest.xml", ignoreFolders)[0];
  4. exports.mainActivityJava = glob.sync("**/MainActivity.java", ignoreFolders)[0];
  5. exports.mainActivityKotlin = glob.sync("**/MainActivity.kt", ignoreFolders)[0];
  6. var mainApplicationJava = glob.sync("**/MainApplication.java", ignoreFolders)[0];
  7. exports.mainApplicationJava = mainApplicationJava;
  8. exports.rootGradle = mainApplicationJava.replace(/android\/app\/.*\.java/, "android/build.gradle");;
  9. exports.appDelegate = glob.sync("**/AppDelegate.m", ignoreFolders)[0];
  10. exports.podFile = glob.sync("**/Podfile", ignoreFolders)[0]