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

Added Android support when running a standalone server #381

Closed
wants to merge 9 commits into from

Conversation

britzl
Copy link
Contributor

@britzl britzl commented May 16, 2024

No description provided.

@@ -1 +1 @@
sdk.dir={{android-sdk-root}}
sdk.dir={{sdk-dir}}
Copy link
Contributor

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?

Comment on lines +13 to +14
export ANDROID_ROOT=${HOME}/android
export ANDROID_PROGUARD=${ANDROID_ROOT}/proguard.jar
Copy link
Contributor

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"));
Copy link
Contributor

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.

@ekharkunov
Copy link
Contributor

@britzl May be it can be closed in favor of new splited version of Docker images?

@britzl britzl closed this Oct 3, 2024
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.

3 participants