Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add application id suffix command #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

futtetennista
Copy link
Contributor

Adds the possibility to append an application id suffix to the current application id. The suffix must start with a '.' character, in order to reflect the way it is declared in the gradle build file.

@mttkay
Copy link
Owner

mttkay commented Nov 29, 2014

Cool! I'm wondering if this could be automatically detected, since there is only ever one suffix active at a time? I would find it annoying to have to set this manually every time, I feel it should be automatic.

@futtetennista
Copy link
Contributor Author

The suffix - if any - depends on the build variant you want to build. So you might want to built the debug one using ./gradlew assembleDebug with a ".debug" suffix and then the release one using ./gradlew assembleRelease for example. That said, I don't see how replicant can easily be aware of it. One way I can think of it being possible is that it could look in the apk folder and identify the latest apk built, parse its name, then parse the app build file to check the config blocks for that variant and determine if there's a suffix defined for it. That's maybe a bit overkill.

Thinking about it, this command isn't so useful after all. It merely saves you some typing (!package "app.debug" vs. !suffix ".debug").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants