From: David Black Date: Sat, 27 Oct 2012 18:09:15 +0000 (+0100) Subject: three new srclibs: sakura adview, noanalytics and tintbrowseraddon X-Git-Tag: 0.1~714 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6dc293f6393fc83df65ae611ee99d07c9f66ab01;p=fdroidserver.git three new srclibs: sakura adview, noanalytics and tintbrowseraddon --- diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 623cb1bd..7b60cb59 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1211,6 +1211,49 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False): raise BuildException('Error updating ub0rlib project') return sdir + if name == 'JustPlayerPluginsAdView': + sdir = os.path.join(extlib_dir, 'JustPlayerPluginsAdView') + vcs = getvcs('git', + 'https://bitbucket.org/yokmama/just-player-plugins.git', sdir, sdk_path) + vcs.gotorevision(ref) + libdir = os.path.join(sdir, 'AdView') + if subprocess.call([os.path.join(sdk_path, 'tools', 'android'), + 'update', 'project', '-p', + libdir]) != 0: + raise BuildException('Error updating JustPlayerPluginsAdview project') + if basepath: + return sdir + return libdir + + if name == 'NoAnalytics': + sdir = os.path.join(extlib_dir, 'NoAnalytics') + vcs = getvcs('git', + 'https://github.com/mar-v-in/NoAnalytics.git', sdir, sdk_path) + vcs.gotorevision(ref) + libdir = os.path.join(sdir, 'NoAnalytics') + pp = open(os.path.join(libdir, 'project.properties'), 'w') + pp.write('android.library=true\n') + pp.write('target=android-16\n') + pp.close() + if subprocess.call([os.path.join(sdk_path, 'tools', 'android'), + 'update', 'project', '-p', + libdir]) != 0: + raise BuildException('Error updating NoAnalytics project') + if basepath: + return sdir + return libdir + + if name == 'TintAddon': + sdir = os.path.join(extlib_dir, 'TintAddon') + vcs = getvcs('git', + 'https://github.com/Anasthase/TintBrowserAddonFrameworkLibrary.git', sdir, sdk_path) + vcs.gotorevision(ref) + if subprocess.call([os.path.join(sdk_path, 'tools', 'android'), + 'update', 'project', '-p', + sdir]) != 0: + raise BuildException('Error updating TintAddon project') + return sdir + raise BuildException('Unknown srclib ' + name)