예제 #1
0
        private void WriteAndroidManifestFile()
        {
            string _manifestFolderPath = Constants.kAndroidPluginsLibraryPath;

            if (AssetsUtility.FolderExists(_manifestFolderPath))
            {
                NPAndroidManifestGenerator _generator = new NPAndroidManifestGenerator();
                _generator.SaveManifest("com.voxelbusters.androidnativeplugin", _manifestFolderPath + "/AndroidManifest.xml");
            }
        }
예제 #2
0
        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
            }
        }
예제 #3
0
        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();
            }
        }