Beispiel #1
0
        private static void ProcessFeatureSpecificOperations()
        {
            // Remove NP temp folder
            if (Directory.Exists(kRelativePathNativePluginsSDKFolder))
            {
                IOExtensions.AssignPermissionRecursively(kRelativePathNativePluginsSDKFolder, FileAttributes.Normal);
                Directory.Delete(kRelativePathNativePluginsSDKFolder, true);
            }

            // Create temp folder to place extracted files
            Directory.CreateDirectory(kRelativePathNativePluginsSDKFolder);

            // Add player settings info to receipt verification code
            ApplicationSettings.Features _supportedFeatures = NPSettings.Application.SupportedFeatures;

            if (_supportedFeatures.UsesBilling)
            {
                AddBuildInfoToReceiptVerificationManger();
            }

            // Decompress zip files and add it to project
            if (_supportedFeatures.UsesTwitter)
            {
                DecompressTwitterSDKFiles();
            }
        }
Beispiel #2
0
 private static void CreateTempFolder()
 {
     // prepare the folder to contain generated files
     if (Directory.Exists(kRelativePathNativePluginsSDKFolder))
     {
         IOExtensions.AssignPermissionRecursively(kRelativePathNativePluginsSDKFolder, FileAttributes.Normal);
         Directory.Delete(kRelativePathNativePluginsSDKFolder, true);
     }
     Directory.CreateDirectory(kRelativePathNativePluginsSDKFolder);
 }
Beispiel #3
0
        private static void CleanAndResetProject()
        {
            // Remove old xmod files
            string _nativeCodePath = AssetsUtility.AssetPathToAbsolutePath(kRelativePathIOSNativeCodeFolder);

            string[] _modFiles = Directory.GetFiles(_nativeCodePath, "*.xcodemods", SearchOption.AllDirectories);

            foreach (string _curFile in _modFiles)
            {
                File.SetAttributes(_curFile, FileAttributes.Normal);
                File.Delete(_curFile);
            }

            // Remove old NP files which are placed outside Assets path
            if (Directory.Exists(kRelativePathNativePluginsTempFolder))
            {
                IOExtensions.AssignPermissionRecursively(kRelativePathNativePluginsTempFolder, FileAttributes.Normal);
                Directory.Delete(kRelativePathNativePluginsTempFolder, true);
            }

            // Create new folder
            Directory.CreateDirectory(kRelativePathNativePluginsTempFolder);
        }