VaibhavCodeClub / learn

Learning app for kids
MIT License
81 stars 81 forks source link

CI/CD pipeline / GitHub action #30

Open sapatevaibhav opened 1 month ago

sapatevaibhav commented 1 month ago

Implement a simple dart CI/CD pipeline which will run after every push to the main branch...

hariram4862 commented 1 month ago

i would like to contribute.. can u pls assign it to me?? I am working on #8 .. i will probably complete that by tonight..

hariram4862 commented 1 month ago

@sapatevaibhav Forked Repo Link.. I have tried almost 16 times with different version of kotlin, but I am stuck with this. It shows expected kotlin version is different. I have referred all internet stuffs, but unable to solve that. Pls help me out.

sapatevaibhav commented 1 month ago

Yes the issue is only causing at the time of release build. Try updating flutter_packages

flutter pub get
flutter pub outdated
flutter pub upgrade --major-versions

and then try the workflow...

hariram4862 commented 1 month ago

ok

hariram4862 commented 1 month ago

Yes the issue is only causing at the time of release build. Try updating flutter_packages

flutter pub get
flutter pub outdated
flutter pub upgrade --major-versions

and then try the workflow...

i have tried this... but this isn't working... i am getting this error.. i tried with all possible versions of kotlin and other flutter packages, it isn't working.... but the app is getting built locally on AVD... but not in workflow.. Screenshot 2024-05-12 112050

sapatevaibhav commented 1 month ago

Give a try to 1.9.0

buildscript {
    ext.kotlin_version = '1.9.0'
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

it compiled for me image If nothing changes let me know.

hariram4862 commented 1 month ago

You did this with ur repo or with my forked one ?

sapatevaibhav commented 1 month ago

The latest one pull first then try.

hariram4862 commented 1 month ago

Can u pls share the code of android/build.gradle , android/app/build.gradle, android/settings.gradle ? Of the one which u recently used (successfully built one)... I tried with ur current repository and mine ...It's not working.. again showing error that it is incompatible kotlin version..

sapatevaibhav commented 1 month ago

Take a look at My workflow The error is not related to kotlin it is related to StoreFile. (Kotlin warnings are few and have no impact on pipeline termination). Last option.....

sapatevaibhav commented 1 month ago

If nothing changes build simple pipeline without release.

hariram4862 commented 1 month ago

@sapatevaibhav Hi. I have sem exams this week. Probably, I will continue contributing from 21st may. So, I kindly request you to hold me as assignee.

Thank you.

samarsajad commented 1 month ago

@sapatevaibhav can you please assign me this issue under GSSOC 2024

sapatevaibhav commented 1 month ago

@hariram4862 are you done with exams. ;-)

hiranj-kotak commented 1 month ago

Hey @sapatevaibhav as hariram is not showing up. Can you pls assign this issue to me .