-
Notifications
You must be signed in to change notification settings - Fork 333
Lint issues on building for release #1653
Comments
Hi @Ian2012 I think you are on a master branch. And I faced same issue while trying to build prod release. I assume what's happening here is we are taking a big leap in this app and this might have caused due to upgrade in kotlin so what i did is i added null safe asserted on all of this declaration. How do you do that? Go to the precise location mentioned in log and add !! as below _errorMessage.value = null!! Or _courseDates.postValue(result.data!!) instead _errorMessage.value = null or _courseDates.postValue(result.data). I am assuming this is safe for now because if you look at the code it checks if(x) = !null However the biggest challenge i find with this master branch is it takes to long to build the project. Shouldn't we be considering to improve these challanges? Like for eg. The build transforms classes with newrelic as well as firebase performance plugin. Anyways I hope it helps or may be the another way to do it is use version 3.1.0 and make few changes that you need to as the versions are tested and trusted and that's what is being used by the edx.org's official application. |
@mini-school Thanks for your comments. I tried to change the version but unfortunately the same error appear and the version was the same. For me it works if I use the menu Build > Build variants > Bundle (something like that). It works for every variant (prodDebugable, prodRelease, ...) I also added a null checking on every part the error appear, but then the command show the message "Build successfully" but no file was generated. I really think I was doing something wrong. And yes, I was using the master branch. Btw, can we work on improve the documentation to build the Android app? I'm working on a general guide so anyone can follow it. The objective is to avoid common or simple errors to new people. Any comments or guide you already have would be helpful. Thanks in advance |
Where are you changing version? I would say download a tag/release 3.1.0 from the repository. Use this link https://github.com/openedx/edx-app-android/releases/tag/release%2F3.1.0 Make the changes needed and you will be able to build without a problem😊 |
The issue is resolved as part of the Release 3.1.4 (latest). ✨ |
When I run
./gradlew assembleProdRelease
I get the following errors:The last commit I'm using is this
The text was updated successfully, but these errors were encountered: