fastlane-plugin-get_application_id_flavor 0.1.6 → 0.1.7

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: 18ed6f6d39ab57bb4735ff72efd42ff19bfe08d4af98aa84d471b79c91175a3f
4
- data.tar.gz: bcf26b25cfc0e684ae20252d00c0ab699179f8a27b2b319915336a986fc3428a
3
+ metadata.gz: b3119004f6da8686a8bc3ea5e00f0e3c840ff2a9148fc240f062bb5aa547989b
4
+ data.tar.gz: 955a01ad24e04df5ed1ac278712c06681d4a1083e3f10b2706dfb14657ffb284
5
5
  SHA512:
6
- metadata.gz: feb5a1cb2b8d9ca8463bdeb3e8d732a99267612c561319dd64b05ed98260f52847463fd62fafb25bfe5d5a385aa9d34d59c05588e8ae7c3ec3df104b9dc26789
7
- data.tar.gz: b35f9b2e56e57dd822c2b2f9bae5daa2c2ceabccdea6fb5b315f67494294ad778c3b3f93e319beea8fbd901cda04bca2f9070e3b25fe38a5e33b98ee2abc5a0e
6
+ metadata.gz: e63a9656f352f5512d8f3158ca24e0a8ff7f171d59825ac94b407d010a4cb0e039a7af66c2112dc385e7473cc40b65ff37d945804b7e927b7325fe4e976d5337
7
+ data.tar.gz: 9bb5609c3b0f8606210869f6d84d3d54d21af1d8c8f06447e80c01d533daec79bc00be063a3223b4c31cbdd6bb1d6b7ef351d6545677e27835c8d9ce19c5119d
@@ -13,7 +13,7 @@ module Fastlane
13
13
  app_folder_name ||= params[:app_folder_name]
14
14
  UI.message("The get_application_id plugin is looking inside your project folder (#{app_folder_name})!")
15
15
 
16
- Dir.glob("**/#{app_folder_name}/build.gradle") do |path|
16
+ Dir.glob("**/#{app_folder_name}/build.gradle*") do |path|
17
17
  UI.message(" -> Found a build.gradle file at path: (#{path})!")
18
18
  application_id = get_application_id(path, constant_name, flavor)
19
19
  end
@@ -53,7 +53,7 @@ module Fastlane
53
53
  else
54
54
  begin
55
55
  File.open(path) do |f|
56
- match = f.read.scan(/^\s*#{flavor}\s*\{([^}]+)\}/).last
56
+ match = path.end_with?(".kts") ? f.read.scan(/.*create\(\"#{flavor}\"\).*\{([^}]+)\}/).last : f.read.scan(/^\s*#{flavor}\s*\{([^}]+)\}/).last
57
57
  line = match.first.strip.split(/\n/).select { |l| l.include? constant_name }.first
58
58
  components = line.strip.split(' ')
59
59
  application_id = components.last.tr("\"'", '')
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GetApplicationIdFlavor
3
- VERSION = '0.1.6'
3
+ VERSION = '0.1.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-get_application_id_flavor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Helder Pinhal
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-23 00:00:00.000000000 Z
11
+ date: 2021-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -122,7 +122,7 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: 2.64.1
125
- description:
125
+ description:
126
126
  email: pinhal.helder@gmail.com
127
127
  executables: []
128
128
  extensions: []
@@ -138,7 +138,7 @@ homepage: https://github.com/pstens/fastlane-plugin-get-application-id
138
138
  licenses:
139
139
  - MIT
140
140
  metadata: {}
141
- post_install_message:
141
+ post_install_message:
142
142
  rdoc_options: []
143
143
  require_paths:
144
144
  - lib
@@ -153,8 +153,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0'
155
155
  requirements: []
156
- rubygems_version: 3.0.6
157
- signing_key:
156
+ rubygems_version: 3.0.3.1
157
+ signing_key:
158
158
  specification_version: 4
159
159
  summary: Get the applicationId of an Android project.
160
160
  test_files: []