fastlane-plugin-change_domain 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 74bfd33196434f9d94e71405f81769175b41ea7cb3f6f141d93de36deacc4465
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 4fe9b1a1d5528addb68a48aed58a6503db087874144b059c405ef45dee74e406
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 2ab1bfe7d5adb82ec116842c76c04b2b0b85b568a20febfd727cb292236a54e942390f81c4e328f4c6874d542003a204652e092871a812ad867999c2669b4e66
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 72fded6a7451787f957f9bc362a86608ad572884d8023093da647b8005064f99617184ffd79fe61a575329e9f80c9c899c4bce46b14a572617eef8e9176cb539
         
     | 
| 
         @@ -34,11 +34,13 @@ module Fastlane 
     | 
|
| 
       34 
34 
     | 
    
         
             
                          gradlePath = "/app"
         
     | 
| 
       35 
35 
     | 
    
         
             
                          new_folder_path = "#{path}#{sourcesPath}/main/java/#{new_folder}"
         
     | 
| 
       36 
36 
     | 
    
         
             
                          java_sources = Dir.glob("#{path}#{sourcesPath}/main/java/#{folder}/*.java")
         
     | 
| 
      
 37 
     | 
    
         
            +
                          kotlin_source = Dir.glob("#{path}#{sourcesPath}/main/java/#{folder}/*.kt")
         
     | 
| 
       37 
38 
     | 
    
         
             
                        elsif File.exist?("#{path}/src/#{folder}")
         
     | 
| 
       38 
39 
     | 
    
         
             
                          sourcesPath = "/src"
         
     | 
| 
       39 
40 
     | 
    
         
             
                          gradlePath = "/."
         
     | 
| 
       40 
41 
     | 
    
         
             
                          new_folder_path = "#{path}#{sourcesPath}/#{new_folder}"
         
     | 
| 
       41 
42 
     | 
    
         
             
                          java_sources = Dir.glob("#{path}#{sourcesPath}/#{folder}/*.java")
         
     | 
| 
      
 43 
     | 
    
         
            +
                          kotlin_source = Dir.glob("#{path}#{sourcesPath}/#{folder}/*.kt")
         
     | 
| 
       42 
44 
     | 
    
         
             
                        end
         
     | 
| 
       43 
45 
     | 
    
         | 
| 
       44 
46 
     | 
    
         
             
                        FileUtils::mkdir_p new_folder_path
         
     | 
| 
         @@ -46,10 +48,14 @@ module Fastlane 
     | 
|
| 
       46 
48 
     | 
    
         
             
                        java_sources.each do |file|
         
     | 
| 
       47 
49 
     | 
    
         
             
                          FileUtils.mv file, new_folder_path
         
     | 
| 
       48 
50 
     | 
    
         
             
                        end
         
     | 
| 
      
 51 
     | 
    
         
            +
                        
         
     | 
| 
      
 52 
     | 
    
         
            +
                        kotlin_sources.each do |file|
         
     | 
| 
      
 53 
     | 
    
         
            +
                          FileUtils.mv file, new_folder_path
         
     | 
| 
      
 54 
     | 
    
         
            +
                        end
         
     | 
| 
       49 
55 
     | 
    
         | 
| 
       50 
56 
     | 
    
         
             
                         Bundler.with_clean_env do
         
     | 
| 
       51 
     | 
    
         
            -
                         	sh "find #{path}#{sourcesPath} -name '*.java' -type f -exec sed -i  
     | 
| 
       52 
     | 
    
         
            -
                         	sh "find #{path}#{sourcesPath} -name '*.kt' -type f -exec sed -i  
     | 
| 
      
 57 
     | 
    
         
            +
                         	sh "find #{path}#{sourcesPath} -name '*.java' -type f -exec sed -i -e 's/#{originalPackageName}/#{packageName}/' {} +;"
         
     | 
| 
      
 58 
     | 
    
         
            +
                         	sh "find #{path}#{sourcesPath} -name '*.kt' -type f -exec sed -i -e 's/#{originalPackageName}/#{packageName}/' {} +;"
         
     | 
| 
       53 
59 
     | 
    
         
             
                         	sh "find #{path}#{gradlePath} -name 'build.gradle' -type f -exec sed -i -e 's/#{originalPackageName}/#{packageName}/' {} +"
         
     | 
| 
       54 
60 
     | 
    
         
             
                        end
         
     | 
| 
       55 
61 
     | 
    
         
             
                      end
         
     |