From fbfca2fa83de23cddd3f0f0d2793752448d0ab2e Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Wed, 4 Nov 2026 10:07:41 +0100 Subject: [PATCH] further Fastlane Signed-off-by: tobiasKaminsky --- fastlane/Fastfile | 44 +++++----------------------------------- fastlane/common.Fastfile | 5 ----- 2 files changed, 5 insertions(+), 44 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 99d7d088c..ba203908c 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -27,44 +27,10 @@ GRADLE_SIGNING_PROPERTIES = { import("./common.Fastfile") -platform :android do - desc "Release previously built app to Google Play and create tag" - lane :releasePhase2 do - versionInfo = getVersionInfo() - versionComponents = parseVersionCode(versionInfo) - checkReleasable(versionComponents) - storeTrack = getPlayStoreTrack(versionComponents) - tagName = getTagName(versionComponents) - preReleaseChecks(versionInfo: versionInfo, tagName: tagName, type: versionComponents["type"], track: storeTrack) - checkArtifactsExist() - tag(name: tagName) - createGithubRelease(name: versionInfo["versionName"], tag: tagName, versionCode: versionInfo["versionCode"]) - uploadToPlayStore(track: storeTrack) - end - - desc "Show versions and prompt for confirmation" - private_lane :preReleaseChecks do |options| - versionInfo = options[:versionInfo] - tagName = options[:tagName] - currentBranch = git_branch() - text = "Version code: #{versionInfo["versionCode"]}\n" + - "Version name: #{versionInfo["versionName"]}\n" + - "Current branch: #{currentBranch}\n" + - "Version type: #{options[:type]}\n" + - "Tag: #{tagName}\n" + - "Track: #{options[:track]}" - promptYesNo(text: text) - end - - private_lane :createGithubRelease do |options| - set_github_release( - repository_name: REPO, - api_token: ENV["FASTLANE_NEXTCLOUD_GITHUB_API_TOKEN"], - name: options[:name], - tag_name: options[:tag], - description: (File.read("metadata/android/en-US/changelogs/" + options[:versionCode] + ".txt") rescue "No changelog provided"), - upload_assets: Dir.glob("release/*.apk") - ) - end +desc "Run tests" +private_lane :test do + gradle(task: "clean testGplayDebugUnitTest testGenericDebugUnitTest testDevDebugUnitTest testQaDebugUnitTest") +end +private_lane :repoSpecificChecks do |options| end diff --git a/fastlane/common.Fastfile b/fastlane/common.Fastfile index 4027e3b6e..9dae3f1c1 100644 --- a/fastlane/common.Fastfile +++ b/fastlane/common.Fastfile @@ -228,11 +228,6 @@ platform :android do UI.user_error!("Version is not releasable: #{versionComponents["type"]}") end end - - desc "Run tests" - private_lane :test do - gradle(task: "clean testGplayDebugUnitTest testGenericDebugUnitTest testQaDebugUnitTest") - end desc "Build app bundle" private_lane :buildBundle do