fastlane-plugin-appcenter 0.1.5 → 0.1.6
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a2382ea79811f33e64b8634651194e872bde2b0
|
4
|
+
data.tar.gz: 64d845cb80605b1aeeee716bebb93ead57ce2d9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c93f70d9456ee696d5d025a18dcef6ee768d61192a29c71fbb666043de443fef48e9333db3228b075faf02af67c85e33e3487799004ed8c81f7208695159608
|
7
|
+
data.tar.gz: 1c7f0bec5e20dc0b00f17470e93f43ab254eec7a0e3c6e3d682cc65fef6149607f682d47a63e0a9c49fba5aba6d6429851bfd4105bc32205e86a67c1e2bc3fdf
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# App Center `fastlane` plugin
|
2
2
|
|
3
3
|
[](https://rubygems.org/gems/fastlane-plugin-appcenter)
|
4
4
|
[](https://badge.fury.io/rb/fastlane-plugin-appcenter)
|
@@ -12,13 +12,12 @@ This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To
|
|
12
12
|
fastlane add_plugin appcenter
|
13
13
|
```
|
14
14
|
|
15
|
-
## About
|
16
|
-
|
17
|
-
Plugin for [App Center](https://appcenter.ms). Provides `appcenter_upload` action for [release distribution](https://docs.microsoft.com/en-us/appcenter/distribution/uploading) and [dSYM uploads](https://docs.microsoft.com/en-us/appcenter/crashes/ios)
|
15
|
+
## About App Center
|
16
|
+
With [App Center](https://appcenter.ms) you can continuously build, test, release, and monitor your apps. This plugin provides an `appcenter_upload` action which allows you to upload and [release distribute](https://docs.microsoft.com/en-us/appcenter/distribution/uploading) apps to your testers on App Center as well as to upload .dSYM files to [collect detailed crash reports](https://docs.microsoft.com/en-us/appcenter/crashes/ios) in App Center.
|
18
17
|
|
19
18
|
## Usage
|
20
19
|
|
21
|
-
|
20
|
+
To get started, first, [obtain an API token](https://appcenter.ms/settings/apitokens) in App Center. The API Token is used to authenticate with the App Center API in each call.
|
22
21
|
|
23
22
|
```ruby
|
24
23
|
appcenter_upload(
|
@@ -29,6 +28,18 @@ appcenter_upload(
|
|
29
28
|
)
|
30
29
|
```
|
31
30
|
|
31
|
+
The action parameters `api_token` and `owner_name` can also be omitted when their values are [set as environment variables](https://docs.fastlane.tools/advanced/#environment-variables). Below a list of all available environment variables:
|
32
|
+
|
33
|
+
- `APPCENTER_API_TOKEN` - API Token for App Center
|
34
|
+
- `APPCENTER_OWNER_NAME` - Owner name
|
35
|
+
- `APPCENTER_APP_NAME` - App name. If there is no app with such name, you will be prompted to create one
|
36
|
+
- `APPCENTER_DISTRIBUTE_APK` - Build release path for android build
|
37
|
+
- `APPCENTER_DISTRIBUTE_IPA` - Build release path for ios build
|
38
|
+
- `APPCENTER_DISTRIBUTE_DSYM` - Path to your symbols file. For iOS provide path to app.dSYM.zip
|
39
|
+
- `APPCENTER_DISTRIBUTE_UPLOAD_DSYM_ONLY` - Flag to upload only the dSYM file to App Center
|
40
|
+
- `APPCENTER_DISTRIBUTE_GROUP` - Comma separated list of Distribution Group names
|
41
|
+
- `APPCENTER_DISTRIBUTE_RELEASE_NOTES` - Release notes
|
42
|
+
|
32
43
|
## Example
|
33
44
|
|
34
45
|
Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
|
@@ -55,7 +66,7 @@ rubocop -a
|
|
55
66
|
|
56
67
|
## Issues and Feedback
|
57
68
|
|
58
|
-
For any other issues and feedback about this plugin, please
|
69
|
+
For any other issues and feedback about this plugin, please open a [GitHub issue](https://github.com/Microsoft/fastlane-plugin-appcenter/issues).
|
59
70
|
|
60
71
|
## Troubleshooting
|
61
72
|
|
@@ -75,10 +86,4 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
|
|
75
86
|
|
76
87
|
## Contact
|
77
88
|
|
78
|
-
|
79
|
-
|
80
|
-
If you have further questions, want to provide feedback or you are running into issues, log in to the [App Center](https://appcenter.ms) portal and use the blue Intercom button on the bottom right to start a conversation with us.
|
81
|
-
|
82
|
-
### Twitter
|
83
|
-
|
84
|
-
We're on Twitter as [@appcenter](https://www.twitter.com/vsappcenter).
|
89
|
+
We're on Twitter as [@vsappcenter](https://www.twitter.com/vsappcenter). Additionally you can reach out to us on the [App Center](https://appcenter.ms/apps) portal by using the blue Intercom button on the bottom right to start a conversation.
|
@@ -220,7 +220,7 @@ module Fastlane
|
|
220
220
|
Actions.lane_context[SharedValues::APPCENTER_BUILD_INFORMATION] = release
|
221
221
|
|
222
222
|
UI.message("Public Download URL: #{download_url}") if download_url
|
223
|
-
UI.success("Release #{release['short_version']} was successfully distributed")
|
223
|
+
UI.success("Release #{release['short_version']} was successfully distributed to group \"#{group_name}\"")
|
224
224
|
|
225
225
|
release
|
226
226
|
when 404
|
@@ -278,18 +278,24 @@ module Fastlane
|
|
278
278
|
|
279
279
|
# run whole upload process for release
|
280
280
|
def self.run_release_upload(params)
|
281
|
+
values = params.values
|
281
282
|
api_token = params[:api_token]
|
282
283
|
owner_name = params[:owner_name]
|
283
284
|
app_name = params[:app_name]
|
284
285
|
group = params[:group]
|
285
286
|
release_notes = params[:release_notes]
|
287
|
+
should_clip = params[:should_clip]
|
288
|
+
release_notes_link = params[:release_notes_link]
|
286
289
|
|
287
290
|
if release_notes.length >= Constants::MAX_RELEASE_NOTES_LENGTH
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
+
unless should_clip
|
292
|
+
clip = UI.confirm("The release notes are limited to #{Constants::MAX_RELEASE_NOTES_LENGTH} characters, proceeding will clip them. Proceed anyway?")
|
293
|
+
UI.abort_with_message!("Upload aborted, please edit your release notes") unless clip
|
294
|
+
release_notes_link ||= UI.input("Provide a link for additional release notes, leave blank to skip")
|
295
|
+
end
|
291
296
|
read_more = "..." + (release_notes_link.to_s.empty? ? "" : "\n\n[read more](#{release_notes_link})")
|
292
297
|
release_notes = release_notes[0, Constants::MAX_RELEASE_NOTES_LENGTH - read_more.length] + read_more
|
298
|
+
values[:release_notes] = release_notes
|
293
299
|
UI.message("Release notes clipped")
|
294
300
|
end
|
295
301
|
|
@@ -313,7 +319,10 @@ module Fastlane
|
|
313
319
|
if uploaded
|
314
320
|
release_url = uploaded['release_url']
|
315
321
|
UI.message("Release committed")
|
316
|
-
|
322
|
+
groups = group.split(',')
|
323
|
+
groups.each do |group_name|
|
324
|
+
self.add_to_group(api_token, release_url, group_name, release_notes)
|
325
|
+
end
|
317
326
|
end
|
318
327
|
end
|
319
328
|
end
|
@@ -497,7 +506,7 @@ module Fastlane
|
|
497
506
|
|
498
507
|
FastlaneCore::ConfigItem.new(key: :group,
|
499
508
|
env_name: "APPCENTER_DISTRIBUTE_GROUP",
|
500
|
-
description: "
|
509
|
+
description: "Comma separated list of Distribution Group names",
|
501
510
|
default_value: "Collaborators",
|
502
511
|
optional: true,
|
503
512
|
type: String),
|
@@ -506,6 +515,19 @@ module Fastlane
|
|
506
515
|
env_name: "APPCENTER_DISTRIBUTE_RELEASE_NOTES",
|
507
516
|
description: "Release notes",
|
508
517
|
default_value: Actions.lane_context[SharedValues::FL_CHANGELOG] || "No changelog given",
|
518
|
+
optional: true,
|
519
|
+
type: String),
|
520
|
+
|
521
|
+
FastlaneCore::ConfigItem.new(key: :should_clip,
|
522
|
+
env_name: "APPCENTER_DISTRIBUTE_RELEASE_NOTES_CLIPPING",
|
523
|
+
description: "Clip release notes if its lenght is more then #{Constants::MAX_RELEASE_NOTES_LENGTH}, true by default",
|
524
|
+
optional: true,
|
525
|
+
is_string: false,
|
526
|
+
default_value: true),
|
527
|
+
|
528
|
+
FastlaneCore::ConfigItem.new(key: :release_notes_link,
|
529
|
+
env_name: "APPCENTER_DISTRIBUTE_RELEASE_NOTES_LINK",
|
530
|
+
description: "Additional release notes link",
|
509
531
|
optional: true,
|
510
532
|
type: String)
|
511
533
|
]
|
@@ -537,7 +559,7 @@ module Fastlane
|
|
537
559
|
owner_name: "appcenter_owner",
|
538
560
|
app_name: "testing_app",
|
539
561
|
apk: "./app-release.ipa",
|
540
|
-
group: "Testers",
|
562
|
+
group: "Testers,Alpha",
|
541
563
|
dsym: "./app.dSYM.zip",
|
542
564
|
release_notes: "release notes"
|
543
565
|
)'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-appcenter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|