Skip to content

Conversation

daniJimen
Copy link
Contributor

@daniJimen daniJimen commented Sep 4, 2025

API Level 36 Support

  • The SDK now fully supports API level 36, ensuring compatibility with the latest platform features and system behaviors and updated also in example.

@amrgetment
Copy link
Contributor

@navaronbracke it will allow Android sdk target 36 on Flutter 3.35.3

image

@amrgetment
Copy link
Contributor

amrgetment commented Sep 5, 2025

I got issues in other libraries so I used a global fix for all

// Force all Android subprojects to align on the :app module's compileSdk (handles already-evaluated projects)
def applyCompileSdk = { Project p ->
    def appProj = rootProject.findProject(':app')
    if (appProj == null || !appProj.hasProperty('android')) return
    if (!p.hasProperty('android')) return
    if (p.path == appProj.path) return
    try {
        p.android {
            compileSdkVersion appProj.android.compileSdk
        }
    } catch (Throwable ignored) {
        // Swallow if not yet ready
    }
}

subprojects { proj ->
    // If plugin already applied & evaluated, try now
    if (proj.plugins.hasPlugin('com.android.application') || proj.plugins.hasPlugin('com.android.library')) {
        applyCompileSdk(proj)
    }

    // When Android plugin gets applied later
    proj.plugins.withId('com.android.application') { applyCompileSdk(proj) }
    proj.plugins.withId('com.android.library') { applyCompileSdk(proj) }

    // If still not set by end of evaluation, attempt once more
    if (!proj.state.executed) {
        proj.afterEvaluate { applyCompileSdk(proj) }
    } else {
        applyCompileSdk(proj)
    }
}

Copy link
Collaborator

@navaronbracke navaronbracke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is going to need a changelog entry & version bump.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants