fastlane-plugin-appcircle_testing_distribution 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +52 -0
- data/lib/fastlane/plugin/appcircle_testing_distribution/actions/appcircle_testing_distribution_action.rb +89 -0
- data/lib/fastlane/plugin/appcircle_testing_distribution/helper/appcircle_testing_distribution_helper.rb +16 -0
- data/lib/fastlane/plugin/appcircle_testing_distribution/version.rb +5 -0
- data/lib/fastlane/plugin/appcircle_testing_distribution.rb +16 -0
- metadata +50 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 245acdf42f2a6037ee46ea55c50587541b09e8e8e488343c566663982e6bb51d
|
4
|
+
data.tar.gz: ca6a2b79033cf6eb9c2cd7ba1a592970fc60838ecd8e5333b13b5d691ebe296d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: '05796916b0ad890a740d4f56c5006b7326491a072af6232b52ad6e32fc571849033758bede4796ff35ccfb37b089fda3e7b46f157faf5ef29b1ef264ded0d17c'
|
7
|
+
data.tar.gz: 5fef2d1f0b4ca74050613a739900b3d475ff1b8e1bbaaca26ba04a0b520a93c6615e7b729849344f28dffa8351c27326c3d8523ef71da2d9bcbeaff2cdf9f13b
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2024 Guven Karanfil <guven.karanfil@smartface.io>
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
# appcircle_testing_distribution plugin
|
2
|
+
|
3
|
+
[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-appcircle_testing_distribution)
|
4
|
+
|
5
|
+
## Getting Started
|
6
|
+
|
7
|
+
This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-appcircle_testing_distribution`, add it to your project by running:
|
8
|
+
|
9
|
+
```bash
|
10
|
+
fastlane add_plugin appcircle_testing_distribution
|
11
|
+
```
|
12
|
+
|
13
|
+
## About appcircle_testing_distribution
|
14
|
+
|
15
|
+
Efficiently distribute application builds to users or testing groups using Appcircle's robust platform.
|
16
|
+
|
17
|
+
**Note to author:** Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here.
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
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`.
|
22
|
+
|
23
|
+
**Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)
|
24
|
+
|
25
|
+
## Run tests for this plugin
|
26
|
+
|
27
|
+
To run both the tests, and code style validation, run
|
28
|
+
|
29
|
+
```
|
30
|
+
rake
|
31
|
+
```
|
32
|
+
|
33
|
+
To automatically fix many of the styling issues, use
|
34
|
+
```
|
35
|
+
rubocop -a
|
36
|
+
```
|
37
|
+
|
38
|
+
## Issues and Feedback
|
39
|
+
|
40
|
+
For any other issues and feedback about this plugin, please submit it to this repository.
|
41
|
+
|
42
|
+
## Troubleshooting
|
43
|
+
|
44
|
+
If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.
|
45
|
+
|
46
|
+
## Using _fastlane_ Plugins
|
47
|
+
|
48
|
+
For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).
|
49
|
+
|
50
|
+
## About _fastlane_
|
51
|
+
|
52
|
+
_fastlane_ is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools).
|
@@ -0,0 +1,89 @@
|
|
1
|
+
require 'fastlane/action'
|
2
|
+
require_relative '../helper/appcircle_testing_distribution_helper'
|
3
|
+
|
4
|
+
module Fastlane
|
5
|
+
module Actions
|
6
|
+
class AppcircleTestingDistributionAction < Action
|
7
|
+
def self.run(params)
|
8
|
+
accessToken = params[:accessToken]
|
9
|
+
profileID = params[:profileID]
|
10
|
+
appPath = params[:appPath]
|
11
|
+
message = params[:message]
|
12
|
+
|
13
|
+
self.ac_login(accessToken)
|
14
|
+
self.ac_upload(appPath, profileID, message)
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.ac_login(accessToken)
|
19
|
+
ac_login = `appcircle login --pat #{accessToken}`
|
20
|
+
if $?.success?
|
21
|
+
UI.success("Logged in to Appcircle successfully.")
|
22
|
+
else
|
23
|
+
raise "Error executing command of logging to Appcircle. Please make sure you have installed Appcircle CLI and provided a valid access token. For more information, please visit https://docs.appcircle.io/appcircle-api/api-authentication#generatingmanaging-the-personal-api-tokens #{ac_login}"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.ac_upload(appPath, profileID, message)
|
28
|
+
ac_upload = `appcircle testing-distribution upload --app=#{appPath} --distProfileId=#{profileID} --message "#{message}"`;
|
29
|
+
if $?.success?
|
30
|
+
UI.success("#{appPath} Uploaded to Appcircle successfully.")
|
31
|
+
else
|
32
|
+
raise "Error executing command of uploading to Appcircle. Please make sure you have provide the valid app path and distribution profile id. For more information\n" + ac_upload
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.description
|
37
|
+
"Efficiently distribute application builds to users or testing groups using Appcircle's robust platform."
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.authors
|
41
|
+
["appcircleio"]
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.return_value
|
45
|
+
# If your method provides a return value, you can describe here what it does
|
46
|
+
end
|
47
|
+
|
48
|
+
def self.details
|
49
|
+
# Optional:
|
50
|
+
"Appcircle simplifies the distribution of builds to test teams with an extensive platform for managing and tracking applications, versions, testers, and teams. Appcircle integrates with enterprise authentication mechanisms such as LDAP and SSO, ensuring secure distribution of testing packages. Learn more about Appcircle testing distribution"
|
51
|
+
end
|
52
|
+
|
53
|
+
def self.available_options
|
54
|
+
[
|
55
|
+
FastlaneCore::ConfigItem.new(key: :accessToken,
|
56
|
+
env_name: "AC_ACCESS_TOKEN",
|
57
|
+
description: "Provide the Appcircle access token to authenticate connections to Appcircle services. This token allows your Azure DevOps pipeline to interact with Appcircle for distributing applications",
|
58
|
+
optional: false,
|
59
|
+
type: String),
|
60
|
+
|
61
|
+
FastlaneCore::ConfigItem.new(key: :profileID,
|
62
|
+
env_name: "AC_PROFILE_ID",
|
63
|
+
description: "Enter the ID of the Appcircle distribution profile. This ID uniquely identifies the profile under which your applications will be distributed",
|
64
|
+
optional: false,
|
65
|
+
type: String),
|
66
|
+
|
67
|
+
FastlaneCore::ConfigItem.new(key: :appPath,
|
68
|
+
env_name: "AC_APP_PATH",
|
69
|
+
description: "Specify the path to your application file. For iOS, this can be a .ipa or .xcarchive file path. For Android, specify the .apk or .appbundle file path",
|
70
|
+
optional: false,
|
71
|
+
type: String),
|
72
|
+
|
73
|
+
FastlaneCore::ConfigItem.new(key: :message,
|
74
|
+
env_name: "AC_MESSAGE",
|
75
|
+
description: "Optional message to include with the distribution to provide additional information to testers or users receiving the build",
|
76
|
+
optional: false,
|
77
|
+
type: String),
|
78
|
+
]
|
79
|
+
end
|
80
|
+
|
81
|
+
def self.is_supported?(platform)
|
82
|
+
# Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
|
83
|
+
# See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
|
84
|
+
#
|
85
|
+
[:ios, :android].include?(platform)
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'fastlane_core/ui/ui'
|
2
|
+
|
3
|
+
module Fastlane
|
4
|
+
UI = FastlaneCore::UI unless Fastlane.const_defined?(:UI)
|
5
|
+
|
6
|
+
module Helper
|
7
|
+
class AppcircleTestingDistributionHelper
|
8
|
+
# class methods that you define here become available in your action
|
9
|
+
# as `Helper::AppcircleTestingDistributionHelper.your_method`
|
10
|
+
#
|
11
|
+
def self.show_message
|
12
|
+
UI.message("Hello from the appcircle_testing_distribution plugin helper!")
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'fastlane/plugin/appcircle_testing_distribution/version'
|
2
|
+
|
3
|
+
module Fastlane
|
4
|
+
module AppcircleTestingDistribution
|
5
|
+
# Return all .rb files inside the "actions" and "helper" directory
|
6
|
+
def self.all_classes
|
7
|
+
Dir[File.expand_path('**/{actions,helper}/*.rb', File.dirname(__FILE__))]
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
# By default we want to import all available actions and helpers
|
13
|
+
# A plugin can contain any number of actions and plugins
|
14
|
+
Fastlane::AppcircleTestingDistribution.all_classes.each do |current|
|
15
|
+
require current
|
16
|
+
end
|
metadata
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fastlane-plugin-appcircle_testing_distribution
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Guven Karanfil
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-06-10 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description:
|
14
|
+
email: guven.karanfil@smartface.io
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- LICENSE
|
20
|
+
- README.md
|
21
|
+
- lib/fastlane/plugin/appcircle_testing_distribution.rb
|
22
|
+
- lib/fastlane/plugin/appcircle_testing_distribution/actions/appcircle_testing_distribution_action.rb
|
23
|
+
- lib/fastlane/plugin/appcircle_testing_distribution/helper/appcircle_testing_distribution_helper.rb
|
24
|
+
- lib/fastlane/plugin/appcircle_testing_distribution/version.rb
|
25
|
+
homepage: https://github.com/appcircleio/fastlane_plugin_appcircle_testing_distribution
|
26
|
+
licenses:
|
27
|
+
- MIT
|
28
|
+
metadata:
|
29
|
+
rubygems_mfa_required: 'false'
|
30
|
+
post_install_message:
|
31
|
+
rdoc_options: []
|
32
|
+
require_paths:
|
33
|
+
- lib
|
34
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '2.6'
|
39
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
requirements: []
|
45
|
+
rubygems_version: 3.4.10
|
46
|
+
signing_key:
|
47
|
+
specification_version: 4
|
48
|
+
summary: Efficiently distribute application builds to users or testing groups using
|
49
|
+
Appcircle's robust platform.
|
50
|
+
test_files: []
|