1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 18:50:11 +02:00

Add srclibs for Color-Picker and another one and

change viewpager repo
This commit is contained in:
David Black 2012-09-16 20:50:24 +01:00
parent 813823b6a9
commit 2c34f5494a

View File

@ -709,16 +709,29 @@ def getsrclib(spec, extlib_dir, sdk_path):
raise BuildException('Error updating ActionBarSherlock project')
return libdir
if name == 'Amazing-ListView':
sdir = os.path.join(extlib_dir, 'Amazing-ListView')
vcs = getvcs('git-svn',
'http://android-amazing-listview.googlecode.com/svn/trunk', sdir, sdk_path)
vcs.gotorevision(ref)
libdir = os.path.join(sdir, 'AmazingListView')
if subprocess.call([os.path.join(sdk_path, 'tools', 'android'),
'update', 'project', '-p',
libdir]) != 0:
raise BuildException('Error updating Amazing-ListView project')
return libdir
if name == 'ViewPagerIndicator':
sdir = os.path.join(extlib_dir, 'ViewPagerIndicator')
vcs = getvcs('git',
'https://github.com/mariotaku/viewpagerindicator.git', sdir, sdk_path)
'https://github.com/JakeWharton/Android-ViewPagerIndicator.git', 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',
sdir]) != 0:
raise BuildException('Error updating ViewPagerIndicator project')
return sdir
libdir]) != 0:
raise BuildException('Error updating Android-ViewPagerIndicator project')
return libdir
if name == 'UITableView':
sdir = os.path.join(extlib_dir, 'UITableView')
@ -807,6 +820,17 @@ def getsrclib(spec, extlib_dir, sdk_path):
raise BuildException("Maven build failed for BitcoinJWallet srclib")
return sdir
if name == 'Android-Color-Picker':
sdir = os.path.join(extlib_dir, 'Color-Picker')
vcs = getvcs('git',
'https://github.com/brk3/android-color-picker.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 Color-Picker project')
return sdir
raise BuildException('Unknown srclib ' + name)