Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ lane :makeReleases do
sh("rm -rf ../release/ && mkdir -p ../release")
gradle(task: 'clean')

disableR8Optimization()

createGenericRelease(versionCode:info["versionCode"])

createGplayRelease(versionCode:info["versionCode"])
Expand Down Expand Up @@ -291,6 +293,14 @@ private_lane :enableLogger do
sh("sed -i s'#<bool name=\"logger_enabled\">true</bool>#<bool name=\"logger_enabled\">false</bool>#' ../app/src/main/res/values/setup.xml")
end

private_lane :disableR8Optimization do
path = "../app/build.gradle.kts"
text = File.read(path)
pattern = /(optimization\s*\{\s*enable\s*=\s*)(true|false)/
UI.user_error!("R8 optimization flag not found in #{path}") unless text.match?(pattern)
File.write(path, text.sub(pattern, "\\1false"))
end

desc "Upload to play store (beta)"
private_lane :uploadToPlaystore_RC do |options|
upload_to_play_store(
Expand Down
Loading