fastlane-plugin-appbox 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d681da0d9a7732706874b15d3e3f3603154ae45
4
- data.tar.gz: b73503f6c2e71ec3f1e764bc0cbd06ee8d824073
3
+ metadata.gz: b58167cfb086b6e1da37298db2296ed8858a131d
4
+ data.tar.gz: 4776c7f9f1ce7ca9d39e194f1b1cb857ab7fcd43
5
5
  SHA512:
6
- metadata.gz: a53b8843d458a0c4be67a23614bb7071f2f6f6e4464fb17bb15b3c9b5aaa7b9f3631516ea9bf619c014e64da6d5c2584f0a4c47f40bd265c72d6c8a0a3e5270b
7
- data.tar.gz: f14e07f21030a04f2157f5d0ac4ce82022053db92105835b57c61506b2b6f051c5b5e12b211420203308fa32af80ba62379756cc2230282c891330eaf9480ac3
6
+ metadata.gz: 93d0addb2003187255d0ed3cdba631bf837a1b138c5abf8907d3df6bb680962e80879caea81a1a4c63af0f36e3bbc7aa7673fd99e7aaf2adf941d8e06317a3de
7
+ data.tar.gz: c97ebc7406ea947dc625003c56c3ceaf4fd6839c6ad1f777cb40521835aa701676aec6c5f23277cf7587265add8637ba99ce7927da10ce50175d93bcd7e72f0f
data/README.md CHANGED
@@ -19,7 +19,7 @@ fastlane add_plugin appbox
19
19
  >The {PROJECT_NAME} - For Project Name,
20
20
  >{BUILD_VERSION} - For Build Version, and
21
21
  >{BUILD_NUMBER} - For Build Number.
22
- - `appbox_path` (Optional) - If you've setup AppBox in the different directory then you need to mention that here. Default is '/Applications/AppBox.app'
22
+ - `appbox_path` (Optional) - If you've setup AppBox in the different directory then you need to mention that here. Default is `/Applications/AppBox.app`
23
23
 
24
24
 
25
25
  ## 2. Demo Fastfile with a lane `gymbox`
@@ -42,7 +42,7 @@ end
42
42
  ![](/AppBox-Fastlane-Demo-Project/AppBoxFastlane.gif)
43
43
 
44
44
 
45
- ## 3. About appbox
45
+ ## 3. About AppBox
46
46
  [AppBox](https://getappbox.com) is a tool for iOS developers to build and deploy Development, Ad-Hoc and In-house (Enterprise) applications directly to the devices from your Dropbox account. Also, available on [Github](https://github.com/vineetchoudhary/AppBox-iOSAppsWirelessInstallation).
47
47
 
48
48
  ## 4. Example
@@ -10,29 +10,50 @@ module Fastlane
10
10
  ipa_path = Actions.lane_context[ Actions::SharedValues::IPA_OUTPUT_PATH ]
11
11
  UI.message("IPA PATH - #{ipa_path}")
12
12
 
13
+ #emails param
13
14
  if params[:emails]
14
15
  emails = params[:emails]
15
16
  UI.message("Emails - #{emails}")
16
17
  end
17
18
 
19
+ #developer personal message param
18
20
  if params[:message]
19
21
  message = params[:message]
20
22
  UI.message("Message - #{message}")
21
23
  end
22
24
 
25
+ #keep same linkparam
26
+ if params[:keep_same_link]
27
+ keep_same_link = params[:keep_same_link]
28
+ UI.message("Keep Same Link - #{keep_same_link}")
29
+ end
30
+
31
+ #custom dropbox folder name
32
+ if params[:dropbox_folder_name]
33
+ dropbox_folder_name = params[:dropbox_folder_name]
34
+ UI.message("Dropbox folder name - #{dropbox_folder_name}")
35
+ end
36
+
37
+ #AppBox Path
23
38
  if params[:appbox_path]
24
39
  appbox_path = "#{params[:appbox_path]}/Contents/MacOS/AppBox"
25
40
  else
26
41
  appbox_path = "/Applications/AppBox.app/Contents/MacOS/AppBox"
27
42
  end
28
43
 
44
+ #Check if AppBox exist at given path
29
45
  if File.file?(appbox_path)
30
46
  UI.message("AppBox Path - #{appbox_path}")
31
47
 
32
48
  # Start AppBox
33
49
  UI.message("Starting AppBox...")
34
- exit_status = system("exec #{appbox_path} ipa='#{ipa_path}' email='#{emails}' message='#{message}'")
50
+ if dropbox_folder_name
51
+ exit_status = system("exec #{appbox_path} ipa='#{ipa_path}' email='#{emails}' message='#{message}' keepsamelink=#{keep_same_link} dbfolder='#{dropbox_folder_name}'")
52
+ else
53
+ exit_status = system("exec #{appbox_path} ipa='#{ipa_path}' email='#{emails}' message='#{message}' keepsamelink='#{keep_same_link}'")
54
+ end
35
55
 
56
+ # Print upload status
36
57
  if exit_status
37
58
  UI.success('AppBox finished successfully')
38
59
  else
@@ -41,7 +62,7 @@ module Fastlane
41
62
  exit
42
63
  end
43
64
  else
44
- UI.error("AppBox not found at path #{appbox_path}. Please install appbox first.")
65
+ UI.error("AppBox not found at path #{appbox_path}. Please download (https://getappbox.com/download) and install appbox first. ")
45
66
  exit
46
67
  end
47
68
 
@@ -55,10 +76,6 @@ module Fastlane
55
76
  ["Vineet Choudhary"]
56
77
  end
57
78
 
58
- #def self.return_value
59
- # If your method provides a return value, you can describe here what it does
60
- #end
61
-
62
79
  def self.details
63
80
  "Deploy Development, Ad-Hoc and In-house (Enterprise) iOS applications directly to the devices from your Dropbox account."
64
81
  end
@@ -79,6 +96,18 @@ module Fastlane
79
96
  env_name: "FL_APPBOX_MESSAGE",
80
97
  description: "Attach personal message in the email. Supported Keywords: The {PROJECT_NAME} - For Project Name, {BUILD_VERSION} - For Build Version, and {BUILD_NUMBER} - For Build Number",
81
98
  optional: true),
99
+
100
+ FastlaneCore::ConfigItem.new(key: :keep_same_link,
101
+ env_name: "FL_APPBOX_KEEP_SAME_LINK",
102
+ description: "This feature will keep same short URL for all future build/IPA uploaded with same bundle identifier. If this option is enabled, you can also download the previous build with the same URL. Read more here - https://docs.getappbox.com/Features/keepsamelink/",
103
+ optional: true,
104
+ default_value: false,
105
+ is_string: false),
106
+
107
+ FastlaneCore::ConfigItem.new(key: :dropbox_folder_name,
108
+ env_name: "FL_APPBOX_DB_FOLDER_NAME",
109
+ description: "You can change the link by providing a Custom Dropbox Folder Name. By default folder name will be the application bundle identifier. So, AppBox will keep the same link for the IPA file available in the same folder. Read more here - https://docs.getappbox.com/Features/keepsamelink/",
110
+ optional: true),
82
111
  ]
83
112
  end
84
113
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Appbox
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.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.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vineet Choudhary
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-20 00:00:00.000000000 Z
11
+ date: 2019-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry