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

Package library as jar #4

Open
ghost opened this issue Mar 26, 2012 · 2 comments
Open

Package library as jar #4

ghost opened this issue Mar 26, 2012 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 26, 2012

With a couple of very small tweaks I believe that the sdk could be distributed as a pre-packaged JAR file, rather than an eclipse project. All it would take is the conversion of the (Very simple) single XML layout file into java code (below), and the source code could then be compiled into a JAR file.

LinearLayout layout = new LinearLayout(this);
layout.setOrientation(LinearLayout.VERTICAL);
layout.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
mLoginWebView = new WebView(this);
mLoginWebView.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
layout.addView(mLoginWebView);
setContentView(layout);

plus the removal of the lines
mLoginWebView = (WebView)findViewById....
and
setContentView(R.layout....
@RicoYao
Copy link

RicoYao commented Mar 26, 2012

Hey blacswann, we anticipate that we could have other layouts go into this library as we build out other features that we want developers to be able to take advantage of. As you say, the box_authentication layout is very simple and easy to replicate with Java code, but other layouts we add may not be.

As a follow up question to you though, is there a particular reason you wanted it as a jar? We've always found the library project mechanism to be a very convenient way to distribute our SDK, especially as Google continues to improve support for library projects with each ADT release.

@vbresan
Copy link

vbresan commented Jun 1, 2012

I would also prefer to have the SDK as a JAR file. The main reason is ease of integration. It's much more convenient to add a JAR file to library path in just a few clicks. Now I first have to install the git plugin, than pull the source code, than ...

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

No branches or pull requests

2 participants