elif vcstype == 'git-svn':
return vcs_gitsvn(remote, local)
elif vcstype == 'hg':
- return vcs_hg(remote,local)
+ return vcs_hg(remote, local)
elif vcstype == 'bzr':
- return vcs_bzr(remote,local)
+ return vcs_bzr(remote, local)
+ elif vcstype == 'srclib':
+ return vcs_srclib(remote, local)
raise VCSException("Invalid vcs type " + vcstype)
class vcs:
self.remote = remote
self.local = local
self.refreshed = False
+ self.srclib = None
# Take the local repository to a clean version of the given revision, which
# is specificed in the VCS's native format. Beforehand, the repository can
def initsubmodules(self):
raise VCSException('Submodules not supported for this vcs type')
+ # Returns the srclib (name, path) used in setting up the current
+ # revision, or None.
+ def getsrclib(self):
+ return self.srclib
+
class vcs_git(vcs):
# If the local directory exists, but is somehow not a git repository, git
cwd=self.local) != 0:
raise VCSException("Bzr revert failed")
+class vcs_srclib(vcs):
+
+ def gotorevision(self, rev):
+
+ # Yuk...
+ extlib_dir = 'build/extlib'
+
+ if os.path.exists(self.local):
+ shutil.rmtree(self.local)
+
+ if self.remote.find(':') != -1:
+ srclib, path = self.remote.split(':')
+ else:
+ srclib = self.remote
+ path = None
+ libdir = getsrclib(srclib + '@' + rev, extlib_dir)
+ self.srclib = (srclib, libdir)
+ if path:
+ libdir = os.path.join(libdir, path)
+ shutil.copytree(libdir, self.local)
+ return self.local
+
# Get the type expected for a given metadata field.
def metafieldtype(name):
# Get the specified source library.
# Returns the path to it.
+# TODO: These are currently just hard-coded in this method. It will be a
+# metadata-driven system eventually, but not yet.
def getsrclib(spec, extlib_dir):
name, ref = spec.split('@')
raise BuildException('Error updating FacebookSDK project')
return libdir
+ if name == 'OI':
+ sdir = os.path.join(extlib_dir, 'OI')
+ vcs = getvcs('git-svn',
+ 'http://openintents.googlecode.com/svn/trunk/', sdir)
+ vcs.gotorevision(ref)
+ return sdir
raise BuildException('Unknown srclib ' + name)
for lib in build['srclibs'].split(';'):
name, _ = lib.split('@')
srclibpaths.append((name, getsrclib(lib, extlib_dir)))
+ basesrclib = vcs.getsrclib()
+ # If one was used for the main source, add that too.
+ if basesrclib:
+ srclibpaths.append(basesrclib)
# Run a pre-build command if one is required...
if build.has_key('prebuild'):
# work on devices anyway, it would inherit either nothing, or the wrong thing!
# Ref: http://groups.google.com/group/android-developers/browse_thread/thread/550fce9670530d9b
Build Version:1.6.3,102,612aae755a82008f44a6,encoding=utf-8,extlibs=commons-io/commons-io-2.0.1.jar;guava-r08/guava-r08.jar,prebuild=sed -i "s@parent=\"android:WindowTitleBackground\"@@" res/values/styles.xml
-
Build Version:1.7.2,110,fec08e34a157a3e0b455,encoding=utf-8,extlibs=commons-io/commons-io-2.0.1.jar;guava-r08/guava-r08.jar,prebuild=sed -i "s@parent=\"android:WindowTitleBackground\"@@" res/values/styles.xml
-
Build Version:1.7.3,115,!a08cab7e66c70e7b0f5c but wrong version code in repo
-
Build Version:1.8.0,120,899e4b957e512bf55254,encoding=utf-8,extlibs=commons-io/commons-io-2.0.1.jar;guava-r08/guava-r08.jar,prebuild=sed -i "s@parent=\"android:WindowTitleBackground\"@@" res/values/styles.xml
-
Build Version:1.8.1,121,b5f637bbb301aa2fe997c9f3367cfb144d158633,encoding=utf-8,extlibs=commons-io/commons-io-2.0.1.jar;guava-r08/guava-r08.jar,prebuild=sed -i "s@parent=\"android:WindowTitleBackground\"@@" res/values/styles.xml
-
Build Version:1.8.1,121,9f626b0dedb01cb90a16fb127a041c5f3dd1c579,target=android-10,encoding=utf-8,extlibs=commons-io/commons-io-2.0.1.jar;guava-r08/guava-r08.jar,prebuild=sed -i "s@parent=\"android:WindowTitleBackground\"@@" res/values/styles.xml
-
Build Version:1.8.5,128,263023cd883da7b12c94cb46b9d3fdd23068446c,target=android-11,encoding=utf-8,prebuild=mv lib libs
+Build Version:1.8.5,128,e6582cc4249e2d6ba6a8630322a5dc26e54d35ff,target=android-11,encoding=utf-8,prebuild=mv lib libs
Update Check Mode:Market
-Current Version:1.8.5
-Current Version Code:128
+Current Version:1.8.7
+Current Version Code:131
Build Version:3.0.55-5,505,cr3.0.55-5,subdir=android,rm=android/build.properties,buildjni=yes
Build Version:3.0.55-9,509,cr3.0.55-9,subdir=android,rm=android/build.properties,buildjni=yes
Build Version:3.0.55-14,514,cr3.0.55-14,subdir=android,rm=android/build.properties,buildjni=yes
+Build Version:3.0.55-30,530,cr3.0.55-30,subdir=android,rm=android/ant.properties,buildjni=yes
Update Check Mode:Market
-Current Version:3.0.55-14
-Current Version Code:514
+Current Version:3.0.55-30
+Current Version Code:530