fastlane-plugin-change_domain 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: 47eaa16e070cec0b63d1d92589b650f7594c7584ece46b79c8a2617b12c5557f
4
- data.tar.gz: 8df4f62b17d12fa39ce00f9f4ddd8e4bfda21949bd96f6cf63d300185c54efa7
3
+ metadata.gz: 74bfd33196434f9d94e71405f81769175b41ea7cb3f6f141d93de36deacc4465
4
+ data.tar.gz: 4fe9b1a1d5528addb68a48aed58a6503db087874144b059c405ef45dee74e406
5
5
  SHA512:
6
- metadata.gz: 35a3dd907931723d0eda7122d14aa878498f919767422be44236f0f60fa32a93b2fdecdd9bb77c528bcf0c445a34a20e981ed11fc51c79df49980f7e9d971c65
7
- data.tar.gz: 373dea1ab31af8e2a5aca9103fd4a7fc28463ac6b5e543bb4b275734a1cfa550e5741a8c77358d90f403ef160e2d91e8f145b2c9ed3f5014ac2cb24cb443008c
6
+ metadata.gz: 2ab1bfe7d5adb82ec116842c76c04b2b0b85b568a20febfd727cb292236a54e942390f81c4e328f4c6874d542003a204652e092871a812ad867999c2669b4e66
7
+ data.tar.gz: 72fded6a7451787f957f9bc362a86608ad572884d8023093da647b8005064f99617184ffd79fe61a575329e9f80c9c899c4bce46b14a572617eef8e9176cb539
@@ -34,11 +34,13 @@ module Fastlane
34
34
  gradlePath = "/app"
35
35
  new_folder_path = "#{path}#{sourcesPath}/main/java/#{new_folder}"
36
36
  java_sources = Dir.glob("#{path}#{sourcesPath}/main/java/#{folder}/*.java")
37
+ kotlin_source = Dir.glob("#{path}#{sourcesPath}/main/java/#{folder}/*.kt")
37
38
  elsif File.exist?("#{path}/src/#{folder}")
38
39
  sourcesPath = "/src"
39
40
  gradlePath = "/."
40
41
  new_folder_path = "#{path}#{sourcesPath}/#{new_folder}"
41
42
  java_sources = Dir.glob("#{path}#{sourcesPath}/#{folder}/*.java")
43
+ kotlin_source = Dir.glob("#{path}#{sourcesPath}/#{folder}/*.kt")
42
44
  end
43
45
 
44
46
  FileUtils::mkdir_p new_folder_path
@@ -46,10 +48,14 @@ module Fastlane
46
48
  java_sources.each do |file|
47
49
  FileUtils.mv file, new_folder_path
48
50
  end
51
+
52
+ kotlin_sources.each do |file|
53
+ FileUtils.mv file, new_folder_path
54
+ end
49
55
 
50
56
  Bundler.with_clean_env do
51
- sh "find #{path}#{sourcesPath} -name '*.java' -type f -exec sed -i '' 's/#{originalPackageName}/#{packageName}/' {} \\;"
52
- sh "find #{path}#{sourcesPath} -name '*.kt' -type f -exec sed -i '' 's/#{originalPackageName}/#{packageName}/' {} \\;"
57
+ sh "find #{path}#{sourcesPath} -name '*.java' -type f -exec sed -i -e 's/#{originalPackageName}/#{packageName}/' {} +;"
58
+ sh "find #{path}#{sourcesPath} -name '*.kt' -type f -exec sed -i -e 's/#{originalPackageName}/#{packageName}/' {} +;"
53
59
  sh "find #{path}#{gradlePath} -name 'build.gradle' -type f -exec sed -i -e 's/#{originalPackageName}/#{packageName}/' {} +"
54
60
  end
55
61
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module ChangeDomain
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-change_domain
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
  - Anandu