fastlane-plugin-change_domain 0.1.5 → 0.1.9

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: dd9bb9636d6f1c79caa3216d622928d5244d713b3b6f3145054ab6494478f88d
4
- data.tar.gz: b29668e47d7d8767f78f5ea00bf7db829e8656e41343a1077226dd5e771f6569
3
+ metadata.gz: b98fdf5748f133a42d024d4a9e0638e05f9a451914046aa351b398d246dd3e0a
4
+ data.tar.gz: 35d6aaf170f8790c4a21578e50d4015a29d10460b9c51cb034400d02de3d824b
5
5
  SHA512:
6
- metadata.gz: 55f97e2cdc691364898f92ed9b293ac6a487ac044b2f4c7a6dc497bf44b4f51e26d237ee27f01097a19c31852bd9d437f1975c919c18d7b0e77c5bc69666b9e9
7
- data.tar.gz: f2fa8c05665e4933c491ec98a6268e31053dabac98f0771bd068ee401ad8c253a8f5beb44b67e7bbee916f2a5f4afe1eab57b144cfd02761f8b15bb49e318514
6
+ metadata.gz: 65ed3345ea9b9a48355d06b93833a899a288f8821f7bb92c5d9b9d414603714f462cf5b23453b8e7dbca6d94058822a2836642f223634268bc9832179b96c70c
7
+ data.tar.gz: dd9fdd5da688856d05f95ce6cfcdc97e131f227f386d6c31280e66c6cd3582b2cc9532826ab93b41ce9f5c0603a74100d9b327afb4a4143963a7d5672bbad88e
@@ -33,12 +33,14 @@ module Fastlane
33
33
  sourcesPath = "/app/src"
34
34
  gradlePath = "/app"
35
35
  new_folder_path = "#{path}#{sourcesPath}/main/java/#{new_folder}"
36
- java_sources = Dir.glob("#{path}#{sourcesPath}/main/java/#{folder}/*.java")
36
+ java_sources = Dir.glob("#{path}#{sourcesPath}/main/java/#{folder}/**.java")
37
+ kotlin_sources = 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
- java_sources = Dir.glob("#{path}#{sourcesPath}/#{folder}/*.java")
42
+ java_sources = Dir.glob("#{path}#{sourcesPath}/#{folder}/**.java")
43
+ kotlin_sources = Dir.glob("#{path}#{sourcesPath}/#{folder}/**.kt")
42
44
  end
43
45
 
44
46
  FileUtils::mkdir_p new_folder_path
@@ -46,10 +48,15 @@ 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
-
52
- sh "find #{path}#{gradlePath} -name 'build.gradle' -type f -exec sed -i -e '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}/' {} +;"
59
+ sh "find #{path}#{gradlePath} -name 'build.gradle' -type f -exec sed -i -e 's/#{originalPackageName}/#{packageName}/' {} +"
53
60
  end
54
61
  end
55
62
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module ChangeDomain
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.9"
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.5
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anandu