-
Notifications
You must be signed in to change notification settings - Fork 19
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
Added Android support when running a standalone server #381
Conversation
@@ -1 +1 @@ | |||
sdk.dir={{android-sdk-root}} | |||
sdk.dir={{sdk-dir}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name of this file is a bit anonymous.
Perhaps add some "gradle" to the name?
export ANDROID_ROOT=${HOME}/android | ||
export ANDROID_PROGUARD=${ANDROID_ROOT}/proguard.jar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess these variables should be in server/scripts/standalone/service-standalone.sh
?
String contents = templateExecutor.execute(gradlePropertiesTemplateContents, envContext); | ||
Files.write(gradlePropertiesFile.toPath(), contents.getBytes()); | ||
} | ||
|
||
private void createLocalPropertiesFile(File localPropertiesFile, Map<String, Object> jobEnvContext) throws IOException { | ||
HashMap<String, Object> envContext = new HashMap<>(); | ||
envContext.put("android-sdk-root", jobEnvContext.get("env.ANDROID_SDK_ROOT")); | ||
envContext.put("sdk-dir", jobEnvContext.get("env.ANDROID_HOME")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather have "android-home" instead?
Better for readability/discoverability imho.
@britzl May be it can be closed in favor of new splited version of Docker images? |
No description provided.