Skip to content
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

[huawei_location] 6.12.0+302 and 6.12.0+303 didn't compile #375

Open
EArminjon opened this issue May 23, 2024 · 5 comments
Open

[huawei_location] 6.12.0+302 and 6.12.0+303 didn't compile #375

EArminjon opened this issue May 23, 2024 · 5 comments

Comments

@EArminjon
Copy link

EArminjon commented May 23, 2024

Description
Both issue got fixed but both releases didn't compile...

#342
#312
@ozkulbeng please check

Temporary solution :

android/build.gradle

allprojects {
    repositories {
        google()
        mavenCentral()
    }

    configurations.all {
        resolutionStrategy.dependencySubstitution {
            substitute module('org.bouncycastle:bcprov-jdk15on:1.70') with module('org.bouncycastle:bcprov-jdk15to18:1.69')
        }
    }
}

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

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

Expected behavior
It should compile.

Current behavior
It didn't compile.

Logs
Check both issues to see logs.

Environment

  • Platform: Flutter
  • Kit: Location
  • Kit Version: 6.12.0+302
  • OS Version: All Android
@EArminjon
Copy link
Author

UP ?

@EArminjon
Copy link
Author

up ?

@EArminjon EArminjon changed the title 6.12.0+302 didn't compile 6.12.0+302 and 6.12.0+303 didn't compile Sep 20, 2024
@EArminjon
Copy link
Author

Same for 6.12.0+303

Is this package dead ?

@EArminjon EArminjon changed the title 6.12.0+302 and 6.12.0+303 didn't compile [huawei_location] 6.12.0+302 and 6.12.0+303 didn't compile Sep 20, 2024
@EArminjon
Copy link
Author

EArminjon commented Nov 15, 2024

@ozkulbeng please, 6 months :'(

@EArminjon
Copy link
Author

EArminjon commented Nov 15, 2024

With last version of gradle (8) here is the working patch :

allprojects {
    repositories {
        google()
        mavenCentral()
    }
    // https://github.com/HMS-Core/hms-flutter-plugin/issues/375
    configurations.all { c ->
        c.resolutionStrategy.eachDependency { DependencyResolveDetails dependency ->
            if (dependency.requested.group == 'org.bouncycastle') {
                dependency.useTarget "org.bouncycastle:bcprov-jdk15to18:1.69"
            }
        }
    }
}

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

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

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

No branches or pull requests

1 participant