diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 18c593d7..72d98d28 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1785,6 +1785,20 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False): vcs.gotorevision(ref) return sdir + if name == 'ShowCase-Androzic': + sdir = os.path.join(extlib_dir, 'ShowCase-Androzic') + vcs = getvcs('git', + 'https://github.com/andreynovikov/ShowcaseView', sdir, sdk_path) + vcs.gotorevision(ref) + libdir = os.path.join(sdir, 'library') + if subprocess.call([os.path.join(sdk_path, 'tools', 'android'), + 'update', 'project', '-p', + libdir]) != 0: + raise BuildException('Error updating ShowCase project') + if basepath: + return sdir + return libdir + raise BuildException('Unknown srclib ' + name)