ImranR98 / Obtainium

Get Android app updates straight from the source.
https://obtainium.imranr.dev
GNU General Public License v3.0
8.1k stars 176 forks source link

build of v1.1.30 fails claiming outdated Kotlin Gradle plugin #1974

Open IzzySoft opened 5 hours ago

IzzySoft commented 5 hours ago

I've tried to build Obtainium from source to check for Reproducible Builds, but the build failed:

BUILD FAILED in 7m 35s
Running Gradle task 'assembleRelease'...                          456.5s

┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project requires a newer version of the Kotlin Gradle plugin.                       │
│ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then   │
│ update the                                                                                   │
│ version number of the plugin with id "org.jetbrains.kotlin.android" in the plugins block of  │
│ /home/runner/work/Obtainium/Obtainium/android/settings.gradle.                               │
│                                                                                              │
│ Alternatively (if your project was created before Flutter 3.19), update                      │
│ /home/runner/work/Obtainium/Obtainium/android/build.gradle                                   │
│ ext.kotlin_version = '<latest-version>'                                                      │
└──────────────────────────────────────────────────────────────────────────────────────────────┘
Gradle task assembleRelease failed with exit code 1

Build recipe used, orienting on your .github workflow:

build:
  - sed -r '/signingConfigs.release/d' -i android/app/build.gradle
  - export PUB_CACHE=$(pwd)/.pub-cache
  - .flutter/bin/flutter config --no-analytics
  - .flutter/bin/flutter pub get
  - .flutter/bin/flutter build apk --release --split-per-abi --target-platform="android-arm"

Did I get something wrong – or do you have a clue what might need fixing? Thanks in advance!

ImranR98 commented 2 hours ago

Hmm, not sure what changed - I haven't modified anything related to the build. I see that F-Droid does have the latest version so it looks like they were able to create a reproducible build.