fastlane-plugin-get_application_id_flavor 0.1.3 → 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
- SHA1:
3
- metadata.gz: dd5511632c0219876eb2ec8119bc11130ad34627
4
- data.tar.gz: 15542b6c90bc41b178167d5fb96d2a8f2093516e
2
+ SHA256:
3
+ metadata.gz: b3119004f6da8686a8bc3ea5e00f0e3c840ff2a9148fc240f062bb5aa547989b
4
+ data.tar.gz: 955a01ad24e04df5ed1ac278712c06681d4a1083e3f10b2706dfb14657ffb284
5
5
  SHA512:
6
- metadata.gz: 3806cbbdc41d2d7b0370576eb7be08237997336a7a3df74f9c673f76fc9df0b8148bc35668e8e9432c03c65e1f387bdd6a6b29064e82f0f232191ed8e3083f5a
7
- data.tar.gz: 333ea1ff6d4c7926a27b53684f6707685d3ebbd52714996b9f555bfcaab0fe2acd897062bf1b1661caf705771347c86e70daac4413737e962d0d7ac3776d70d5
6
+ metadata.gz: e63a9656f352f5512d8f3158ca24e0a8ff7f171d59825ac94b407d010a4cb0e039a7af66c2112dc385e7473cc40b65ff37d945804b7e927b7325fe4e976d5337
7
+ data.tar.gz: 9bb5609c3b0f8606210869f6d84d3d54d21af1d8c8f06447e80c01d533daec79bc00be063a3223b4c31cbdd6bb1d6b7ef351d6545677e27835c8d9ce19c5119d
@@ -8,12 +8,12 @@ module Fastlane
8
8
  flavor ||= params[:flavor]
9
9
  if !gradle_file_path.nil?
10
10
  UI.message("The get_application_id plugin will use gradle file at (#{gradle_file_path})!")
11
- application_id = get_application_id(gradle_file_path, constant_name)
11
+ application_id = get_application_id(gradle_file_path, constant_name, flavor)
12
12
  else
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
@@ -42,7 +42,7 @@ module Fastlane
42
42
  while (line = file.gets)
43
43
  next unless line.include? constant_name
44
44
  components = line.strip.split(' ')
45
- application_id = components[components.length - 1].tr("\"", '')
45
+ application_id = components[components.length - 1].tr("\"'", '')
46
46
  break
47
47
  end
48
48
  file.close
@@ -53,10 +53,10 @@ module Fastlane
53
53
  else
54
54
  begin
55
55
  File.open(path) do |f|
56
- match = f.read.scan(/#{flavor} \{([^}]+)\}/).first
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
- application_id = components.last
59
+ application_id = components.last.tr("\"'", '')
60
60
  end
61
61
  end
62
62
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GetApplicationIdFlavor
3
- VERSION = '0.1.3'
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.3
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Helder Pinhal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-25 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
@@ -153,8 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0'
155
155
  requirements: []
156
- rubyforge_project:
157
- rubygems_version: 2.5.2.3
156
+ rubygems_version: 3.0.3.1
158
157
  signing_key:
159
158
  specification_version: 4
160
159
  summary: Get the applicationId of an Android project.