fastlane-plugin-appbox 1.5.0 → 3.4.0

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: 3425510a4b6b516998065f017c5575eae37183729a9a330b0664466bb5fd6f25
4
- data.tar.gz: e50c4ea9c031b207e2c5087407036889b37ed17bd057cb947efc2ad803fd239c
3
+ metadata.gz: 5ac49ed2e0a409764830fb7855c1791757fe94118bcb569a9da553aef9c5e3b8
4
+ data.tar.gz: fd5191b76fffc00f4d6142ffdc5df137c72839806a08674e63f7598d996fd663
5
5
  SHA512:
6
- metadata.gz: 47a5bdf29d6d713a1340da7a8ed1683f5e2ac1588ad5529cb35b05e9937e9014a799a896f443f6408b01cca809db1633d9feaeed5678f78d76ca9e0ecce41c54
7
- data.tar.gz: b94c2db92add15ab26cf3d93249d54d2a3d149c270bf12261b763fdb23c6ee99794c3928c23c5c9131472ee3b5901eff50eed33205292f6b496080de32218115
6
+ metadata.gz: dcc94414c7c62001123af387ea4aa5c5d427c0c566fa2914a35fe1e6a4094cb2204adf5259ffe076ff6692559082f1f161e0282f1f43ecf02d7042608f2486a4
7
+ data.tar.gz: 6462fcc5ce569eee114cb886a805931670cfbe3fd63128e64c65b6b70579354da1fb6a69f37954a7295151360efed4cf1a1055c4a2265794101db8931287785d
@@ -13,11 +13,6 @@ module Fastlane
13
13
 
14
14
  class AppboxAction < Action
15
15
  def self.run(params)
16
- UI.message(params)
17
-
18
- ipa_path = Actions.lane_context[ Actions::SharedValues::IPA_OUTPUT_PATH ]
19
- UI.message("IPA PATH - #{ipa_path}")
20
-
21
16
  #emails param
22
17
  if params[:emails]
23
18
  emails = params[:emails]
@@ -51,21 +46,35 @@ module Fastlane
51
46
 
52
47
  #Check if AppBox exist at given path
53
48
  if File.file?(appbox_path)
49
+ UI.message("")
54
50
  UI.message("AppBox Path - #{appbox_path}")
55
51
 
52
+ ipa_path = Actions.lane_context[ Actions::SharedValues::IPA_OUTPUT_PATH ]
53
+ ipa_file_name = File.basename(ipa_path)
54
+ UI.message("IPA PATH - #{ipa_path}")
55
+
56
+ # Copy ipa file into AppBox temporary directory
57
+ appbox_data_dir = File.expand_path("~/Library/Containers/com.developerinsider.AppBox/Data")
58
+ appbox_temp_path = File.join(appbox_data_dir, "tmp")
59
+ UI.message("Copying IPA file to AppBox temporary directory - #{appbox_temp_path}")
60
+ FileUtils.cp ipa_path, appbox_temp_path
61
+ temp_ipa_path = File.join(appbox_temp_path, ipa_file_name)
62
+
56
63
  # Start AppBox
64
+ UI.message("")
57
65
  UI.message("Starting AppBox...")
66
+ UI.message("Upload process will start soon. Upload process might take a few minutes. Please don't interrupt the script.")
58
67
  if dropbox_folder_name
59
- exit_status = system("exec #{appbox_path} ipa='#{ipa_path}' email='#{emails}' message='#{message}' keepsamelink=#{keep_same_link} dbfolder='#{dropbox_folder_name}'")
68
+ exit_status = system("exec #{appbox_path} ipa='#{temp_ipa_path}' email='#{emails}' message='#{message}' keepsamelink=#{keep_same_link} dbfolder='#{dropbox_folder_name}'")
60
69
  else
61
- exit_status = system("exec #{appbox_path} ipa='#{ipa_path}' email='#{emails}' message='#{message}' keepsamelink='#{keep_same_link}'")
70
+ exit_status = system("exec #{appbox_path} ipa='#{temp_ipa_path}' email='#{emails}' message='#{message}' keepsamelink='#{keep_same_link}'")
62
71
  end
63
72
 
64
73
  # Print upload status
65
74
  if exit_status
66
-
75
+ UI.success("Successfully uploaded the IPA file to DropBox. Check below summary for more details.")
67
76
  # Check if share url file exist and print value
68
- share_url_file_path = "#{Dir.home}/.appbox_share_value.json"
77
+ share_url_file_path = File.join(appbox_data_dir, "Documents", ".appbox_share_value.json")
69
78
  if File.file?(share_url_file_path)
70
79
  file = File.read(share_url_file_path)
71
80
  share_urls_values = JSON.parse(file)
@@ -73,13 +82,13 @@ module Fastlane
73
82
  Actions.lane_context[SharedValues::APPBOX_IPA_URL] = share_urls_values['APPBOX_IPA_URL']
74
83
  Actions.lane_context[SharedValues::APPBOX_SHARE_URL] = share_urls_values['APPBOX_SHARE_URL']
75
84
  Actions.lane_context[SharedValues::APPBOX_MANIFEST_URL] = share_urls_values['APPBOX_MANIFEST_URL']
76
- Actions.lane_context[SharedValues::APPBOX_LONG_SHARE_URL] = share_urls_values['APPBOX_LONG_SHARE_URL']
77
85
 
78
86
  FastlaneCore::PrintTable.print_values(config: share_urls_values, hide_keys: [], title: "Summary for AppBox")
79
87
  end
80
-
88
+ clean_temporary_files(appbox_temp_path)
81
89
  UI.success('AppBox finished successfully')
82
90
  else
91
+ clean_temporary_files(appbox_temp_path)
83
92
  UI.error('AppBox finished with errors')
84
93
  UI.message('Please feel free to open an issue on the project GitHub page. Please include a description of what is not working right with your issue. https://github.com/getappbox/fastlane-plugin-appbox/issues/new')
85
94
  exit
@@ -91,6 +100,22 @@ module Fastlane
91
100
 
92
101
  end
93
102
 
103
+ # Delete all files/folders in AppBox temporary directory
104
+ def self.clean_temporary_files(appbox_temp_path)
105
+ UI.message("Cleaning AppBox temporary directory - #{appbox_temp_path}")
106
+ if File.directory?(appbox_temp_path)
107
+ Dir.foreach(appbox_temp_path) do |file|
108
+ next if file == '.' or file == '..'
109
+ file_path = File.join(appbox_temp_path, file)
110
+ if File.file?(file_path)
111
+ File.delete(file_path)
112
+ else
113
+ FileUtils.rm_rf(file_path)
114
+ end
115
+ end
116
+ end
117
+ end
118
+
94
119
  def self.output
95
120
  [
96
121
  ['APPBOX_IPA_URL', 'Upload IPA file URL to download IPA file.'],
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Appbox
3
- VERSION = "1.5.0"
3
+ VERSION = "3.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-appbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vineet Choudhary
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-31 00:00:00.000000000 Z
11
+ date: 2025-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -136,7 +136,7 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: 2.111.0
139
- description:
139
+ description:
140
140
  email: vineetchoudhary@live.in
141
141
  executables: []
142
142
  extensions: []
@@ -152,7 +152,7 @@ homepage: https://github.com/getappbox/fastlane-plugin-appbox
152
152
  licenses:
153
153
  - MIT
154
154
  metadata: {}
155
- post_install_message:
155
+ post_install_message:
156
156
  rdoc_options: []
157
157
  require_paths:
158
158
  - lib
@@ -167,8 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
- rubygems_version: 3.3.19
171
- signing_key:
170
+ rubygems_version: 3.5.23
171
+ signing_key:
172
172
  specification_version: 4
173
173
  summary: Deploy Development, Ad-Hoc and In-house (Enterprise) iOS applications directly
174
174
  to the devices from your Dropbox account.