Skip to content

Add application id suffix command#35

Open
futtetennista wants to merge 1 commit into
mttkay:masterfrom
futtetennista:feature/appication_id_suffix
Open

Add application id suffix command#35
futtetennista wants to merge 1 commit into
mttkay:masterfrom
futtetennista:feature/appication_id_suffix

Conversation

@futtetennista

Copy link
Copy Markdown

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

mttkay commented Nov 29, 2014

Copy link
Copy Markdown
Owner

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
Copy Markdown
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