fastlane-plugin-android_update_package_identifier 0.1.1 → 0.1.3

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: 2ca5dec519173daf5b0b123204f047f8650c7cdca20284c059b6121d4d69c7f2
4
- data.tar.gz: 7c2635ea8eb9ad75504a944385ed8d32543fe3314794597ec98808353fc670e5
3
+ metadata.gz: 6854c360188756b4db1ec13e94fef8ab4e186bc1d5e4b05906845954784b7ec4
4
+ data.tar.gz: 6e77b6fb0ffed2bf752a776e529ab05f44e0be94ea9a8fe50f9848feb74b241b
5
5
  SHA512:
6
- metadata.gz: ad9790824f5f7f8130bf18b0924c1036290bd43d17a0ffb0d4c9d109b9f67b200a7c471a49fb45d19fbdae3ea870f294203806e06c31a91ca279434250907798
7
- data.tar.gz: 1884bdb9453669a0113eb5aceefc6143fc04a462c5915b524ffc44dff765b0c0442208d68a2711aa9b63c9f0ae0682422031a5be53ea224e4408cade64bb6476
6
+ metadata.gz: af622ae4a44b40c2653007e3a38a504960934119cbf8db862fcb864d53b959622c1bf0c6c73f659e6673f1b0ff5115ac26017a714c336711e51b3abe0b407e98
7
+ data.tar.gz: 56ae98a67e2904642e1078ba56b1a52041da441159790400b4fce045a88cf1a43566f924854e95c6b701efc3be95c7b512347e49d473b47de4defbcdded6d709
@@ -11,7 +11,9 @@ module Fastlane
11
11
  File.open(path,"r+") do |file|
12
12
  text = File.read(file)
13
13
  UI.message("Changing build config at #{path} to have applicationId of #{identifier}")
14
- new_contents = text.gsub("/(?<=defaultConfig[\s\S]*applicationId.*\").*(?=\")/", identifier)
14
+ config_contents = text[/defaultConfig (\{(?:\{??[^\{]*?\}))/, 1]
15
+ new_config_contents = config_contents.gsub(/(?<=applicationId \").*?(?=\")/, identifier)
16
+ new_contents = text.gsub(config_contents, new_config_contents)
15
17
  file.puts new_contents
16
18
  end
17
19
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AndroidUpdatePackageIdentifier
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-android_update_package_identifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Nogueira