How can i setup gallery on localhost version

I want to setup gallery on my own version of app inventor locally. I set the galleryEnabled to true but i get "Gallery Not Properly Configured" error. is there any document i can refer to setup gallery?

The gallery code isn't part of the open source system. However, entry into App Inventor from the gallery code is, and is handled in YoungAndroidProjectService#loadFromGallery.

@ewpatton
I put an aia file in the static folder of appengine and changed the getUrlContents url to that static file's url, then, build the project. when i open any link like localhost:8888/?ng= it should load the aia file but instead gives com.google.protobuf.InvalidProtocolBufferException probably in the line

GalleryProtobuf.content content = GalleryProtobuf.content.parseFrom(responseContent);

Note: I verified that static file can be accessed at localhost:8888/static/file.aia

any idea what could be the reason?

The first step in the process loads a protobuf, which may include the project as its contents if it is small enough otherwise it provides a URL to load from. I think rather than working around the lack of software, it might be better to patch verifyProjectName() and replace any spaces with underscores, and then we can test the PR from our end.

Thanks. Did the PR.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.