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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b98fdf5748f133a42d024d4a9e0638e05f9a451914046aa351b398d246dd3e0a
|
4
|
+
data.tar.gz: 35d6aaf170f8790c4a21578e50d4015a29d10460b9c51cb034400d02de3d824b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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}
|
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}
|
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
|
-
|
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
|
|