private void WriteAndroidManifestFile() { string _manifestFolderPath = Constants.kAndroidPluginsLibraryPath; if (AssetsUtility.FolderExists(_manifestFolderPath)) { NPAndroidManifestGenerator _generator = new NPAndroidManifestGenerator(); _generator.SaveManifest("com.voxelbusters.androidnativeplugin", _manifestFolderPath + "/AndroidManifest.xml"); } }
private void WriteAndroidManifestFile() { string _manifestFolderPath = Constants.kAndroidPluginsLibraryPath; if (AssetsUtility.FolderExists(_manifestFolderPath)) { NPAndroidManifestGenerator _generator = new NPAndroidManifestGenerator(); #if UNITY_2017_1_OR_NEWER _generator.SaveManifest("com.voxelbusters.androidnativeplugin", _manifestFolderPath + "/AndroidManifest.xml", "9", "26"); #else _generator.SaveManifest("com.voxelbusters.androidnativeplugin", _manifestFolderPath + "/AndroidManifest.xml", "9", "24"); #endif } }
private void OnApplicationConfigurationChanged() { string _manifestFolderPath = Constants.kAndroidPluginsLibraryPath; if (AssetsUtility.FolderExists(_manifestFolderPath)) { NPAndroidManifestGenerator _generator = new NPAndroidManifestGenerator(); // Save file _generator.SaveManifest("com.voxelbusters.androidnativeplugin", _manifestFolderPath + "/AndroidManifest.xml"); // Refresh AssetDatabase.Refresh(); } }