daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Oct 23rd, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     if ($customPackageName !== null)
  2.     {
  3.         setAttributeValue($xmlDom, "/manifest/@package", $customPackageName);
  4.        
  5.         $cur_path = 'resources/android-package-source-directory/src/'.str_replace('.', '/', $currentPackageName);
  6.         $new_path = 'resources/android-package-source-directory/src/'.str_replace('.', '/', $customPackageName);
  7.         $file_content_activity = @file_get_contents("$cur_path/APCActivity.java");
  8.         $file_content_helpers = @file_get_contents("$cur_path/APCActivityHelpers.java");
  9.  
  10.         @rrmdir("resources/android-package-source-directory/src");
  11.         @mkdir($new_path, 0700, true);
  12.  
  13.         if ($file_content_activity) {
  14.             $file_content_activity = str_replace($currentPackageName, $customPackageName, $file_content_activity);
  15.             @file_put_contents("$new_path/APCActivity.java", $file_content_activity);
  16.         }
  17.  
  18.         if ($file_content_helpers) {
  19.             $file_content_helpers = str_replace($currentPackageName, $customPackageName, $file_content_helpers);
  20.             @file_put_contents("$new_path/APCActivityHelpers.java", $file_content_helpers);
  21.         }
  22.  
  23.         $customUriScheme = removeLastSubStringForSeparatorWithGlue($customPackageName, ".", "-");
  24.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top