diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 1e296ac4..30a32faa 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -898,6 +898,20 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False): return sdir return libdir + if name == 'Google-Gson': + sdir = os.path.join(extlib_dir, 'Google-Gson') + vcs = getvcs('git-svn', + 'http://google-gson.googlecode.com/svn/trunk', sdir, sdk_path) + vcs.gotorevision(ref) + libdir = os.path.join(sdir, 'gson') + if subprocess.call([os.path.join(sdk_path, 'tools', 'android'), + 'update', 'project', '-p', + libdir]) != 0: + raise BuildException('Error updating Google-Gson project') + if basepath: + return sdir + return libdir + if name == 'Amazing-ListView': sdir = os.path.join(extlib_dir, 'Amazing-ListView') vcs = getvcs('git-svn',