Skip to content

🚀 Enhancement: flutter_web_auth_2: 3.1.2 is outdated #238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
eK14u opened this issue Jan 20, 2025 · 3 comments
Open
2 tasks done

🚀 Enhancement: flutter_web_auth_2: 3.1.2 is outdated #238

eK14u opened this issue Jan 20, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@eK14u
Copy link

eK14u commented Jan 20, 2025

🔖 Enhancement description

On Android Studio: Ladybug Feature Drop 2024.2.2

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':flutter_web_auth_2:processDebugAndroidTestManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [androidx.fragment:fragment:1.7.1] /home/erdenebayar/.gradle/caches/8.10.2/transforms/a60aefae1655084d603380a2edcd83ce/transformed/fragment-1.7.1/AndroidManifest.xml as the library might be using APIs not available in 16
  	Suggestion: use a compatible library with a minSdk of at most 16,
  		or increase this project's minSdk version to at least 19,
  		or use tools:overrideLibrary="androidx.fragment" to force usage (may lead to runtime failures)
app/build.gradle

plugins {
    id "com.android.application"
    id "kotlin-android"
    // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
    id "dev.flutter.flutter-gradle-plugin"
}

android {
    namespace = "com.example.test3"
    compileSdk = flutter.compileSdkVersion
    ndkVersion = "27.0.12077973"

    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_21
        targetCompatibility = JavaVersion.VERSION_21
    }

    kotlinOptions {
        jvmTarget = JavaVersion.VERSION_21
    }

    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId = "com.example.test3"
        // You can update the following values to match your application needs.
        // For more information, see: https://flutter.dev/to/review-gradle-config.
        minSdk = flutter.minSdkVersion
        targetSdk = flutter.targetSdkVersion
        versionCode = flutter.versionCode
        versionName = flutter.versionName
    }

    buildTypes {
        release {
            // TODO: Add your own signing config for the release build.
            // Signing with the debug keys for now, so `flutter run --release` works.
            signingConfig = signingConfigs.debug
        }
    }
}

flutter {
    source = "../.."
}

gradle/wrapper/gradle-wrapper.properties

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip

build.gradle

buildscript {
    gradle.startParameter.excludedTaskNames.addAll(
            gradle.startParameter.taskNames.findAll { it.contains("testClasses") }
    )
}

allprojects {
    repositories {
        google()
        mavenCentral()
    }
}

rootProject.buildDir = "../build"
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(":app")
}

tasks.register("clean", Delete) {
    delete rootProject.buildDir
}

settings.gradle

pluginManagement {
    def flutterSdkPath = {
        def properties = new Properties()
        file("local.properties").withInputStream { properties.load(it) }
        def flutterSdkPath = properties.getProperty("flutter.sdk")
        assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
        return flutterSdkPath
    }()

    includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")

    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
    }
}

plugins {
    id "dev.flutter.flutter-plugin-loader" version "1.0.0"
    id "com.android.application" version '8.8.0' apply false
    id "org.jetbrains.kotlin.android" version "2.0.20" apply false
}

include ":app"

Flutter doctor

/home/erdenebayar/Dev/flutter_linux_3.27.2-stable/flutter/bin/flutter doctor --verbose
[!] Flutter (Channel stable, 3.27.2, on Ubuntu 24.04.1 LTS 6.8.0-51-generic, locale en_US.UTF-8)
• Flutter version 3.27.2 on channel stable at /home/erdenebayar/Dev/flutter_linux_3.27.2-stable/flutter
! The flutter binary is not on your path. Consider adding /home/erdenebayar/Dev/flutter_linux_3.27.2-stable/flutter/bin to your path.
! The dart binary is not on your path. Consider adding /home/erdenebayar/Dev/flutter_linux_3.27.2-stable/flutter/bin to your path.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 68415ad1d9 (7 days ago), 2025-01-13 10:22:03 -0800
• Engine revision e672b006cb
• Dart version 3.6.1
• DevTools version 2.40.2
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
• Android SDK at /home/erdenebayar/Android/Sdk
• Platform android-35, build-tools 35.0.1
• Java binary at: /home/erdenebayar/.local/share/JetBrains/Toolbox/apps/android-studio/jbr/bin/java
• Java version OpenJDK Runtime Environment (build 21.0.4+-12422083-b607.1)
• All Android licenses accepted.

[✓] Chrome - develop for the web
• Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
• Ubuntu clang version 18.1.3 (1ubuntu1)
• cmake version 3.28.3
• ninja version 1.11.1
• pkg-config version 1.8.1

[✓] Android Studio (version 2024.2)
• Android Studio at /home/erdenebayar/.local/share/JetBrains/Toolbox/apps/android-studio
• Flutter plugin version 83.0.3
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.4+-12422083-b607.1)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.3)
• IntelliJ at /home/erdenebayar/Dev/idea-IU-221.5787.30
• Flutter plugin version 82.2.4
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.81.1)
• VS Code at /usr/share/code
• Flutter extension version 3.102.0

[✓] Connected device (3 available)
• SM P615 (mobile) • R52NA0NJWMW • android-arm64 • Android 13 (API 33)
• Linux (desktop) • linux • linux-x64 • Ubuntu 24.04.1 LTS 6.8.0-51-generic
• Chrome (web) • chrome • web-javascript • Google Chrome 131.0.6778.139

[✓] Network resources
• All expected network resources are available.

! Doctor found issues in 1 category.

🎤 Pitch

Update flutter_web_auth_2: 3.1.2 to ^4.1.0

name: appwrite
version: x.x.x
description: Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API
homepage: https://appwrite.io
repository: https://github.com/appwrite/sdk-for-flutter
issue_tracker: https://github.com/appwrite/sdk-generator/issues
documentation: https://appwrite.io/support
platforms:
  android:
  ios:
  linux:
  macos:
  web:
  windows:
environment:
  sdk: '>=2.17.0 <4.0.0'

dependencies:
  flutter:
    sdk: flutter
  flutter_web_auth_2: ^4.1.0

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@eK14u eK14u added the enhancement New feature or request label Jan 20, 2025
@DH-555
Copy link
Member

DH-555 commented Jan 25, 2025

Hello! I recommend moving this to this repo: https://github.com/appwrite/sdk-for-flutter/issues

@DH-555 DH-555 added bug Something isn't working and removed enhancement New feature or request labels Jan 25, 2025
@stnguyen90 stnguyen90 transferred this issue from appwrite/appwrite Jan 30, 2025
@lishaduck
Copy link

~Duplicate of #214?

@stnguyen90
Copy link
Contributor

~Duplicate of #214?

@lishaduck I think we'll leave #214 specifically for WASM. This issue will be for this flutter_web_auth_2 issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants