fastlane-plugin-apadmi_grout 2.3.1 → 2.4.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
  SHA256:
3
- metadata.gz: 057b6fbd946ea3c41cd4d444fd00bb1a4f40ee48e30e878016304c68b42089d8
4
- data.tar.gz: abd2f3609fd6656873a14a4efcd5775c1ecb315bbde9419bddcfe40ead6bc709
3
+ metadata.gz: 776e97752fbc36aa5a41cf966536b83f2f0106c149554b69a71cd1dd8618f994
4
+ data.tar.gz: 79994e13a8ac5e19ebc2c2cc7ef54ee1ce791cfe7314dd5356245fd7baa6eed1
5
5
  SHA512:
6
- metadata.gz: 5c5c4e67a30bfcb6a5a8eb97f5a19f23c598c1b679492e51c84a1b7345694c1e23e5a9db72be83e360dd4d466bc4406d6ee5d67d22cbf2f5a3b956e4b2dff313
7
- data.tar.gz: c93367d52af8479de1417337f592474f9a10c5f3cd1be4a413575e2974db99f698753619ae97a26bad4b8cdbff10510af60fdf80124cfe93634e7317634988f8
6
+ metadata.gz: 02c9b2f34592546df0671485c2c32955f9f5992e426283cfe26d04cfcf1d85af50428228dfe44e3153229f6b42e52f210cbe85dd5a8d7aa4dfae288e1d29830a
7
+ data.tar.gz: 574511769eb9ff5b14740b794572525d285846dbc14eaa44971561e778e7641f98a3e9e0617af55066b172c938c97ab2209be97ce8f673b233aa6978e6ba204d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Fastlane Plugin Changelog
2
2
 
3
+ ## [2.4.0] - 2023-09-04
4
+ * Copy the android mapping files as well as binaries after a build.
5
+ * Bump core library version dependency
6
+
7
+ ## [2.3.2] - 2023-04-06
8
+ * Add build variant suffix to android artifact names to reduce the chance of conflicting file names.
9
+ * Bump core library version dependency
10
+
3
11
  ## [2.3.1] - 2023-04-05
4
12
  * Fix issue with apk generation where path was returned incorrectly
5
13
  * Bump core library version dependency
@@ -9,18 +9,20 @@ require_relative "../utils/fastlane_logger"
9
9
  # Be very very careful before making any changes.
10
10
  module Fastlane
11
11
  module Actions
12
- # Build an IPA binary
12
+ # Build an APK or AAB binary
13
13
  class BuildApkOrAabAction < Action
14
14
  def self.run(params)
15
15
  logger = FastLane::FastlaneLogger.new
16
16
 
17
- build_type = Apadmi::Grout::CommandParsingUtils.determining_build_type(params[:gradle_command])
17
+ build_type = Apadmi::Grout::CommandParsingUtils.determine_build_type(params[:gradle_command])
18
+ variant = Apadmi::Grout::CommandParsingUtils.determine_variant(params[:gradle_command])
18
19
  output_name = params[:output_name] || Apadmi::Grout::FilenameUtils.binary_output_filename(
19
20
  client_name: params[:client_name],
20
21
  product_name: params[:product_name],
21
22
  platform: "Android",
22
23
  version: params[:version],
23
- build_number: params[:build_number]
24
+ build_number: params[:build_number],
25
+ suffix: variant
24
26
  ) + ".#{build_type}"
25
27
 
26
28
  logger.message("Generating #{build_type}: #{output_name}")
@@ -45,6 +47,25 @@ module Fastlane
45
47
  File.rename(artifact, new_artifact_path)
46
48
  logger.success("Generated #{output_name} in #{params[:output_directory]}")
47
49
 
50
+ mapping_path = lane_context[SharedValues::GRADLE_MAPPING_TXT_OUTPUT_PATH]
51
+ # rubocop:disable Style/StringConcatenation
52
+ mapping_filename = Apadmi::Grout::FilenameUtils.binary_output_filename(
53
+ client_name: params[:client_name],
54
+ product_name: params[:product_name],
55
+ platform: "Android",
56
+ version: params[:version],
57
+ build_number: params[:build_number],
58
+ suffix: "#{variant}-mapping"
59
+ ) + ".txt"
60
+ # rubocop:enable Style/StringConcatenation
61
+ new_mapping_path = "#{params[:output_directory]}/#{mapping_filename}"
62
+ if File.exist?(mapping_path)
63
+ File.rename(mapping_path, new_mapping_path)
64
+ logger.success("Generated #{mapping_filename} in #{params[:output_directory]}")
65
+ else
66
+ logger.message("No mapping file found")
67
+ end
68
+
48
69
  new_artifact_path
49
70
  end
50
71
 
@@ -66,11 +87,11 @@ module Fastlane
66
87
  end
67
88
 
68
89
  def self.description
69
- "Builds an APK or AAB depeding on the command"
90
+ "Builds an APK or AAB depending on the command"
70
91
  end
71
92
 
72
93
  def self.authors
73
- ["samdc@apadmi.com"]
94
+ ["samdc@apadmi.com", "jamesr@apadmi.com"]
74
95
  end
75
96
 
76
97
  def self.fastlane_signing_properties
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Fastlane
4
4
  module ApadmiGrout
5
- VERSION = "2.3.1"
5
+ VERSION = "2.4.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-apadmi_grout
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Apadmi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-05 00:00:00.000000000 Z
11
+ date: 2023-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apadmi_grout