fix(android): unzip bug (close #20) #21
@ -15,6 +15,8 @@ module Fastlane
 | 
				
			|||||||
        # Decrypt the keys archive and Extract the keys archive
 | 
					        # Decrypt the keys archive and Extract the keys archive
 | 
				
			||||||
        Helper::AndroidCdHelper.decrypt_android_keys('.')
 | 
					        Helper::AndroidCdHelper.decrypt_android_keys('.')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        UI.message("👉🏼 Credentials decrypted")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Clean the project before building
 | 
					        # Clean the project before building
 | 
				
			||||||
        other_action.gradle(task: "clean")
 | 
					        other_action.gradle(task: "clean")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -26,11 +28,14 @@ module Fastlane
 | 
				
			|||||||
          task: "bundle",
 | 
					          task: "bundle",
 | 
				
			||||||
          build_type: "Release",
 | 
					          build_type: "Release",
 | 
				
			||||||
          print_command: true,
 | 
					          print_command: true,
 | 
				
			||||||
 | 
					          project_dir: 'android/',
 | 
				
			||||||
          properties: {
 | 
					          properties: {
 | 
				
			||||||
            "android.injected.version.code" => build_number
 | 
					            "android.injected.version.code" => build_number
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        UI.message("👉🏼 App built")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Upload the Android App Bundle to the Play Store
 | 
					        # Upload the Android App Bundle to the Play Store
 | 
				
			||||||
        other_action.upload_to_play_store(
 | 
					        other_action.upload_to_play_store(
 | 
				
			||||||
          track: params[:beta_type],
 | 
					          track: params[:beta_type],
 | 
				
			||||||
 | 
				
			|||||||
@ -15,7 +15,7 @@ module Fastlane
 | 
				
			|||||||
        if $?.success?
 | 
					        if $?.success?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          # Move the extracted files to the current directory
 | 
					          # Move the extracted files to the current directory
 | 
				
			||||||
          `jar xvf #{android_directory} && mv #{android_directory}/android_keys/* #{android_directory}`
 | 
					          `jar xvf #{android_directory}/android_keys.zip && mv #{android_directory}/android_keys/* #{android_directory}`
 | 
				
			||||||
        else
 | 
					        else
 | 
				
			||||||
          UI.user_error!("❌ Erreur lors de la décompression du fichier GPG")
 | 
					          UI.user_error!("❌ Erreur lors de la décompression du fichier GPG")
 | 
				
			||||||
        end
 | 
					        end
 | 
				
			||||||
 | 
				
			|||||||
@ -15,8 +15,6 @@ module Fastlane
 | 
				
			|||||||
      # Decrypts ios credentials
 | 
					      # Decrypts ios credentials
 | 
				
			||||||
      def self.decrypt_ios_keys(ios_directory)
 | 
					      def self.decrypt_ios_keys(ios_directory)
 | 
				
			||||||
        # Define the GPG command with options
 | 
					        # Define the GPG command with options
 | 
				
			||||||
        system('echo test')
 | 
					 | 
				
			||||||
        system("echo #{ENV['IOS_KEYS_SECRET_PASSPHRASE']}")
 | 
					 | 
				
			||||||
        gpg_command = "gpg --quiet --batch --yes --decrypt --passphrase=#{ENV['IOS_KEYS_SECRET_PASSPHRASE']} \
 | 
					        gpg_command = "gpg --quiet --batch --yes --decrypt --passphrase=#{ENV['IOS_KEYS_SECRET_PASSPHRASE']} \
 | 
				
			||||||
          --output #{ios_directory}/ios_keys.zip #{ios_directory}/ios_keys.zip.gpg"
 | 
					          --output #{ios_directory}/ios_keys.zip #{ios_directory}/ios_keys.zip.gpg"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user