-
Notifications
You must be signed in to change notification settings - Fork 333
make this to library project #1012
Comments
Whats your use-case? and why do you need this full fledge project to be a library project/module? |
I am actually in the same boat as Jackson, I am working on an app to help highschool students successfully transition to college and one of the requirements is that I embed Open edX inside of my app. I ran through the usual steps (https://developer.android.com/studio/projects/android-library.html#Convert):
I hit a wall with building my AAR though. |
I may have come across the databinding issue a long time again and I remember needed to recompile my project. https://stackoverflow.com/questions/40440662/databinding-does-not-exist-how-to-solve-it @miankhalid @farhan Any experience on librarification? |
Actually we have almost same requirement as @DevKate. First time we didn't have the requirement in our edx project. So we fully build it as a seperate project. Now we have to include this as a module in our project we tried to recombile this project |
@BenjiLee Nops didn't get a chance to work on librarification so far. |
Same as @farhan in this case. Will have to invest some time into it. |
I've made some progress. Because library resource ids are not constants, I had to remove all A few other changes I made were:
Databinding errors are gone and I am able to generate dev and prod AARs. My current issue is loading those AARs as dependencies from my main application. I used android studio's "Import Module From Library" to add the AAR to my project, but when I included it as a dependency in my application module
My friend suggested I try adding |
@marcotuts FYI |
@DevKate Is this the kind of work that would be ok to open a WIP pull request to get early feedback / comments on? If so we can move discussion to a PR instead of this github issue. . |
Sorry to leave you hanging @marcotuts, PR sounds like a great idea. It sounds like requirements for this project may potentially allow installing the edx dependency as a separate apk, in which case my issue will shift from compiling openedx as a library to interfacing with the openedx apk from my main application. This would likely result in some custom code to handle authentication from the main app when the edx apk is launched, and some changes to the manifest to launch the app at specific activities. The goal is just to allow students to take their classes from our app. Not sure if this would also satisfy @jacksonej's issue. I was thinking of creating a fork for an embeddable version of openedx if my company does opt for this solution instead of librification, unless you'd prefer we make a PR and support this use case from the main project. |
@staubina FYI |
@BenjiLee Thank you for the heads up on this. |
Hi,
How can i make this project into a library project
The text was updated successfully, but these errors were encountered: