fastlane-plugin-fossify 1.0.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 +7 -0
- data/LICENSE +21 -0
- data/README.md +22 -0
- data/lib/fastlane/plugin/fossify/actions/deploy_android.rb +69 -0
- data/lib/fastlane/plugin/fossify/actions/metadata_android.rb +45 -0
- data/lib/fastlane/plugin/fossify/actions/test_android.rb +22 -0
- data/lib/fastlane/plugin/fossify/version.rb +7 -0
- data/lib/fastlane/plugin/fossify.rb +15 -0
- metadata +62 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 15bdeba25b0469078b1e7b972324062bd449f34d25fa7c3569806377aaa1db0a
|
4
|
+
data.tar.gz: 7c0bebb2aa13994be3ad6076cde33d578304fb10c4eb4c1cc5aadefe7ba5b772
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 30569d1a08587f7e8f18c65449eb40bc7b7f6fb0ad4239b68812dd38a4be1816287e523605e3075558cd28af09d9738435fdd0794b08bf6bc5dcbead14173252
|
7
|
+
data.tar.gz: 56471d21bdd862e5d986b661ff33f19670dc46101805711f947d411702fde07511a67f6d6f4f40125dda0066c47f533ab7d5ea49bd964403687b5114abd4447a
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2025 Naveen Singh
|
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,22 @@
|
|
1
|
+
# Fossify Fastlane Plugin
|
2
|
+
|
3
|
+
This plugin provides three actions:
|
4
|
+
- test_android: Run unit and instrumentation tests via Gradle
|
5
|
+
- deploy_android: Build a release AAB and upload to Google Play (includes metadata)
|
6
|
+
- metadata_android: Upload Play Store metadata
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
Install the plugin by running:
|
11
|
+
|
12
|
+
```bash
|
13
|
+
fastlane add_plugin fossify
|
14
|
+
```
|
15
|
+
|
16
|
+
## Run tests for this plugin
|
17
|
+
|
18
|
+
To run both the tests, and code style validation, run
|
19
|
+
|
20
|
+
```
|
21
|
+
rake
|
22
|
+
```
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'fastlane/action'
|
4
|
+
|
5
|
+
module Fastlane
|
6
|
+
module Actions
|
7
|
+
class DeployAndroidAction < Action
|
8
|
+
def self.run(params)
|
9
|
+
flavor = params[:flavor]
|
10
|
+
package_name = params[:package_name]
|
11
|
+
json_key = params[:json_key]
|
12
|
+
track = params[:track]
|
13
|
+
rollout = params[:rollout]
|
14
|
+
dryrun = params[:validate_only]
|
15
|
+
build_type = 'Release'
|
16
|
+
variant = "#{flavor}#{build_type}"
|
17
|
+
Actions::GradleAction.run(
|
18
|
+
task: 'bundle',
|
19
|
+
flavor:,
|
20
|
+
build_type:,
|
21
|
+
project_dir: Dir.pwd,
|
22
|
+
print_command: true,
|
23
|
+
print_command_output: true
|
24
|
+
)
|
25
|
+
|
26
|
+
aab_pattern = "app/build/outputs/bundle/#{variant}/*.aab"
|
27
|
+
aab_path = Dir[aab_pattern].first
|
28
|
+
UI.user_error!("No AAB found at #{aab_pattern}") unless aab_path && File.exist?(aab_path)
|
29
|
+
|
30
|
+
UI.message("AAB found at #{aab_path}")
|
31
|
+
|
32
|
+
Actions::UploadToPlayStoreAction.run(
|
33
|
+
rollout:,
|
34
|
+
aab: aab_path,
|
35
|
+
package_name:,
|
36
|
+
json_key:,
|
37
|
+
skip_upload_apk: true,
|
38
|
+
skip_upload_metadata: false,
|
39
|
+
track:,
|
40
|
+
validate_only: dryrun
|
41
|
+
)
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.available_options
|
45
|
+
[
|
46
|
+
opt(:flavor, required: true),
|
47
|
+
opt(:package_name, required: true),
|
48
|
+
opt(:json_key, required: true),
|
49
|
+
opt(:track, required: false, default_value: 'production'),
|
50
|
+
opt(:rollout, required: false, default_value: '0.05'),
|
51
|
+
opt(:validate_only, required: false, type: Boolean, default_value: false)
|
52
|
+
]
|
53
|
+
end
|
54
|
+
|
55
|
+
def self.opt(key, required:, **extra)
|
56
|
+
FastlaneCore::ConfigItem.new(
|
57
|
+
key:,
|
58
|
+
env_name: key.to_s.upcase, # Uppercase environment variable
|
59
|
+
optional: !required,
|
60
|
+
**extra
|
61
|
+
)
|
62
|
+
end
|
63
|
+
|
64
|
+
def self.is_supported?(platform)
|
65
|
+
platform == :android
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'fastlane/action'
|
4
|
+
|
5
|
+
module Fastlane
|
6
|
+
module Actions
|
7
|
+
class MetadataAndroidAction < Action
|
8
|
+
def self.run(params)
|
9
|
+
json_key = params[:json_key]
|
10
|
+
package_name = params[:package_name]
|
11
|
+
dryrun = params[:validate_only]
|
12
|
+
|
13
|
+
Actions::SupplyAction.run(
|
14
|
+
json_key:,
|
15
|
+
metadata_path: 'fastlane/metadata/android',
|
16
|
+
package_name:,
|
17
|
+
skip_upload_aab: true,
|
18
|
+
skip_upload_apk: true,
|
19
|
+
validate_only: dryrun
|
20
|
+
)
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.available_options
|
24
|
+
[
|
25
|
+
opt(:json_key, required: true),
|
26
|
+
opt(:package_name, required: true),
|
27
|
+
opt(:validate_only, required: false, type: Boolean, default_value: false)
|
28
|
+
]
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.opt(key, required:, **extra)
|
32
|
+
FastlaneCore::ConfigItem.new(
|
33
|
+
key:,
|
34
|
+
env_name: key.to_s.upcase, # Uppercase environment variable
|
35
|
+
optional: !required,
|
36
|
+
**extra
|
37
|
+
)
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.is_supported?(platform)
|
41
|
+
platform == :android
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'fastlane/action'
|
4
|
+
|
5
|
+
module Fastlane
|
6
|
+
module Actions
|
7
|
+
class TestAndroidAction < Action
|
8
|
+
def self.run(_params)
|
9
|
+
Actions::GradleAction.run(
|
10
|
+
task: 'test',
|
11
|
+
project_dir: Dir.pwd,
|
12
|
+
print_command: true,
|
13
|
+
print_command_output: true
|
14
|
+
)
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.is_supported?(platform)
|
18
|
+
platform == :android
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'fastlane/plugin/fossify/version'
|
4
|
+
|
5
|
+
module Fastlane
|
6
|
+
module Fossify
|
7
|
+
def self.all_classes
|
8
|
+
Dir[File.expand_path('**/{actions}/*.rb', File.dirname(__FILE__))]
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
Fastlane::Fossify.all_classes.each do |current|
|
14
|
+
require current
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fastlane-plugin-fossify
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Naveen Singh
|
8
|
+
bindir: bin
|
9
|
+
cert_chain: []
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
|
+
dependencies:
|
12
|
+
- !ruby/object:Gem::Dependency
|
13
|
+
name: abbrev
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '0'
|
19
|
+
type: :runtime
|
20
|
+
prerelease: false
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - ">="
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '0'
|
26
|
+
description: This fastlane plugin provides actions for managing Fossify app releases,
|
27
|
+
including testing, deploying to Play Store, and updating metadata.
|
28
|
+
email: snaveen935@gmail.com
|
29
|
+
executables: []
|
30
|
+
extensions: []
|
31
|
+
extra_rdoc_files: []
|
32
|
+
files:
|
33
|
+
- LICENSE
|
34
|
+
- README.md
|
35
|
+
- lib/fastlane/plugin/fossify.rb
|
36
|
+
- lib/fastlane/plugin/fossify/actions/deploy_android.rb
|
37
|
+
- lib/fastlane/plugin/fossify/actions/metadata_android.rb
|
38
|
+
- lib/fastlane/plugin/fossify/actions/test_android.rb
|
39
|
+
- lib/fastlane/plugin/fossify/version.rb
|
40
|
+
homepage: https://github.com/naveensingh/fastlane-plugin-fossify
|
41
|
+
licenses:
|
42
|
+
- MIT
|
43
|
+
metadata:
|
44
|
+
rubygems_mfa_required: 'true'
|
45
|
+
rdoc_options: []
|
46
|
+
require_paths:
|
47
|
+
- lib
|
48
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '3.3'
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
requirements: []
|
59
|
+
rubygems_version: 3.6.8
|
60
|
+
specification_version: 4
|
61
|
+
summary: Plugin to manage Fossify releases
|
62
|
+
test_files: []
|