Custom package names

176 views
Skip to first unread message

Hossein Amerkashi

unread,
Jun 18, 2017, 7:59:37 AM6/18/17
to app-inventor-o...@googlegroups.com
I'm trying to allow for custom package names.

Assuming that we know steps for adding new Screen1 TEXT property (e.g. PackageName), does anyone know what else needs to be done to override the appinventor.ai_ with the user specified PackageName, e.g. com.example? 

Evan W. Patton

unread,
Jun 18, 2017, 7:20:11 PM6/18/17
to app-inventor-o...@googlegroups.com
Hi Hossein,

Assuming you want to allow the user to customize the path after project creation, you will have to update the ProjectBuilder and Compiler objects in build server. When the project service creates a project, the internal structure will reflect the default App Inventor package. In the build server you will want to adjust the directory names under src/ once the bundle from the app engine instance is extracted to its temporary directory prior to the Kawa compilation. From there the build ought to proceed as normal if memory serves. 

Evan

On Jun 18, 2017, at 07:59, Hossein Amerkashi <kkas...@gmail.com> wrote:

I'm trying to allow for custom package names.

Assuming that we know steps for adding new Screen1 TEXT property (e.g. PackageName), does anyone know what else needs to be done to override the appinventor.ai_ with the user specified PackageName, e.g. com.example? 

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-so...@googlegroups.com.
To post to this group, send email to app-inventor-o...@googlegroups.com.
Visit this group at https://groups.google.com/group/app-inventor-open-source-dev.
For more options, visit https://groups.google.com/d/optout.

Hossein Amerkashi

unread,
Jun 18, 2017, 7:58:22 PM6/18/17
to app-inventor-o...@googlegroups.com
Thanks for your response Evan.
Will check into it.



On Jun 18, 2017 7:20 PM, "Evan W. Patton" <ewpa...@gmail.com> wrote:
Hi Hossein,

Assuming you want to allow the user to customize the path after project creation, you will have to update the ProjectBuilder and Compiler objects in build server. When the project service creates a project, the internal structure will reflect the default App Inventor package. In the build server you will want to adjust the directory names under src/ once the bundle from the app engine instance is extracted to its temporary directory prior to the Kawa compilation. From there the build ought to proceed as normal if memory serves. 

Evan

On Jun 18, 2017, at 07:59, Hossein Amerkashi <kkas...@gmail.com> wrote:

I'm trying to allow for custom package names.

Assuming that we know steps for adding new Screen1 TEXT property (e.g. PackageName), does anyone know what else needs to be done to override the appinventor.ai_ with the user specified PackageName, e.g. com.example? 

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-source-dev+unsub...@googlegroups.com.
To post to this group, send email to app-inventor-open-source-dev@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-source-dev+unsub...@googlegroups.com.
To post to this group, send email to app-inventor-open-source-dev@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages