{"id":11,"date":"2010-02-24T05:15:23","date_gmt":"2010-02-24T10:15:23","guid":{"rendered":"https:\/\/www.falatic.com\/?p=11"},"modified":"2010-02-26T02:36:26","modified_gmt":"2010-02-26T07:36:26","slug":"building-zxing-for-android-part-2-subversion","status":"publish","type":"post","link":"https:\/\/www.falatic.com\/index.php\/11\/building-zxing-for-android-part-2-subversion","title":{"rendered":"Building ZXing for Android part 2 &#8211; Subversion!"},"content":{"rendered":"<p>Well, that was fast!\u00a0 I decided to give Subversion a whirl with the <strong>ZXing<\/strong> codebase before signing off for the night&#8230; and I apparently chose well when I selected <a href=\"http:\/\/tortoisesvn.net\/\" target=\"_blank\">TortoiseSVN<\/a> as my Subversion client for Windows!<\/p>\n<p><strong>It went very smoothly! <\/strong>Here&#8217;s the details:<\/p>\n<p><!--more--><\/p>\n<ul>\n<li>Install the <a href=\"http:\/\/tortoisesvn.net\/\" target=\"_blank\">TortoiseSVN<\/a> client (then reboot)<\/li>\n<\/ul>\n<ul>\n<li>Create a folder to work in (e.g., &#8220;D:\\zxing-test&#8221;)<\/li>\n<\/ul>\n<ul>\n<li>Right-click in\/on the folder and select &#8220;SVN Checkout&#8230;&#8221;<br \/>\n&#8211; Edit the &#8220;Checkout Directory&#8221; accordingly<br \/>\n&#8211; I used the info at the <a href=\"http:\/\/code.google.com\/p\/zxing\/source\/checkout\" target=\"_blank\">ZXing SVN page<\/a> to get the required URL (<em>http:\/\/zxing.googlecode.com\/svn\/trunk\/<\/em>).\u00a0 Note that the &#8220;<em>zxing-read-only<\/em>&#8221; part caused problems here (it&#8217;s not valid syntax for this client). You cannot commit changes without being a member of the group so leave it off when using TortoiseSVN.<br \/>\n&#8211; I did a fully recursive code pull the first time.<br \/>\n&#8211; I selected the HEAD revision of the version tree.<\/li>\n<\/ul>\n<ul>\n<li>Time passes as you download quite a helluva lot of code!\u00a0 Broadband helps&#8230;<\/li>\n<\/ul>\n<ul>\n<li>For this experiment the last commit version turned out to be revision <strong>1217<\/strong>.\u00a0 I&#8217;m not sure how they manage their changes but it&#8217;s always possible you could be unlucky and get a revision level that&#8217;ll lead to a broken build.\u00a0 (Fortunately, tonight&#8217;s my lucky night!)\u00a0 You can specify this when you start the SVN interaction above, or you can &#8220;revert&#8221; to this version (or any other) later if you prefer.<\/li>\n<\/ul>\n<ul>\n<li>Prep and build it!<br \/>\n&#8211; Edit <em>build.properties<\/em> as I described in <a href=\"https:\/\/www.falatic.com\/index.php\/9\/building_zxing_for_android\" target=\"_blank\">my last post<\/a>.<br \/>\n&#8211; Build the source tree (be sure to set <strong>MY_PROJ_ROOT<\/strong> correctly to point to the SVN-derived tree!)\u00a0 Use the debug target as before (I&#8217;ve yet to try the release one though I suspect the lack of signing will cause problems).<\/li>\n<\/ul>\n<p><strong>And again, voil\u00e0!\u00a0 You&#8217;ve got a new build!<\/strong> (I notice the first &#8220;clean&#8221; build step no longer throws a small error as it did before&#8230; it didn&#8217;t affect things but it was nice to see that it got fixed).<\/p>\n<p>I loaded the build onto my Droid and installed it (there was no need to uninstall the older version 3.0 I was testing with earlier &#8211; I don&#8217;t bother with that unless it complains or otherwise fails to install).\u00a0 On execution the about box shows this is version 3.2 beta 1 (versus the version 3.0 I built earlier and version 3.1 which was the most current in the Android App Market)!\u00a0 If I&#8217;m going to fiddle around, it&#8217;s nice to know I&#8217;m fiddling with the latest and greatest! \ud83d\ude42<\/p>\n<p>That concludes my coding evening.\u00a0 Thanks for visiting!<\/p>\n<p>Note: Other projects use Git&#8230; I installed <a href=\"http:\/\/code.google.com\/p\/tortoisegit\/\" target=\"_blank\">TortoiseGit<\/a> as well but haven&#8217;t had a chance to play with it yet.<\/p>\n<!-- wpsso rrssb get buttons: buttons on archive option not enabled -->\n","protected":false},"excerpt":{"rendered":"<p>Well, that was fast!\u00a0 I decided to give Subversion a whirl with the ZXing codebase before signing off for the night&#8230; and I apparently chose well when I selected TortoiseSVN <a href=\"https:\/\/www.falatic.com\/index.php\/11\/building-zxing-for-android-part-2-subversion\" class=\"more-link\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":"","_links_to":"","_links_to_target":""},"categories":[1],"tags":[116,21,26,24,28,27,29,117,25],"class_list":["entry","author-marty","has-more-link","post-11","post","type-post","status-publish","format-standard","category-uncategorized","tag-android","tag-barcode-scanner","tag-building","tag-droid","tag-subversion","tag-success","tag-tortoisesvn","tag-windows","tag-zxing"],"_links":{"self":[{"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/posts\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":0,"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}