AndroidTDDBootStrap icon indicating copy to clipboard operation
AndroidTDDBootStrap copied to clipboard

How to rename application namespace

Open heralight opened this issue 9 years ago • 6 comments

Hi!! Great job! I had begin to test your bootstrap, but now, I want to rename your bootstrap to my target application name and namespace. Have you a tool like https://github.com/AndroidBootstrap/android-bootstrap-site/blob/master/routes/generate.js or something like yeoman generator ?

Thank you,

Alexandre

heralight avatar Nov 30 '15 11:11 heralight

@heralight Sorry that there is no such a tool now, I hope I could make it later. I think a gradle plugin that could remake the namespace with little configuration maybe helpful, and if you are interested in it, your contribution is welcome!

Piasy avatar Nov 30 '15 13:11 Piasy

A better way to go about it might be to

  • Reconstruct the parts of the code (common, common android, gradle dependencies, etc.) as a generic base with its own packages and possibly git repo
  • Move github related code entirely to be what it is which is a sample project

I'm thinking about this not to make this into a gradle library but more to enable tracking changes and updates to the base. Now it can only be done by looking at git diffs :(

Btw, I have to add that I truly admire your work and prefer it much over so-called frameworks which require you to re-learn/do/invent most things. I think this is the right way to go, and possibly it becomes a modular framework in the future built on the great works of inner parts and making them work together.

SandNerd avatar Dec 13 '15 22:12 SandNerd

@sahal2080 Nice comment! I think your way sounds very good. But several things need to be done:

  • Remove some experimental and meaningless code, which is added during my PoC works, and I admit that it's really really bad practice.
  • Think carefully what code has common use, and move them into common or common-android module, and move those application specific code out from common and common-android.
  • Split this repo into two repos: common and app, all application code should be move into app.

Piasy avatar Dec 14 '15 03:12 Piasy

@sahal2080 Hi, after months of delay, finally I have finished the refactor of this project, now the so called architecture code, base classes, best practices are moved into the base module, and all business(github) related code are in model and app module.

@heralight I think we could create an Idea plugin that change the namespace of business related code, and further more, an Idea plugin that could generate MVP boilerplate code.

Piasy avatar Mar 11 '16 08:03 Piasy

@Piasy I see you updated all dependencies too, great work :+1:

I actually wanted to contribute and help myself here but this bootstrap problem have been haunting me for long I went on a journey researching all current Android RAD tools and frameworks. I of course included your project since it's still one of my favorites :smile: : http://andyonwheels.github.io/Android-Native-Frameworks-Review/

Tbh, your project specifically made me think that there might be a solution for these scattered efforts. I'm now trying to gauge developers' interest in having/building something on a bigger scale through this survey . I'd be thrilled if you can take a look at it and more so if you can leave any email there so I can privately share with you how AndroidTDDBootStrap can be the basis of something bigger.

SandNerd avatar Mar 11 '16 21:03 SandNerd

@sahal2080 Sounds great! My email is [email protected], waiting for your sharing :)

Piasy avatar Mar 12 '16 05:03 Piasy